2nd tile has no data
Bug Description
While testing the audience segmentation epic, I noticed that the 2nd tile doesn't come with value at all. It is always 0, even if it actually should have data. Refer to the screenshots further down where I swapped the positions of an audience where there was a tile with numbers.
Steps to reproduce
- Set up 2 tiles under audience segmentation
- The 2nd tile will be 0 for the first 4 parameters (even if they should have data)
- You can swap the tile order to verify this. To swap, it's just a matter of unselecting the one you want second, save and reselect again.
Screenshots
When 'All Visitors' is in position 1, there is data for the first 4 lines with 5.9K visitors, etc... :
When the same tile is swapped in position 2, there is no data. It's worth noting that the analytics figures at the bottom are showing accordingly.
Additional Context
- PHP Version:
- OS: [e.g. iOS]
- Browser: [e.g. chrome, safari]
- Plugin Version: [e.g. 22]
- Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The Audience Tiles should show the correct data for the audiences.
- Specifically, the tile in the second position should not show zero data when there is in fact data.
Implementation Brief
- [ ]
Test Coverage
QA Brief
Changelog entry
Note: I tested this out, with intermittent results. In my initial testing the bug only occurred when the first tile was in the zero data state. However, I tried it again while reviewing Question 3 in this comment, and found the bug occurred while the first tile did have data.
Hi @kelvinballoo ,
Thank you for reporting this issue.
- This seems to be a special case. We are trying to compare the data for last 28 days, but as we can see that
New VisitorsandReturning Visitorsaudiences are created only on 20th June, 2024. - So essentially Google Analytics 4 does not have data for last 28 days to compare. If I change it to 14 days, we have the data to compare which is expected.
- Specifically for
New VisitorsandReturning Visitors, this issue will get addressed in #8144 for which we already have the ticket.
@techanvil Please let me know if we should handle this edge case for user created audiences. I think this should get addressed because user created audience can be created at later point and may get added in audience tile, so instead of showing the zero data in rows, we can display the current metrics value and partial data badge (which is already there).
@kelvinballoo Please look at this screencast which shows the above mentioned scenario in SK dashboard.
Hi @ankitrox, as you've pointed out this issue can also occur with user-created audiences that we don't have the special-case handling for. So we do need a general fix for this issue.
IB :white_check_mark:
QA Update ✅
- Tested on main environment.
- Verified that the Audience Tiles showing the correct data for the audiences.
- Verified the tile in the second position are not showing zero data when there is in fact data.
Latest environment
main environment