Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Copy the following code


6 replies to this topic

#1 jerry1962

  • Community Member
  • 65 posts
  • Real Name:Jerry
  • Gender:Male
  • Location:Georgia

Posted 06 June 2011, 07:58

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>

Edited by jerry1962, 06 June 2011, 08:00.


#2 14steve14

  • Community Member
  • 2,176 posts
  • Real Name:Steve
  • Gender:Male

Posted 06 June 2011, 08:21

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
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.

#3 jerry1962

  • Community Member
  • 65 posts
  • Real Name:Jerry
  • Gender:Male
  • Location:Georgia

Posted 06 June 2011, 08:39

View Post14steve14, on 06 June 2011, 08:21, said:

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.


#4 jerry1962

  • Community Member
  • 65 posts
  • Real Name:Jerry
  • Gender:Male
  • Location:Georgia

Posted 06 June 2011, 08:40

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 ?

#5 multimixer

  • Community Sponsor
  • 3,594 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 06 June 2011, 09:15

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.
Looking for a way to create your own osCommerce template ? click

#6 jerry1962

  • Community Member
  • 65 posts
  • Real Name:Jerry
  • Gender:Male
  • Location:Georgia

Posted 06 June 2011, 09:24

View Postmultimixer, on 06 June 2011, 09:15, said:

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.


#7 jerry1962

  • Community Member
  • 65 posts
  • Real Name:Jerry
  • Gender:Male
  • Location:Georgia

Posted 06 June 2011, 09:27

WOW right in front of my eyes thanks that is great again thanks