1
votes

Am integrating Wagtail and Google Analytics with the app wagalytics gives me /admin/analytics/token/ 500 () and the settings i used as indicated on the ReadMe

GA_KEY_FILEPATH = 'project-6408cf73f290.json'

GA_KEY_CONTENT = 'key content'

GA_VIEW_ID = 'ga:173531812'

Kindly where am i going wrong ?

This is the only error shown when i put the JSON key contents with GA_KEY_CONTENT = '{"type": "service_account",...'

    AttributeError at /admin/analytics/token/
'dict' object has no attribute 'replace'
Request Method: GET
Request URL:    http://127.0.0.1:8000/admin/analytics/token/
Django Version: 1.11.11
Exception Type: AttributeError
Exception Value:    
'dict' object has no attribute 'replace'
1
Please include the full error message (including stack trace if available). - gasman
am just getting 500 error in terminal - danielmwai
Try right-clicking on the URL in the console, then 'open in new tab'. - gasman
@gasman kindly check the edit i made on the error i get - danielmwai

1 Answers

1
votes

The value of GA_KEY_CONTENT should be the contents of your JSON key, not a reference to the location.