Loading ...
Sorry, an error occurred while loading the content.

Re: Troubleshooting: Google Analytics not tracking

Expand Messages
  • nethab1
    It looks like you are trying to define the pageTracker variable twice. Once in the main tag, and then again in the callSiteGA function. You should
    Message 1 of 5 , Feb 26, 2009
    • 0 Attachment
      It looks like you are trying to define the "pageTracker" variable
      twice. Once in the main <script> tag, and then again in the
      "callSiteGA" function. You should only define pageTracker once, as you
      could be inadvertantly resetting all of variables in the GA tracking code.

      --- In webanalytics@yahoogroups.com, "jackstandsonline"
      <jon.murray@...> wrote:
      >
      >
      > 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>
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.