In my Google Developers Account I created a new project
In APIs & auth>APIs, I enabled Google Analytics
In APIs & auth>Consent, I filled in email address, product name, homepage URL and product logo
In APIs & auth>Credentials, I created a new Client ID and entered in the following: Authorized Javascript Origins = route URL of my website eg http://www.mysite.com. Authorized redirect URIs = webpath of the Google Analytics Connector asset eg http://www.mysite.com/gac
Back in Matrix>Details page of the Google Analytics Connector asset, I entered in the Client ID and Client Secret and commit
I then opened a browser and visited the webpath of the Google Analytics Connector i.e. http://www.mysite.com/gac
I selected my Google account
I am presented with the 'Request for Permission' page and it asks 'Have online access' and I select 'Accept'
The page redirects to a blank page and the Google Analytics Connector details page does not update with the 'access token', 'expires at' or 'refresh token' information.
Any help on what I could be doing wrong would be most helpful.
Hi, do you have the locks on the GA connector while you are visiting it on the front end to establish the connection? Locks need to be had when this happens so that you are able to write to the GA connector when you accept the authentication from Google and it redirects you back.
Also, are there any errors in the logs that get printed with this>?
Thanks for taking the time to reply. I could have sworn I did have the lock but just tried it again holding the lock and bang, started working straight away.
We just upgraded from 5.1.2.0 to 5.3.2.1 and are receiving the error mentioned by Mitch when refreshing the data "The API could not run() the function correctly because the queue length was unexpected"
This was using the previous connector so I refreshed the access token and error still occurs. Created a new connector, got token, updated reference in edit plus config to use new id of view (analyticsViewId: 301848) and still receive the error.