Google Analytics and my blog's sourcecode

  • Unknown's avatar

    I need to embed my Google Analytics tracking code on the source code of my page. How do I do this?

    <script type=”text/javascript”>

    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-38009108-1’]);
    _gaq.push([‘_setDomainName’, ‘introspective-eater.com’]);
    _gaq.push([‘_setAllowLinker’, true]);
    _gaq.push([‘_trackPageview’]);

    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’) + ‘stats.g.doubleclick.net/dc.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I’m sorry, it’s not possible to install Google Analytics on WordPress.com. We do, however, offer a number of great stats features built into your blog.

  • Unknown's avatar

    Then How do I do this on my blog’s tools?

    Website Verification Services (?)

    Enter your meta key “content” value to verify your blog with Google Webmaster Tools, Bing Webmaster Center and Pinterest Site Verification.
    Google Webmaster Tools
    Example: <meta name=’google-site-verification’ content=’dBw5CvburAxi537Rp9qi5uG2174Vb6JwHwIRwPSLIK8′>

  • Unknown's avatar

    You can follow the steps in this guide to use the Webmaster Tools: http://en.support.wordpress.com/webmaster-tools

    Feel free to contact us if you have any other questions.

  • The topic ‘Google Analytics and my blog's sourcecode’ is closed to new replies.