git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_WebCongresos/trunk@2 94ccb1af-fd9d-d947-8d90-7f70ea60afc8
39 lines
1.7 KiB
PHP
39 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* J!Analytics - Google Analytics Code module for Joomla v1.5
|
|
*
|
|
* @version $Id: ga.php 22 2009-03-05 08:41:13Z mofodojodino $
|
|
* @author Dean Tedesco <dino@tedesco.net.au>
|
|
* @link http://www.tedesco.net.au
|
|
* @copyright Copyright (C) 2008 Dean Tedesco. All rights reserved.
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
|
* This file is part of J!Analytics.
|
|
*
|
|
* J!Analytics is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* J!Analytics is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with J!Analytics. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
?>
|
|
<script type="text/javascript">
|
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
|
</script>
|
|
<script type="text/javascript">
|
|
try {
|
|
var pageTracker = _gat._getTracker("<?php echo $analyticsId; ?>");
|
|
<?php if ($analyticsSubdomainTracking != "example.com" && !empty($analyticsSubdomainTracking)) { ?>
|
|
pageTracker._setDomainName("<?php echo $analyticsSubdomainTracking; ?>");
|
|
<?php } ?>
|
|
pageTracker._trackPageview();
|
|
} catch(err) {}</script>
|