Jump to content
Latest News: (loading..)

Archived

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

jerry1962

Copy the following code

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>

Share this post


Link to post
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

 

Find information about the bootstrap community version here

 

Make it idiot proof and someone will make a better idiot.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×