Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Analytics and Google API - Request Failed #946

Open
humantex opened this issue Feb 23, 2020 · 0 comments
Open

Analytics and Google API - Request Failed #946

humantex opened this issue Feb 23, 2020 · 0 comments

Comments

@humantex
Copy link

Problem

Once upon a time, I had a working set of analytics charts on one site's dashboard. It's been a while since I visited that page, and now find that all the data had disappeared - and - they were difficult to get reset.

Technical Details

  • Pagekit version:
  • Webserver: Litespeed
  • Database: sqlite 3.26.0
  • PHP Version: 7.2.27

I tried numerous times to complete all the authorization attempts with the site owner's client IDs and keys that I've triple-check against fresh account values.

There also seems to be an issue with Google verifying the script source when requesting a new token, and I have to select to 'Proceed anyway' to get one. Is it absolutely necessary to give 'Pagekit' viewing permissions when it's not Pagekit's Client ID and keys that are being used for analytics?

After inserting the token, I did see that there were 2 entries listed as "Pagekit" under Google's third-party apps with account access, and Google Signin, but the returned API call for the dashboard widget continually showed "Request Failed".

There were numerous console errors, but at this early stage of trying to figure out what's going on, it wasn't easy to trace which errors 'belonged' to what process.

Screen grab of the original widget error - and - the console errors...

condo-analytics-fail

After half an hour, I went back to go through the console errors to sort out what happened, and suddenly I see a dashboard notice that Analytics needed authorization, and to 'select a profile'.

Any historical data that was there, is now gone and everything will takes weeks/months to populate with any useful new data. Google's various consoles still have years of the same data available, but it won't get repopulated to the dashboard charts and readouts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant