Andrew Bullock
Andrew Bullock

Reputation: 37398

Google Analytics API - How to generate traffic source summary?

In Google Analytics, if you goto

Traffic Sources -> Overview

There's a pie chart of the breakdown of % traffic sources.

How do I get this information via the API?

What are the metrics/dimensions?

thanks

Upvotes: 1

Views: 2013

Answers (1)

Andrew Bullock
Andrew Bullock

Reputation: 37398

it would seem

ga:medium
ge:visits

does the trick,

  • (none) is "direct traffic
  • organic + cpc is search engine
  • referral is non search engine link

then, the sum of everything else is "campaign"

Upvotes: 2

Related Questions