I have a site that allows users to post their websites. I want to display some graphs from their Google Analytics account on my pages, showing traffic, visitors, etc.
I have seen this similar feature on Flippa
It asks you to authorize their account via OAuth2 (https://developers.google.com/analytics/devguides/reporting/core/v3/).
I've also seen Google Analytics Embed API (https://developers.google.com/analytics/devguides/reporting/embed/v1/), so I'm confused on which I should be using.
It seems using the Embed API is easiest, however, it only uses a client id. I want to show these pages publicly to everyone, so I will need an access token to request in behalf of the user right?
So here are my questions:
- What exactly does each do? (Using Google Analytics Core Reporting API vs Embed API)
- Can I use Embed API in my situation?
- Embed API seems to already have built in graph and charting tools, do I have to re-implement those if I use Core Reporting API?
Let me know if I'm missing something. Thanks!