Options

Google Analytics [AGAIN]

<ed><ed> Registered Users Posts: 31 Big grins
edited October 12, 2011 in SmugMug Pro Sales Support
Sorry, I know this gets old !

I have added the " UA # But on the Google Analytic s page it says to paste this code to my site


"2. Paste this code on your site
Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag. ?"



script type="text/javascript"

var _gaq = _gaq || [];
_gaq.push();
_gaq.push();

(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


Do we need this ? If so Where do I put it ? Thanks for any help ed

Comments

  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited September 17, 2011
    Do NOT paste the code anywhere - only put the UA-XXXXXXX number into the Google Analytics box in your control panel, settings tab. That's it deal.gif
  • Options
    &lt;ed&gt;&lt;ed&gt; Registered Users Posts: 31 Big grins
    edited September 17, 2011
    Thank you Andy, what I was thinking and why I asked before I did....
  • Options
    catcat Registered Users Posts: 7 Beginner grinner
    edited October 7, 2011
    Not sure if you've seen (google) Statcounter, but I am using that service now instead of (or in conjunction with) Google Analytics. It's free for a limited amount of detailed logging and was a breeze to setup. Trackable IP's, maps, nice keyword analysis. Very tasty and the GUI couldn't be easier.
  • Options
    AllenAllen Registered Users Posts: 10,013 Major grins
    edited October 7, 2011
    cat wrote: »
    Not sure if you've seen (google) Statcounter, but I am using that service now instead of (or in conjunction with) Google Analytics. It's free for a limited amount of detailed logging and was a breeze to setup. Trackable IP's, maps, nice keyword analysis. Very tasty and the GUI couldn't be easier.
    Statcounter
    http://dgrin.smugmug.com/gallery/1092684
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited October 12, 2011
    Not only do I use analytics and statcounter, but sitemeter and histats as well. It's good to see how each of these differ slightly and you can see the upper and lower variances in your traffic.

    Beware though that adding a lot of javascript will affect your site load time on slower computers and phones.
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
Sign In or Register to comment.