Google Analytics not tracking

Discussion in 'Google Analytics' started by JinAdSales, Feb 25, 2009.

  1. #1
    My guess is that it's because the code isn't just before the </body>, i need to go through a lot of red tape to get this changed though, so i want to make sure i have it right before i send the order down. Any other reasons this could be refusing to track? The analytics profile has a check mark saying "receiving data" but it's been 0 visits all day now and I've been there 50 times on my own.

    Bottom section of code:

    </style>

    <div>



    <div id="dnn_ctr459_ContentPane" class="DNNAlignleft"><!-- Start_Module_459 --><div id="dnn_ctr459_ModuleContent">
    <div id="dnn_ctr459_HtmlModule_HtmlModule_lblContent" class="Normal">
    <p><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-XXXXXXX-8");
    pageTracker._trackPageview();

    function callSiteGA(trackingValue)
    {
    //alert(trackingValue);
    var pageTracker = _gat._getTracker("UA-3763045-8");
    pageTracker._trackPageview(trackingValue);
    }

    </script></p>
    </div>
    <!-- End_Module_459 -->
    </div></div>


    </div></div>
    </div>

    <input name="ScrollTop" type="hidden" id="ScrollTop" />

    <input name="__dnnVariable" type="hidden" id="__dnnVariable" />
    </form>
    </body>
    </html>
     
    JinAdSales, Feb 25, 2009 IP
  2. Zhoog

    Zhoog Peon

    Messages:
    237
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is the analytics personal ID actually: UA-XXXXXXX-8 or have you changed it to post here?

    Judging from what you code you supplied the code should be:

    <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-3763045-8");
    pageTracker._trackPageview();
    } catch(err) {}</script>
     
    Zhoog, Feb 25, 2009 IP
  3. JinAdSales

    JinAdSales Peon

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I changed it to post here.. just to be extra safe.

    It's the fact that it's not immediately before the </body> tag right? it has to be
     
    JinAdSales, Feb 25, 2009 IP
  4. Zhoog

    Zhoog Peon

    Messages:
    237
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No it can be at the end of the page as wel. In fact I would suggest that to not have load times stand in your way.

    I don't know what is causing your problem though. Do you have javascript enabled?
     
    Zhoog, Feb 26, 2009 IP