Google Analytics event tracking not affecting bouncerate?

With the new release of ga.js this is possible. In the old days a fired event immediately after a trackPageview would cause Google Analytics to report a 0% bouncerate for that visit. But sometimes you don't want that behavior because the event is not always triggered by the visitor.

For instance: I track page load times the same way Google Analytics does, but in an unsampled way (Google only meausures 10%). To do that I fire an event immediately after the trackPageview, but I do that in another profile with a different UA-XXXX-Y number so it won't affect my bouncerates. But now we have an extra parameter:

_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)

If you set this opt_noninteraction (boolean) to true it wil not affect bouncerates!!! That makes it possible to:

  • Measure page load times without affecting bouncerate
  • Measure banner rotations on a homepage without affecting bouncerate
  • Measure mouse coordinates to create heatmaps without affecting bouncerate
  • Etc.

Awesome. Don't you think? It saves me a lot of profiles because I can track all events in 1 profile now.

Click to activate social bookmarks

 
  • http://www.ncode.nl/ Jorrit Schippers

    That is certainly awesome. I wonder in what situations someone would want opt_noninteraction set to false. In what cases is that useful?

  • Dave Doctor

    Thanks.

    This site shows an example: http://techpad.co.uk/content.php?sid=187

    This works well, but the bounce rate data for that product gets skewed, but adding an additional field to the end fixes the problem.

    _gaq.push(['_trackEvent','Out of stock items','Apple iPad 2','SKU73893','439',true]);

    Using it without the "true", defaults to recording the event as a non-bounce.

    _gaq.push(['_trackEvent','Out of stock items','Apple iPad 2','SKU73893','439']);

  • Astrid

    We constantly do all kinds of researches considdering Google Analytics. And I am glad they finnaly introduced this option. You can often find blogs on my webpage about Google Analytics, but I did not write any on this subject yet. But you can find more information on bounce rates: http://www.verstrepen.nl/blog/wat-betekent-bounce-rate-google-analytics/#more-415.