Skip to content

alphagov/ga4-access-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GA4-access-report

This downloads the GA4 access records derived from the GA4 admin API and sends them to BigQuery so that you can see who is accessing a GA4 property.

The authentication to GA and BigQuery is handled by Google Application Default credentials so ensure you have run gcloud auth login to generate them if you are running this locally.

The code base is design to be deployed to Google Cloud Functions with a Cloud Scheduler hitting the http endpoint to trigger an exectution daily.

Requirements

Environment variables needed

These can be set in a .env file

GCP_PROJECT_ID The project to host the Cloud Function and the BigQuery data

GA4_ENTITY in the format properties/123456 or accounts/123456

About

GA4 access records derived from the GA4 admin API

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published