title: google analytics - multiple trackers on one page (traditional and asynchronous)
body: <p>I'm writing a widget that will be embedded in other people's websites. I'm using Google Analytics to track all the people that visit all instances of my script on the embedding websites. <a href="https://stackoverflow.com/questions/1239042/google-analytics-multiple-trackers-on-one-page-cookie-conflict">I understand</a> that the new asynchronous tracking code <a href="http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html#MultipleTrackers" rel="nofollow noreferrer">resolves this problem</a> so that there's no interference with those websites' own Google Analytics accounts. </p>
  
  <p>However, what if my analytics tracking code uses the new asynchronous tracker, and the embedding website is using the legacy (traditional) tracking code? Would there be any interference between these two blocks of code?</p>
  
  <p>My tracker code:</p>
  
  <pre><code>&lt;script&gt;
  ...
  _gaq.push(
    ['myTracker._setAccount', 'UA-XXXXX-2'], // naming the tracker 'myTracker' to be different from any default tracker already defined
    ['myTracker._trackPageview']
  );
  ...
  &lt;/script&gt;
  </code></pre>
  
  <p>Embedding website's code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  try{
  var pageTracker = _gat._getTracker("UA-xxxxxx-1");
  pageTracker._trackPageview();
  } catch(err) {}&lt;/script&gt;
  </code></pre>
  
  <p>Can pageTracker and myTracker co-exist and register analytics information to their own separate accounts?</p>