I was going through a setup on Google analytics and noticed that Google is now supplying a different tracking code to use for your Google analytics data.
It seems that Google have kept pretty quiet about this new code. Why the change? The new code named asynchronous tracking code is being billed as an improved way to track website visitors with Google analytics.
This new tracking system has been created to optimise how browsers load ga,js so to have less impact on the user experience of the website. What I think this means is that it will load faster. Also with this new code you no longer need to place it at the end of the <body> tag. You can place it higher up the page without it delaying other elements on the page rendering. Google also says that this new code is more flexable than the exsiting code snippet. See below for an example of how the new tracking code looks.
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (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'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga); })(); </script>
If you would like to use this new code snippet for your analytics all you need to is replace UA-XXXXX-X with your own tracking id. We will keep you up to date on what differences this new code has once we have completed more testing. For more information on the new analytics tracking code visit Google.Are you already using this new code? We would love to hear your thoughts below.
- Which mobile-friendly web design strategy is right for you? - August 28, 2015
- Errors to avoid in your social media marketing campaign - August 26, 2015
- Three things you must get right to run a successful e-com store - August 20, 2015
- Focus on the smallest details for a more mobile-friendly site - August 18, 2015
- Three reasons why physical retailers need an online presence - August 14, 2015
- Could your Scottish start-up benefit from a new digital grant? - August 13, 2015
- Does Google care if your website is responsive or not? - August 11, 2015
- Three powerful tips to boost your ecommerce conversions - June 15, 2015
- How Googles algorithm changes influence web design - June 7, 2015
- Stay on top of your Social Media Marketing with these 3 tips - June 2, 2015
You may also be interested in:
- Installing Ecommerce Tracking for Your Website A complete step by step guide to installing and configuring ecommerce tracking for your website with Google Analytics. ...
- Web Analytics TV #9 Review – Back to the Future Review of Google's latest analytics TV show. Learn how to track visits from pigs. ...
- We Love Web Analytics TV – Episode 14 Check out another top video from our favourite analytical gurus at Google. ...
- Google Analytics Wanted by the Fed’s The Google Analytics application has been on the radar of the US Federal General Services Administration for some time, but...
- What Useful New Features Does Analytics Have to Offer? New features for Google Analytics are set to go live this week with an array of advancements on current features....