Not a member? Why not join us or log in? (Free to Post your Articles and Blogs on Technology.)

How to check google analytics tracking code on web pages

Home > SEO>
Dated : November 4, 2008
Follow us on Twitter
Connect with us on Facebook
Subscribe via RSS Feed
Add Techgurulive to Google

Google Analytics will itself check to see that the tracking code has been installed correctly on the home page of your site – once you’ve created a new profile, the Tracking Status will display a warning, “Tracking status unknown,” until the system detects the code.

If you used a WYSIWYG (“What you see is what you get”) editor such as Macromedia Dreamweaver, make sure that you don’t see the code when you’re viewing your page in a browser. Some such editors will attempt to place the code as text on your page – try to use the “source” view when you’re pasting the code to your web pages.

Finally, once your page is live, select View Source from your browser’s menu and look for the code. It should be immediately before the </body> tag of your page, and should look exactly as it was provided to 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”>
var pageTracker = _gat._getTracker(“UA-xxxxxx-x”);
pageTracker._trackPageview();
</script>

You should see your own account number in place of the xxxx-x in the example above. If you need a fresh copy of your code, click the Edit link next to the appropriate profile on the Analytics Settings page, then select Check Status at the top-right of the table.

If your tracking code has been installed correctly, and you’re still not seeing any data after 24 hours, read I’m not seeing any data in my reports

You may also want to know about a free tool that a third-party developer named EpikOne created to help with the process. The tool is called SiteScan and can be found at www.SiteScanGA.com. You can sign up to have the tool crawl your site and check for implementation errors. Examples of errors could be pages that don’t have tracking code or pages that have both ga.js and urchin.js code on them (you shouldn’t run both on a single site). This is not a Google supported or developed tool, but many customers have found it useful.

For more details visit https://www.google.com/support/googleanalytics


Tags:, , , , ,

Written by Editor


Not Getting : Search to find what you are looking for


Liked this article? To continue getting our latest free Howtos and Tutorials,
you can also grab the RSS feed or Subscribe to Techgurulive by Email

3 Responses to “How to check google analytics tracking code on web pages”

  1. Michiel van Gaalen Says:

    We’ve launched a Google Analytics site scanning solution that scans your entire website for missing Google Analytics tags. You can scan one site at no costs http://www.notagsnoglory.com Tell us what you think!

  2. Alex Penny Says:

    Thank You thank you. I couldn’t find the check status anywhere on google.

  3. C Henry SEO Moz Says:

    I’d need to check with you here. Which isn’t one thing I usually do! I get pleasure from reading a submit that can make individuals think. Also, thanks for permitting me to remark!

Leave a Reply



This Howtos posted under : Home > SEO->

How to check google analytics tracking code on web pages