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

16301Re: GA tag - What's gone happen if.

Expand Messages
  • emiel.kamzol
    Apr 2, 2008
    • 0 Attachment
      Hi Julien, Thanks for you're quick responds.

      I know this is the official way what Google advice. I gone try to make
      it clear why this is not a' option for my situation.

      I want to measure 1 webpage on more than 3000 different domains
      Some whit there own GA tag and some not. 3000 is allot. So I need to
      generate one piece of code that I can use for very domain white ore
      whiteout there own GA tag.

      Sorry for my bad English


      --- In webanalytics@yahoogroups.com, "Julien Coquet"
      <julien.coquet@...> wrote:
      >
      > Hi emiel, here is what you would need to implement:
      >
      > 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 firstTracker = _gat._getTracker("UA-original-1");
      > firstTracker._initData();
      > firstTracker._trackPageview("autobedrijf/popup/naamautobedrijf");
      > firstTracker._setVar("popup_views);
      >
      > // second account
      >
      > var secondTracker = _gat._getTracker("UA-external-1");
      > secondTracker._setDomainName("none");
      > secondTracker._initData();
      > secondTracker._trackPageview("autobedrijf/extern/naamautobedrijf");
      > secondTracker._setVar("dealer);
      > You should be set, enjoy! :-)
      >
      > Julien Coquet
      > Analytics Country Manager, France (GAAC)
      > OX2/LBi - http://webanalytics.ox2.eu
      >
      > On Wed, Apr 2, 2008 at 12:34 PM, emiel.kamzol <emiel.kamzol@...>
      > wrote:
      >
      > > 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.
      > >
      > >
      > >
      >
      >
      >
      > --
      > Julien Coquet
      > julien.coquet@...
      > skype: juliencoquet
      >
      >
      > [Non-text portions of this message have been removed]
      >
    • Show all 4 messages in this topic