Viewing 4 replies - 1 through 4 (of 4 total)
  • If you really want to do that, you can use the wp_head hook and add it like this:

    function gadwp_bouncerate_adjustment() {
    ?>
    	<script type="text/javascript">
    		setTimeout( "ga('send','event','Profitable Engagement','time on page more than 20 seconds')", 20000 );
    	</script>
    <?php
    }
    add_action( 'wp_head', 'gadwp_bouncerate_adjustment', 100 );

    As a suggestion, I would use wp_footer to push it in footer, but that’s up to your choice.

    Thread Starter GrampaB

    (@jgbennette)

    Thanks, Alin. I’ll add it to my footer, give it a month, and see how it goes.

    Tom Vaughan-Mountford

    (@tom-vaughan-mountford)

    Hi, I’m trying to do this very same thing to resolve misleadingly high bounce rates on my landing pages. Am I correct in thinking that the plugin file I should be editing is:

    google-analytics-dashboard-for-wp/gadwp.php

    If so, whereabouts in this file should I place the additional code?

    Lastly, if the plugin receives an update is it likely that my addition to the code will then be stripped out again?

    That code goes into function.php file of your child theme (recommended) or theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bounce Rate Uptick’ is closed to new replies.