Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Copy the following code


jerry1962

Recommended Posts

Hey folks late night again trying to find where i paste the following code, my site

 

If someone can point me in the right direction it would be great.

 

As always thanks for your time and your help.

 

Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag.

i cant find the </head> tags???

 

<script type="text/javascript">

 

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-23795038-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>

Link to comment
Share on other sites

I use that google code, but in osc2.2. I have it pasted into the footer file after the last line of code. I see no reason why it cant be the same in 2.3.1.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

Go in your admin to modules>header tags, click “install”, select the google analytics module, install it, and then add your google number to the field that say so.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...