Hi,
I was trying to find the right spot to put my google analytics code. It says put the code onto every page that I want to track immediately before </head> tag . I want to track my product pages.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxx-x']);
_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>
Latest News: (loading..)
Where to paste the Google Analytics Code?
Started by scarletttam, Jul 05 2012 03:07 PM
6 replies to this topic
#1
Posted 05 July 2012 - 03:07 PM
#2 ONLINE
Posted 05 July 2012 - 03:13 PM
What osCommerce version are you using?
Community profile | Partner page | NEW : Feedback Chanel
#4
Posted 05 July 2012 - 07:31 PM
I put mine in includes>footer.php, so it covers all pages.
~ Don't mistake my kindness for weakness ~
~ viam supervadet vadens ~
~ viam supervadet vadens ~
#6
Posted 05 July 2012 - 08:59 PM
you're welcome
~ Don't mistake my kindness for weakness ~
~ viam supervadet vadens ~
~ viam supervadet vadens ~
#7 ONLINE
Posted 06 July 2012 - 05:39 AM
In version 2.3.1, you don't need to change any file, there is a module for that available, under admin>modules>header tags
Install the googe analytics module and then just type your google number into there
Install the googe analytics module and then just type your google number into there
Community profile | Partner page | NEW : Feedback Chanel









