Search code examples
google-analyticsgoogle-apigoogle-analytics-api

Creating Google Analytics Dashboard for site users?


We currently own a crowdfunding platform and we utilize Google Analytics to help project creators see how their projects are performing. We want to make it easier for them to manage it by using the Google Embed API to create a Google Analytics Dashboard within the platform for each user. The user would be able to go into their account dashboard and see their Google analytics without going to google.

Is this possible? If so, could you direct me to the right location? Currently, it would seem you need to supply a client ID that needs to have the site verified at the TXT record level. That's impossible for clients to access, let alone the amount of steps they would be required to complete.

The other option I see is to get the Client ID for a particular tracker but I have read that this doesn't provide a way to access the whole history of their analytics.

Any help would be greatly appreciated. Thank you!


Solution

  • Frankly by now you might simply create a nicely formatted report (including nice graphics etc) in Google Data Studio and click "share".

    If you insist on having this inside your application you could create a service account and have an application on your server authenticate against Google Analytics and let if fetch the data. For visualisation you could use Google Charts, which I think is what the embed API is using so you should get a similar look.