Last active
November 17, 2021 14:54
-
-
Save chavesm/70ebab653bd428c30a0fd8fcd9bf9f00 to your computer and use it in GitHub Desktop.
MonsterInsights adjust GA bounce rate gtag version.
This file contains hidden or 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
<script> | |
// Adjust the bounce rate for GA. | |
setTimeout(function(){__gtagTracker('event', 'page visit 20 seconds or more', { | |
'event_category' : 'adjusted bounce rate', | |
})},20000); | |
</script> | |
<!-- Add to head section of page. --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment