[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10924] api: remove tracker
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10924] api: remove tracker |
Date: |
Tue, 19 Feb 2013 07:38:22 +0000 |
Revision: 10924
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10924
Author: sigurdne
Date: 2013-02-19 07:38:18 +0000 (Tue, 19 Feb 2013)
Log Message:
-----------
api: remove tracker
Modified Paths:
--------------
trunk/phpgwapi/templates/mobilefrontend/head.inc.php
Modified: trunk/phpgwapi/templates/mobilefrontend/head.inc.php
===================================================================
--- trunk/phpgwapi/templates/mobilefrontend/head.inc.php 2013-02-18
19:18:36 UTC (rev 10923)
+++ trunk/phpgwapi/templates/mobilefrontend/head.inc.php 2013-02-19
07:38:18 UTC (rev 10924)
@@ -9,33 +9,6 @@
$app = $GLOBALS['phpgw_info']['flags']['currentapp'];
- $config = CreateObject('phpgwapi.config','bookingfrontend');
- $config->read();
-
- $tracker_id = isset($config->config_data['tracker_id']) &&
$config->config_data['tracker_id'] ? $config->config_data['tracker_id'] : '';
- unset($config);
- $tracker_code1 = <<<JS
- 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"));
-JS;
- $tracker_code2 = <<<JS
- try
- {
- var pageTracker = _gat._getTracker("{$tracker_id}");
- pageTracker._trackPageview();
- }
- catch(err)
- {
- alert(err);
- }
-JS;
-
- if($tracker_id)
- {
- $GLOBALS['phpgw']->js->add_code('', $tracker_code1);
- $GLOBALS['phpgw']->js->add_code('', $tracker_code2);
- }
-
$GLOBALS['phpgw']->template->set_root(PHPGW_TEMPLATE_DIR);
$GLOBALS['phpgw']->template->set_unknowns('remove');
$GLOBALS['phpgw']->template->set_file('head', 'head.tpl');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10924] api: remove tracker,
Sigurd Nes <=