Last active
March 18, 2017 12:35
-
-
Save deconf/41c8fd568423ddbd9e70 to your computer and use it in GitHub Desktop.
Adjust GADWP bouncerate using an event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function gadwp_bouncerate_adjustment() { | |
?> | |
<script type="text/javascript"> | |
setTimeout( "ga('send','event','Read Engagement','time on page more than 10 seconds')", 10000 ); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'gadwp_bouncerate_adjustment', 100 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment