title: Google Analytics: How to separate domains in reports?
body: <p>I have one code on multiple websites. I want to see on which website users are currently.</p>
  
  <p>Currently i have made it this way, but in reports i see only as "<strong>direct traffic</strong>" for all domains</p>
  
  <p>Is it possible?</p>
  
  <pre><code>var cb=function(){
      var pageTracker = _gat._getTracker('UA-XXXXXXXX-XX');
      pageTracker._setDomainName(document.domain);
      pageTracker._setAllowLinker(true); // To track traffic across domains
      pageTracker._trackPageview();
  }
  
  if(!window._gat) {                    
      $.getScript(('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js',cb);
  }
  else {
      cb();
  }
  </code></pre>
  
  <p>Maybe it's possible via custom variables?</p>