• Resolved akiikiwporg

    (@akiikiwporg)


    Thanks for an excellent plugin!

    In the general settings, there is an option to choose “User Engagement”. The information says, “this will give you an adjusted bounce rate”.

    Which default time is the adjusted bounce rate set to? Can I set the time myself, e.g. 60 or 180 seconds? How?

    https://wordpress.org/plugins/better-analytics/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author digitalpoint

    (@digitalpoint)

    The “adjusted bounce rate” mechanism is 15 seconds (it’s not a variable setting right now). Although I suppose it would be easy enough to make it one…

    Thread Starter akiikiwporg

    (@akiikiwporg)

    Thanks for your quick reply! It would be great if you could set the time yourself, since what you consider a “not-bounce” is relative. This blog post made sense to me: Adjusting Bounce Rate in Google & Universal Analytics

    Is it possible to implement this yourself without messing things up with the plugin?

    Thread Starter akiikiwporg

    (@akiikiwporg)

    The code example in the above-mentioned blog post and also this, How To Track Adjusted Bounce Rate, inserts the code for the adjusted bounce rate just AFTER “ga(‘send’, ‘pageview’);”

    In the advance settings of Better Google Analytics, there is an input box for extra JavaScript. However, the info says the extra code will inserted just BEFORE “ga(‘send’, ‘pageview’);” Does it matter?

    Plugin Author digitalpoint

    (@digitalpoint)

    It’s minified, but if you look in the better-analytics/js/ba.js file and find this:

    setTimeout("ga('send','event','User','Engagement','Time on page more than 15 seconds')",15E3);

    The 15E3 at the end means 15 seconds (well technically it means 15000 ms).

    So say for example you wanted it to be 30 seconds, you could make it this:

    setTimeout("ga('send','event','User','Engagement','Time on page more than 30 seconds')",30E3);

    Either way, it will be a setting in 1.1.2 on the Advanced tab.

    Plugin Author digitalpoint

    (@digitalpoint)

    In the case of setTimeout firing, it really doesn’t matter if it’s before or after the pageview trigger… all you are doing is telling the JS to do something xxxxx ms in the future from that point. It doesn’t interact with or affect the pageview trigger.

    Thread Starter akiikiwporg

    (@akiikiwporg)

    Thanks! To make things clear:

    If I change the ‘better-analytics/js/ba.js’-file, I guess it will be overwritten when the plugin is updated next time? The best solution would be to insert the code in the box for extra JavaScript?

    Plugin Author digitalpoint

    (@digitalpoint)

    Yes, it would be overwritten with the next update… but like I said, the next update will also have the option under the Advanced tab, so…

    Thread Starter akiikiwporg

    (@akiikiwporg)

    Great! Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘User Engagement / Adjusted bounce rate’ is closed to new replies.