Skip to content Skip to sidebar Skip to footer

Google Analytics Record Page View Though Ajax Call

I am logging page view through ajax action when my inner page content gets loaded. Issue is bounce rate data is not updated (always 0%) Default ga page view record logged from foo

Solution 1:

As I see it, you're firing two separate page views within the same page, to check that it's loaded properly.

Bounce Rate is the percentage of Sessions which Bounced. If you're looking at a page level, you only count as a Session if you arrived here first, and you only count as a Bounce if you began here, and then interacted no further (which will likely only register 30 minutes later, as it will hang on to the hope that you may interact again).

This means that you can only count as a Bounce on the first page of the site that you saw, so it's impossible for somebody to bounce on the second page view.

Meanwhile the first page view will only be treated as a Bounce if there is no further interaction. Since you fire another page view almost immediately, it's almost impossible for a user to bounce on the first page view. They'd have to have avoided the second trigger somehow, such as because that part of the site didn't load, or perhaps that they closed the browser at the exact right time. This is unlikely to happen unless you have a lot of traffic to your site.


Post a Comment for "Google Analytics Record Page View Though Ajax Call"