Adjusting Bounce Rate via Google Tag Manager

I have talked about Adjusting bounce rate in Google Analytics before, where I explained in great detail why you need to adjust your bounce rate and what are the benefits of such adjustment.

What I am going to share with you today is, how you can adjust bounce rate via Google Tag Manager.

Adjusting Bounce Rate in Google Analytics via Custom HTML tag

The easiest way to adjust bounce rate via Google Tag Manager is by deploying Google Analytics Tracking Code via Custom HTML Tag instead of using the Google Analytics tag template.

In this way you can easily customize your GA tracking code. Follow the steps below:

Step-1: Determine the minimum time it takes for majority of your website visitors to complete a goal conversion and/or ecommerce transaction. You can determine this time through this article: Adjusting Bounce Rate in Google Analytics

Step-2: Create a new custom HTML tag in Google Tag Manager and name it ‘Universal Analytics Tracking Code’:

custom html tag

Step-3: Copy-paste following code in the HTML box:

<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

ga(‘create’, ‘UA-XXXX-XX‘, ‘auto’);
ga(‘require’, ‘linkid’, ‘linkid.js’);
ga(‘require’, ‘displayfeatures’);
ga(‘send’, ‘pageview’);
setTimeout(“ga(‘send’,’event’,’Profitable Engagement’,’time on page more than X minutes‘)”,XXXXX);
</script>

Replace ‘UA-XXXX-XX’ by your property ID.

Replace X minutes with the minimum time required (in minutes) to profitably engage with your website users.

Replace XXXXX with the minimum time required to profitably engage with your website users in milli seconds.

All I have done here, is added one additional line of code in the Google Analytics tracking code, immediately after ‘ga(‘send’, ‘pageview’);’:

setTimeout(“ga(‘send’,’event’,’Profitable Engagement’,’time on page more than 3 minutes’)”,180000);

Get the E-Book (62 Pages)

Adjusting Bounce Rate in Google Analytics via Timer Trigger

The other way of adjusting bounce rate via GTM is through ‘Timer Tigger’.

Follow the steps below:

Step-1: Create a new Google Analytics tag of type Universal Analytics and name it ‘Fire profitable Engagement Event’.

Step-2: Configure the tag as shown below:

profitable engagement tag

Tag Type: Universal Analytics

Tracking ID: UA-XXXX-XX // enter your tracking id

Track Type: Event

Category: Profitable Engagement

Action: time on page more than 3 minutes

 

Step-3: Create a new Timer trigger with following configuration:

timer trigger

Set the ‘interval‘ field of the timer trigger according to minimum time it takes for majority of your website visitors to complete a goal conversion and/or ecommerce transaction.

Once you have set up the timer trigger, your event tag will fire when certain time (specified in interval field) has elapsed. In my case the ‘Fire profitable Engagement Event’ tag will fire after 180000 milli seconds or after 3 minutes and it will fire only once.

Note: The ‘Limit’ field of 1 indicates that the tag will be fired only once.

If you want this tag to fire after every 3 minutes, then leave the ‘Limit‘ field of the timer trigger empty.

 

Step-4: Once you have created this new tag, preview your container and then publish it.

Other article you will find useful: Google Tag Manager Data Layer explained like never before

 

Take the Course

Most Popular E-Books from OptimizeSmart

Learn to read e-commerce reports book banner

Check out my best selling books on Web Analytics and Conversion Optimization on Amazon

How to get lot more useful information?

I share lot more useful information on Web Analytics and Google Analytics on LinkedIn then I can via any other medium. So there is really an incentive for you, to follow me there.

Himanshu Sharma

Certified web analyst and founder of OptimizeSmart.com

My name is Himanshu Sharma and I help businesses find and fix their Google Analytics and conversion issues. If you have any questions or comments please contact me.

  • Over twelve years' experience in SEO, PPC and web analytics
  • Google Analytics certified
  • Google AdWords certified
  • Nominated for Digital Analytics Association Award for Excellence
  • Bachelors degree in Internet Science
  • Founder of OptimizeSmart.com and EventEducation.com

I am also the author of four books:

error: Alert: Content is protected !!