I have recently come across the relative importance of creating an 'Adjusted Bounce Rate' Metric. In order to do this, the following code needs to the integrated into the Google Analytics coding:
setTimeout("_gaq.push(['_trackEvent', '15_seconds', 'read'])",15000);
The seconds can obviously be changed to whatever is needed.
My current tracking code is as follows:
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-x"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-xxxxxxxxx-x');
</script>
Whilst I have come across many articles, showing how to integrate the above line of coding, they all seem to use Google Tracking Codes which differ to mine.
As such, I am just wondering if anyone knows where I should place the line of coding into my own above Google Analytics tracking code?