GA4 access logs
The GA4 access logs data details usage of the GOV.UK Google Analytics GA4 data via the Google Analytics Data API. This includes usage of the GOV.UK GA4 user interface and Looker Studio connections, as well as direct querying of the API, but does not include usage of the data exported to BigQuery.
Access
Access to the dataset is limited to GA4 user admins, but reporting
Summarised data is also provided to SPOCs for their department.
Location
The data is located in BigQuery under the ga4-analytics-352613.ga4_logs
dataset, in the GA4 Analytics project.
The data is sharded, with a table created each day with the date as a suffix (in the format YYYYMMDD).
Set-up
Data collection
This data is generated by querying the Google Analytics Admin API.
A Google Cloud Run function is triggered by a Cloud Scheduler job to run every day at 6am, retrieving the data and appending it to the ga4_logs
table in the dataset mentioned above.
Schema
field name | type | mode |
---|---|---|
epochTimeMicros | TIMESTAMP | NULLABLE |
userEmail | STRING | NULLABLE |
accessMechanism | STRING | NULLABLE |
accessorAppName | STRING | NULLABLE |
dataApiQuotaCategory | STRING | NULLABLE |
reportType | STRING | NULLABLE |
accessCount | INTEGER | NULLABLE |
dataApiQuotaPropertyTokensConsumed | INTEGER | NULLABLE |
Retention
The data retention is currently set to 2 years.