Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension to allow multiple GA accounts? #200

Open
madmatt opened this issue Mar 3, 2017 · 6 comments
Open

Extension to allow multiple GA accounts? #200

madmatt opened this issue Mar 3, 2017 · 6 comments

Comments

@madmatt
Copy link

madmatt commented Mar 3, 2017

Hi there,

This could be an awesome cross-site tool if it were able to connect to multiple Google Analytics sites data, without needing to have them all within one GA account. Is that a massive architectural headache? If I were to work on it, providing it's backwards-compatible, would it be useful to include?

I can see this being more helpful where there isn't an overarching Digital Analytics Program within government, but where individual sites still want to collaborate.

This might also make it easier for individual websites to participate, by filling out a form with the required details (private keys, account IDs etc.) on the web layer, and having them start updating immediately, instead of needing to amend existing websites with new GA codes (and also dealing with the data segmentation when doing that).

Thoughts would be appreciated, I think we could get some traction for this within the .govt.nz space if that were possible.

@konklone
Copy link
Contributor

konklone commented Mar 3, 2017

@madmatt I think the main issue is doing the aggregation work to make requests to multiple accounts and to correctly sum their data together. It doesn't quite Just Work at the API level, so analytics-reporter will need to absorb that complexity and return data in the same schema it does now but for data from multiple reports merged together. Why don't you give a shot at modifying analytics-reporter to do this for simple queries and test out the complexity of adding such a feature?

@laurenancona
Copy link
Member

Documenting here - I've had related conversations with several local/state gov entities in the US about a similar need, since most do not have a unified / "roll up" GA account across all web properties.

@madmatt
Copy link
Author

madmatt commented Mar 8, 2017

Having had a look at the code (but without running it yet), it seems like we could just make the deploy/envs directory .gitignored, then use that directory to contain .env files for different environments. Along with including the current ANALYTICS_REPORT_IDS, AGENCY_NAME and AWS_BUCKET_PATH, we could then add the ANALYTICS_REPORT_EMAIL, ANALYTICS_KEY_PATH and other secrets envs in there too...

I might try and play around with that this weekend :)

@mrjlaforest
Copy link

This thread is a bit old, but I thought I might check in to see if this has gone any where. From what I've gathered, the ability to have an option for "All Participating Websites" is based on having a unified or "roll up" account and as @laurenancona mentioned not everyone has access to that.

@tdlowden
Copy link
Contributor

Hi @mrjlaforest! Yes, you are correct. At this time, regrettably, the aggregation is done in our GA account itself and analytics-reporter does not have this functionality. Apologies!

@mrjlaforest
Copy link

No need to apologize. It is still a great application and we will be using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants