ok, thanks a lot for suggestion!
at the moment I added it to /footer.php
<?php
/************************************************** *************************
* copyright : (C) 2008, 2009 WeBid
* site : http://www.webidsupport.com/
************************************************** *************************/
/************************************************** *************************
* This program 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 2 of the License, or
* (at your option) any later version. Although none of the code may be
* sold. If you have been sold this script, get a refund.
************************************************** *************************/
include_once("analyticstracking.php");
$template->assign_vars(array(
'L_COPY' => empty($system->SETTINGS['copyright']) ? '' : '<p>' . $system->SETTINGS['copyright'] . '</p>',
'B_VIEW_TERMS' => ($system->SETTINGS['terms'] == 'y'),
'B_VIEW_PRIVPOL' => ($system->SETTINGS['privacypolicy'] == 'y'),
'B_VIEW_ABOUTUS' => ($system->SETTINGS['aboutus'] == 'y'),
'B_FEES' => ($system->SETTINGS['fees'] == 'y')
));
$template->set_filenames(array(
'footer' => 'global_footer.tpl'
));
$template->display('footer');
// if the page has loaded OK you dont need this data anymore
unset($_SESSION['SESSION_ERROR']);
?>
and it looks working fine!
Results 11 to 18 of 18
-
25-04-2012, 08:54 PM #11Member
- Join Date
- Apr 2012
- Posts
- 60
1 out of 1 members found this post helpful.
-
03-05-2012, 09:51 PM #12
I try , this is correct step ?
1: i create from "google analytic code" .txt and rename to analyticstracking.php ,
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11111111-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
2: Edit footer.php , add text : include_once("analyticstracking.php");
3: reUpload footer.php and analyticstracking.php
This is correct ?
Regards
Joel
-
03-05-2012, 10:01 PM #13Member
- Join Date
- Apr 2012
- Posts
- 60
-
04-05-2012, 03:40 AM #14
-
04-05-2012, 09:51 AM #15Member
- Join Date
- Apr 2012
- Posts
- 60
-
05-05-2012, 03:39 AM #16
artlauk,
Yes in your theme that you are using footer.tpl,
I have added a few different things there like piwik and feedjit script.
If I was to add goggle analytic script that's where I would put it too.
If yours works with the include_once("analyticstracking.php"); in the footer.php that's fine though too.1 out of 1 members found this post helpful.
-
05-05-2012, 05:36 AM #17Member
- Join Date
- Apr 2012
- Posts
- 60
-
05-05-2012, 09:13 AM #18



Reply With Quote

Bookmarks