tomdyson / wagalytics

A Google Analytics dashboard in your Wagtail admin
MIT License
217 stars 42 forks source link

Issues Installing. #18

Closed mattmillen888 closed 6 years ago

mattmillen888 commented 7 years ago

Firstly this looks like a fantastic add on. We are really looking forward to getting it working for our clients.

I have everything installed as recommended however im getting these errors in the console

Please note that i am using Universal Analytics with tracking code starting

'ids': 'UA-XXXXXXXX-X',

screen shot 2017-05-11 at 09 21 06

when i click on the link:

https://content.googleapis.com/analytics/v3/data/ga?start-date=30daysAgo&end-date=today&ids=UA-XXXXXXXX-X&metrics=ga%3Apageviews&dimensions=ga%3Ahostname%2Cga%3ApagePath&sort=-ga%3Apageviews&max-results=25&output=dataTable&_src=embed-api%3Av1

It gives response: {"error":{"errors":[{"domain":"global","reason":"required","message":"Login Required","locationType":"header","location":"Authorization"}],"code":401,"message":"Login Required"}}

This is the view in Wagtail: screen shot 2017-05-11 at 09 27 06

mattmillen888 commented 7 years ago

Also would it be possible to store the contents of key.json as a Environment Variable in our encrypted key storage? or does it have to call a file?

alexgleason commented 6 years ago

Use of environment variables has been implemented. I'm closing this now since it's old and the problem isn't clear to me. Feel free to reopen it.