Need help? Check out our Support site, then


Need To Add Google Tracker Javascript, How ??

  1. Though I have some page analytics from within my blog admin, but I want more. I have a Google Analytics account and wanted to use it to track my http://ajaxpoet.wordpress.com/ blog, how can I achieve this, I have the tracker javascript block

    <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("MyKeyGoesHere");
    pageTracker._trackPageview();
    } catch(err) {}
    </script>.

    In blogger I needed to do was add a HTML / Javascript page element and dump the script block inside it, how is it done in wordpress.

    Kind Regards.

    The blog I need help with is ajaxpoet.wordpress.com.

  2. You cannot use Google Analytics with wordpress.com. Anything scripted is not allowed for security reasons: http://support.wordpress.com/code/#javascript

  3. There are tracking services which use HTML for their coding... sitemeter.com is one. Just put the code into a text widget and save.

  4. Ty so much!
    You saved my life.

Topic Closed

This topic has been closed to new replies.

About this Topic