I designed a website for a friends business. I am not any kind of web developer its just a fun hobby so I am not very knowledgeable. I designed the website on the bootstrap framework and it only has one page. There are a few models for information on the website. I am thinking the bounce rate will be hurting his search ranking. These are the stats from Google Analytics.
Sessions- 594
Users - 271
Pageviews- 823
Pages / Session- 1.39
Avg. Session Duration- 00:04:38
Bounce Rate- 83.00%
% New Sessions- 45.29%
I added this code to the analytics script on the website to try and not count a session as a bounce if the user spends more than 30 seconds on the site
<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-69413534-1', 'auto');
ga('send', 'pageview');
SetTimeout(function(){_gaq.push(['_trackEvent', 'Control', 'Bounce Rate', ''])},3000)
</script>
I am under the assumption that bounce rate is affected by the session duration and pages/session. Is the 83% bounce rate something I need to be worried about? If so how can I lower it?
SetTimeout
is not a function, whilesetTimeout
is a function, 2) you're using Universal Analytics but the hit you're sending inside the body of thesetTimeout
function is for the legacyga.js
tracking script. You should usega('send', { hitType: 'event', eventCategory: 'Control', eventAction: 'Bounce Rate' });
instead and 3) the...3000)
at the end of thesetTimeout
function is actually 3 seconds (3000 milliseconds), not 30 seconds.