Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Copy the following code


jerry1962

Recommended Posts

Posted

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>

Posted

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

Posted

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.

Posted

thanks Steve ill give that a try, i kept searching the site and found that some one also put it in the includes/template_top. what do you think ?

Posted

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.

Archived

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

×
×
  • Create New...