Configuring Google Analytics Connector


(David Herrington) #1

I've followed the steps on this page to the letter but I cannot get the connector to work:

 

http://manuals.matrix.squizsuite.net/google-analytics/examples/setting-up-google-analytics

  1. Created a Google Analytics Connector in Matrix
  2. In my Google Developers Account I created a new project
  3. In APIs & auth>APIs, I enabled Google Analytics
  4. In APIs & auth>Consent, I filled in email address, product name, homepage URL and product logo
  5. 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
  6. Back in Matrix>Details page of the Google Analytics Connector asset, I entered in the Client ID and Client Secret and commit
  7. I then opened a browser and visited the webpath of the Google Analytics Connector i.e. http://www.mysite.com/gac
  8. I selected my Google account
  9. I am presented with the 'Request for Permission' page and it asks 'Have online access' and I select 'Accept'
  10. 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.


(Bart Banda) #2

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>?


(David Herrington) #3

Hi Bart.

 

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.

 

Great stuff!


(Mitch Kerry) #4

Hi

 

I've an issue with the connector set up as well..thought I'd jump into this thread.

 

I've jumped all the hoops, but when I go to analytics in edit + I get the error:

The API could not run() the function correctly because the queue length was unexpected

 

Any suggestions?

 

Mitch


(Bart Banda) #5

Hey mitch, make sure you have all the required functions turned on in the JS API that you are using for Edit+. You can review the manuals for which ones you need: http://manuals.matrix.squizsuite.net/edit-plus/chapters/installation-guide#The-Javascript-API 


(Mitch Kerry) #6

Thanks Bart

 

That fixed it!

 

Mitch


(A Maskell) #7

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.

 

Any other ideas?


(Asharpe) #8

Have you double checked that the required API functions have been enabled as per the resolution for Mitchs' issue?


(A Maskell) #9

Double checked and all functions are enabled.