18F / analytics-reporter

Lightweight analytics reporting and publishing tool for Digital Analytics Program's Google Analytics 360 data.

Home Page:https://analytics.usa.gov/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visitors by agency, day and city

zhangchuck opened this issue · comments

Issue

Looking to be able to create a dataset of visitors per city, by [agency/subagency/domain], by [day/week/month] via the API.

The output would be similar to, but at an agency level and over time:

https://analytics.usa.gov/data/commerce/top-cities-realtime.json
#112

Is this possible? If it's not currently possible, how would I go about adding this functionality?

Would it just be adding "ga:city" to the line here:

"dimensions": ["ga:date"],

Thanks for this suggestion! We'll take a look and see if it's feasible.