Help with Google Analytics code

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Ive decided to put google analytics on my site http://webfreebies.synthasite.com but im not sure about one thing,They talk about only using one code and i'm not sure which code to use. or if in fact what ive been putting on my site is both codes. Here is the code i've been putting on my site.

Could some please help me and let me know if this is the correct code,
Thanks everybody, I've found this forum so helpful in the past. I don't know what i would do without it
Photo of johnpaul

johnpaul

  • 13 Posts
  • 0 Reply Likes
  • happy , thankful excited

Posted 9 years ago

  • 1
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Hello JohnPaul,

You've verified ownership of your site?

Then you have been shown two codes. I presume that is what you mean,. Is that correct?
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there Johnpaul,

Unfortunately your code didn't come through - Get Satisfaction sometimes reads it incorrectly and you have to put a <! and a > on either side of it..

Here is a link to our tutorial on adding Google Analytics to your site:

http://www.yola.com/tutorials/analytics

if you have any more trouble with this could you please email us at support@yola.com and we will be able to help you further.

Kind regards,

Jeremy
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
anaylitics code should look like this - its the same on every page they do the rest for you...

<!--
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-7660998-1"); pageTracker._trackPageview(); } catch(err) {}</script>
-->

thats all the code you need - hope this helps
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
PS - dont copy this code - you should be given something that looks almost identical.
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
It's reasonably important to use the "ga.js" code and not the urchin code that may be given. The urchin code is becoming redundant and may not allow some of the new functionality being added to Analytics.

There is another option as good as Google Analytics and that is getclicky.com. This product gives you dynamic analysis of your site. It's current and even allows you to see who is looking where and identifying them. It's a free facility with extended functionality on paid basis. I can't really see the difference in analysis between the two but I think I prefer it.