Closed bbest closed 2 years ago
And here are the Python scripts by Jonathan Whiting for downloading the analytics.
From: Whiting, Jonathan M Sent: Monday, April 22, 2024 3:48 PM Subject: Download Google Analytics Scripts
Attached are the Python scripts that I created to download analytics. On the detailed scripts, I ran it year-by-year because I was debugging, but you could easily loop over a span of years if desired.
Here are some steps:
pip install --upgrade google-api-python-client
KEY_FILE_NAME
, SITE
, and VIEW_ID
.The summary file lists daily counts, while the detail files show each instance of users or pageviews.
See also, the issue for turrning on analytics for the app, ie shiny.marineenergy.app/report-v2:
Here's what Google Analytics looks like when logged in:
And visiting the Admin (lower left gear), Account access management: