title: Can I programmatically get the traffic channel for the current page in javascript google analytics?
body: <p>I want to programmatically know the traffic channel for the current page using javascript google analytics (or reporting) API. Like organic, google search, direct, referral, etc.
  I can get referral with </p>
  
  <pre><code>tracker.get('refferer')
  </code></pre>
  
  <p>but I need to know the traffic channel.</p>
  
  <p>For example <a href="https://i.stack.imgur.com/gP8Em.png" rel="nofollow noreferrer">channels</a></p>
  
  <p>Can I get it? And if I can, then how?</p>