Skip to content

Instantly share code, notes, and snippets.

@deconf
Last active March 18, 2017 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deconf/41c8fd568423ddbd9e70 to your computer and use it in GitHub Desktop.
Save deconf/41c8fd568423ddbd9e70 to your computer and use it in GitHub Desktop.
Adjust GADWP bouncerate using an event
<?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