I have the
Embed API Demo and my 'Client ID for web application' for the Analytics API (with JavaScript origins including the domain hosting the Demo file). When i browse to my demo page, i can choose account, properties and views, and the graph reloads, all as expected. When i open that page in incognito browser, I am presented an "Access Google Analytics' button, and upon clicking a dialogue box opens inviting me to 'Sign in with your Google Account'.
(1) I would like to run the demo page 'anonymously' without using the already logged in Google account, or prompting to sign in, just to open the graph without any authentication. (2) I would like, also, to pre-filter the graph to a specific view and remove the option(s) to change account, property or view, which I seem to achieved with the example shown
here
So, I created a 'Service account' for for the Analytics API, added that email address as Read & Analyse access for the view, and used the service account Client ID in the Embed API Demo, but, receive 'Error: invalid_client'.
As you may tell, first dabble with this Google APIs, and i`m not really sure what i`m working with!