Maybe a stupid question,
I would like to use Google analytics to track the visits. There is a code which should inserted in the html file. Where to put it in in phpwcms?
index.php ?
pixelTracking.php ?
Cheers, Beppo
Google analytics
index.php
Put this in between( with your google analytics code)
Cheers
Put this in between( with your google analytics code)
Code: Select all
$content['page_end'] .= '<!-- analytics -->\n<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1787950-1";
urchinTracker();
</script>\n';
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
orKosse wrote:index.php
Put this in between( with your google analytics code)
CheersCode: Select all
$content['page_end'] .= '<!-- analytics -->\n<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-1787950-1"; urchinTracker(); </script>\n';
move pixelTracking.php to frontend_render and turn Google Analytics ON
Code: Select all
/*
* Google Aanalytics
*/
$_Tracking_GoogleAnalytics = ON; /* <-- Turn it ON */
$_Tracking_GoogleAnalyticsCode = 'UA-00000-1'; /* <-- Your Code */
$_Tracking_GoogleSSL = Off;
POR TUGAL
phpMyVisites vs. GoogleAnalytics
It seems to work now with Google Analytics, thanks for the hint. Is it worth to use phpMyVisites instead?
Cheers, Beppo
Cheers, Beppo