title: Cross-domain tracking for subdomains with Google Analytics
body: <p>I've just setup google analytics cross domain tracking.<br>I've seen a few example of it but would like to make sure I've done it correctly.<br>The documentation I followed is here: <a href="http://support.google.com/analytics/bin/static.py?page=guide.cs&amp;guide=1034143&amp;topic=1033979" rel="nofollow">http://support.google.com/analytics/bin/static.py?page=guide.cs&amp;guide=1034143&amp;topic=1033979</a></p>
  
  <p>I basically have 3 websites which are all sub-domains.</p>
  
  <pre><code>one.mysite.com
  two.mysite.com
  three.mysite.com
  </code></pre>
  
  <p>I have added the following lines to the default Analytics script and made sure I use the same value for _setAccount.</p>
  
  <pre><code>_gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  </code></pre>
  
  <p>Now... the part that I'm slightly confused about is the _setDomainName variable.</p>
  
  <p>Am I supposed to leave it as "none" on all three websites and let the _setAllowLinker to do the work or am I mean to specify the domains individually like below?</p>
  
  <pre><code>_gaq.push(['_setDomainName', 'one.mysite.com']); // used on one.mysite.com
  _gaq.push(['_setDomainName', 'two.mysite.com']); // used on two.mysite.com
  _gaq.push(['_setDomainName', 'three.mysite.com']); // used on three.mysite.com
  </code></pre>