Our Blog

Modifying Google Analytics Code for Improved Tracking of Bounce Rates

You Are Here :
Home
Blog
Our Blog

Modifying Google Analytics Code for Improved Tracking of Bounce Rates

In addition to receiving and tracking your target web traffic, you also need to track visitors that might just end up at your home page or any other landing page and exit without visiting any other page on your website. This “bounced” traffic can be calculated using the “Bounce Rate” feature in Google Analytics tool.

However, the current Google Analytics code does not factor in visitors that might have stayed on longer on your landing page, extracted vital data from that page and acted positively to contact you through other means such as via a telephone or fax number mentioned on your home page. Another example might be a blog home page that a visitor might read for a longer period of time i.e. for more than 30 seconds or a minute or any other time period, and might exit to search for information provided on your blog.

The above reactions by your target visitors might be positive, but would still rank as “bounced” by Google Analytics. You need to actually find out about visitors that have exited your website page immediately upon landing on it. This is possible by changing the Google Analytics code to incorporate the number of seconds that a visitor spends on your homepage before being classified as a “bounced” statistic.

The basic change in coding is the setTimeout coding that allows you to change the time as per your requirements. For instance, if your home page is too long and requires a lot of reading and scrolling then you can set a longer time period. A little bit of trial and error will help you to finally set a time limit that differentiates between genuinely bounced visitors and those that have merely stayed on longer to actually read the content on your web page.

The revised coding is as follows:

<script type=”text/javascript”>

var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-XXXXXXX-1’]);
_gaq.push([‘_trackPageview’]);
setTimeout(“_gaq.push([‘_trackEvent’, ’30_seconds’, ‘read’])”,30000);

(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

The setTimeout code mentioned above is at 30 seconds that can be changed as per your specific needs. You can even set that specific time as your “Goal” in Google Analytics as well as import it in your AdWords conversion provided it meets other conditions.

The above modification in code will certainly help you to track your bounce rates much more accurately and further fine-tune your strategy in future. Use different setTimeout values until you find one value that best suits your business model.

Why Choose Anuva?

Anuva is a leading Digital Marketing Company providing results-driven Internet Marketing Services including Local SEO Services, Online Reputation Management Services, WordPress SEO, Ecommerce SEO, Professional SEO Services, SEO Consulting Services, SEO Audit Services, etc. to clients worldwide. Looking for Google Ads Services OR Facebook Ads Agency? We are a highly experienced PPC Management Company specialized in eCommerce PPC Management. Please check our Client Testimonials and SEO Rankings for you to see the outstanding results we have achieved. Contact us to generate a Huge ROI on your invested dollars from our strongest Online Marketing Services.

We Are Qualified
SEO Ranking
activedemand.com
digital marketing automation platform alberta 8
marketing automation softwares alberta 8
marketing automation webcasting alberta 1
marketing automation webcasts alberta 9
online agency marketing automation platform 9
google.com Ranking As Of 26-Aug-2023
ares.net
ares p2p file sharing program 1
ares p2p network 1
official ares download 3
p2p file sharing platform ares 1
revolutionary p2p file sharing system 3
google.com Ranking As Of 26-Aug-2023
biyanitechnologies.com
biyani digital language lab 1
biyani digital language laboratory 1
biyani digital language labs 1
biyani digital languages lab 1
biyani sugar factory software 7
google.co.in Ranking As Of 26-Aug-2023
csrhub.com
csr data 2
csr ratings comparision 1
search sustainability rating 1
search sustainability ratings 3
social responsibility and sustainability ratings 1
google.com Ranking As Of 26-Aug-2023
emenu-international.com
emenu international 1
emenu solutions 6
interactive emenu 1
international e-menu 1
international interactive emenu 1
google.com Ranking As Of 26-Aug-2023
eremex.com
download topor pcb 1
pcb design time reduction 1
topological router for pcb 1
topological router for printed circuit boards 1
topor competitive advantages 1
google.com Ranking As Of 26-Aug-2023
greenviewdata.com
firewall mail server 1
ldap base dn 2
reporting mta 2
spamstopshere 2
zimbra greenview data 1
google.com Ranking As Of 26-Aug-2023
lumeta.com
real-time breach detection in somerset 7
real-time breach detection in somerset nj 9
real-time breach detection somerset 3
real-time breach detection somerset nj 8
somerset real-time breach detection 7
google.com Ranking As Of 26-Aug-2023
mirekusoft.com
buy install monitor software 1
buy install monitor softwares 1
buy program installation monitor 3
buy program installation monitor tool 2
software installation monitor tool 3
google.com Ranking As Of 26-Aug-2023
promero.com
oracle call center software service 5
oracle call center software services 8
oracle predictive dialer call center solution 1
oracle preview dialing software 1
predictive dialer software oracle 1
google.com Ranking As Of 26-Aug-2023
railcarrx.com
railcar repair management 2
railcar repair management software 4
railcar repair management softwares 3
railcar service software 8
railcar software 9
google.com Ranking As Of 26-Aug-2023
remiware.co
crystal ssrs reports scheduling tool 1
schedule crystal ssrs report 2
schedule crystal ssrs reports 1
ssrs crystal reports scheduler tool 1
ssrs report scheduler software 2
google.com Ranking As Of 26-Aug-2023
Testimonial
You have all done a wonderful job making both of my websites look more modern and professional. I would also like to say how excellent your customer support has been. Any and all concerns I had were addresses immediately with no questions asked....
- Beau Mason
We are more than satisfied with Anuva's Search Engine Optimization services. They have developed and upgraded our website and promoted the business very efficiently. Kudos! Keep it up! We have emerged as a reputed large scale organization and...
- Richard, Seattle
Why Us?
  • 70% + Cost Savings
  • IP Protection & Confidentiality
  • Expert Team with Global Delivery Experience
  • Business and Domain Expertise
  • Maintain your Competetive Edge

Call Me Back

    Success! Thanks for Your Request.
    Error! Please Try Again.