Skip to content

Instantly share code, notes, and snippets.

@doryokujin
Last active August 31, 2016 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doryokujin/763478069f712d0b985bb3e06f0c273f to your computer and use it in GitHub Desktop.
Save doryokujin/763478069f712d0b985bb3e06f0c273f to your computer and use it in GitHub Desktop.
in:
type: google_analytics
json_key_content: |
{
// from Google API Service Account's Private Key
"type": "service_account",
"project_id": "ga-to-td",
"private_key_id": "18f4c*****",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgI*****",
...
}
view_id: ***** // view id
start_date: "2001-01-01"
end_date: "2016-09-01"
time_series: "ga:dateHour"
// dimension & metrics
dimensions:
- "ga:browser"
metrics:
- "ga:visits"
- "ga:pageviews"
out:
mode: append
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment