{"id":1268,"date":"2020-02-06T10:45:15","date_gmt":"2020-02-06T10:45:15","guid":{"rendered":"https:\/\/www.darrenlambert.com\/?p=1268"},"modified":"2020-02-06T10:48:05","modified_gmt":"2020-02-06T10:48:05","slug":"how-to-fix-zero-bounce-rate-of-all-sessions-on-google-analytics-when-using-events","status":"publish","type":"post","link":"https:\/\/www.darrenlambert.com\/how-to-fix-zero-bounce-rate-of-all-sessions-on-google-analytics-when-using-events\/","title":{"rendered":"How to Fix Zero Bounce Rate of all Sessions on Google Analytics when using Events"},"content":{"rendered":"
If you are experiencing a zero bounce rate across all of your sessions in Google Analytics and you are using Events then check the following.<\/p>\n
Google Analytics considers a session to be a bounce when only a single page is viewed and there is no user interaction.<\/p>\n
If you are sending events to Google Analytics after the page has loaded this is considered an interaction, and therefore the session will never be a bounce.\u00a0 If you never have bounced sessions the bounce rate will always be zero.<\/p>\n
Here is an example command sending an event to Google Analytics.\u00a0 This is considered interaction with the session, and therefore will never be a bounce,<\/p>\n
ga('send', 'event', 'Category', 'Action', 'Label');<\/pre>\nBelow is an example with the nonInteraction property set to true.\u00a0 Google Analytics will record the event but will not consider this user interaction.\u00a0 If the user only views a single page in the session then this will count as a bounce.<\/p>\n
\nga('send', 'event', 'Category', 'Action', 'Label', {\r\n\r\n\u00a0 nonInteraction: true\r\n\r\n});<\/pre>\n<\/div>\n