GA4 Problem?

snitcher44

Junior Member
Joined
Sep 2, 2020
Messages
165
Reaction score
106
I have a website that includes iframes, and when user interact with iframe i can't see them through GA4 active users, so i added this code to my GA4 code;

(function ga4_heartbeat(){console.log("Firing heartbeat");gtag("event","heartbeat");setTimeout(ga4_heartbeat,1*60*1000)}());

it basically checks every minute if the user is still online or not while he is using iframe. However, after I added this my "time on site" data skyrocketed but Bounce rate went crazy high, i wonder what caused bounce rate to go that high. Will that bounce rate harm my site? Should i go back to old settings? Thank you.
 
it basically checks every minute if the user is still online or not while he is using iframe. However, after I added this my "time on site" data skyrocketed but Bounce rate went crazy high, i wonder what caused bounce rate to go that high. Will that bounce rate harm my site? Should i go back to old settings? Thank you.
Yes, with that code bounce rate will grow, so you need to adjust it with a timer trigger. It won't affect your real bounce rate, these are only statistics for your own interest. You are only setting an event tag in the GA4 software.
 
Yes, with that code bounce rate will grow, so you need to adjust it with a timer trigger. It won't affect your real bounce rate, these are only statistics for your own interest. You are only setting an event tag in the GA4 software.
What do you mean by timer trigger? Doesn't it already have? Because it checks every minute and I can adjust that minute setting.
 
The GA4 problem is a Google Analytics issue related to data discrepancy between reporting and processing.
 
Back
Top