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

16296GA tag - What's gone happen if.

Expand Messages
  • emiel.kamzol
    Apr 2 3:34 AM
    • 0 Attachment
      I put different Google analytics tags on one webpage? I have tested it
      And I see nothing is going wrong. What I did is:
      tag the original site www.site1.com/index.html whit:

      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"));


      var pageTracker = _gat._getTracker("UA-original-1");
      pageTracker._initData();
      pageTracker._trackPageview("autobedrijf/popup/naamautobedrijf");
      pageTracker._setVar("popup_views);


      and the second tag is from another google account:

      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"));

      var pageTracker = _gat._getTracker("UA-external-1");
      pageTracker._setDomainName("none");
      pageTracker._initData();
      pageTracker._trackPageview("autobedrijf/extern/naamautobedrijf");
      pageTracker._setVar("dealer);


      I see on both GA account that te page is counted.

      Thanks for every responds.
    • Show all 4 messages in this topic