title: Content Script tracking with Google Analytics
body: <p>I am working on a Google Chrome Extension that modifies certain pages with a content script. In order to understand when and where those changes are applied we were looking into google analytics since we use it for other web properties already. </p>
  
  <p>We include the ga.js library via the manifest file, and trigger _trackPageview with a synchronous page call when we apply a change to a page.</p>
  
  <pre><code>var pageTracker = _gat._getTracker("UA-our-UA");    
  pageTracker._setDomainName("none");
  pageTracker._setAllowLinker(true);    
  pageTracker._trackPageview(window.location.href);
  </code></pre>
  
  <p>Trouble here is that each pageView in a different domain counts as a new visit and visitor. Its there a way to circumvent that? For example it use a chrome extension sqlite database or key value store in the browser to store unique user id and visit id domain independent. Is this possible?</p>
  
  <p>Thanks</p>