Create a gist now

Instantly share code, notes, and snippets.

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