Skip to content

Instantly share code, notes, and snippets.

@doryokujin
Last active August 27, 2016 00:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save doryokujin/30d11ae37954110aa1f56cc6dad18e58 to your computer and use it in GitHub Desktop.
in:
type: google_analytics
json_key_content: |
{
// omit
}
view_id: *****
start_time: "2001-01-01"
end_time: "2016-09-01"
time_series: "ga:dateHour"
dimensions:
- "ga:pagePath"
- "ga:dimension1"
- "ga:dimension2"
metrics:
- "ga:pageviews"
filters:
- type: rename
columns:
dimension1: client_id
- type: add_time
from_column:
name: dimension2
timestamp_format: "%s"
to_column:
name: time
type: timestamp
out:
mode: replace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment