Google Analytics 4 proper pageview values can take up to 24 hours to process, give new settings to omit processing nodes newer than X days

Created on 27 June 2023, over 1 year ago
Updated 28 June 2023, over 1 year ago

Problem/Motivation

Querying today's and even yesterday's statistics are no use because GA4 reports 0 until 24 hours passed from the page view count. It means reliable statistics can only be obtained after 2 days have passed at least. It could be a major headache to get the proper view count for those who don't query pageviews for all nodes, but only for a few created in the last X days, or from a recent time period.

Steps to reproduce

This will take a while to reproduce:
1. use GTM or GA4 code to count every page visit
2. create a node with /first-article alias, make a few page visits, for example 3
3. create a node with /second-article alias, make a few page visits, for example 2
4. go to GA4, in the real time data, you'll see 1 user with 5 page_view events
5. in GA4 event statistics for Today, there won't be any data
6. in my testing 12 hours later still no page_views.
7. in my testing 16 hours later, I see that /first-article has 3 but no /second-article page_views.
8. in my testing 24 hours later, I see that /first-article has 3 and /second-article has 2 page_views.

Proposed resolution

This means GA4 may not give final results of pageviews for Today and Yesterday because it is still in calculating and processing that. What you get are partial results. So, we should only query the past no newer than 2 days ago to avoid getting stale results. Now, you can set that in the query using "Custom days ago". But we will need one for the nodes, too.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024