
As stated by Google, on 2010 websites and blogs’ speed will be an important evaluation factor as far as ranking is concerned. Google Analytics is important to know what is happening on your website in order to know who and how many times your website is visited. However, its tracking code slows the page dowloading time a lot. Recently, Google has released a new tracking code (Asynchronous Tracking) meant to solve this issue.
Asynchronous Tracking is a new fast tracking code. Reading from Google Code: “Asynchronous Tracking is an alternative way to track website visitors with Google Analytics. Unlike a traditional installation, asynchronous tracking optimizes how browsers load ga.js so its impact on user experience is minimized. It also allows you to put your Analytics snippet higher in the page without delaying subsequent content from rendering. The Asynchronous Tracking requires a different Analytics snippet and a different syntax for making tracking API calls.”
What follows is the new code:
<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>
To start using it, simply remove the old code and place this new code right before </head> in your pages. Of course you have to change the UA-XXXXX-X with your own Google Analytics ID and that’s it!
If you want to know more, if you are looking for detailed instruction, read this guide.
Tags: Google App, news, Web Talk
Related ArticlesLatest Articles
- How to Change and Use Timezone (Tzutil) in Windows 7
- Enhance the Security of your Login Password in Windows 7
- How to Activate Hardware Acceleration and WebGL in Opera 12
- Fix “This PC Doesn’t Meet System Requirements. If You Want to Install Windows 8, You May Have to Upgrade…” Error
Leave a Comment
Web Talk is best viewed in Firefox.
Comments
How to copy text from a protected Web Page: Not so simple. Did NOT work for me: Vista/FF
Trick to Downgrade from Windows 7 High Editions to Basic Editions: Please help me downgrade from windows 7 home...
How to Fix uTorrent not Working on Windows 7: Worked on the first try, thanks…
How to fix “Host Process for Windows Services Has Stopped Working”: Hi, I am facing the same problem. I tried...
How to Restore Office 2010 and 2007 Dictionary to Default: Is this a practical joke? All it does is remove all words you...
How to Change and Fake Geolocation in Firefox: Thanks dude. Got my problem solved now. I was searching this query from...
How to Turn Off and Disable “Do You Want to Run This File?” Warning in Windows 7 and Vista: I don’t...
How to Retrieve and Show Files Hidden by Virus Thanks to a Simple Trick: “parameter format not correct”...
How to Fix “The File Name(s) Would Be Too Long for the Destination Folder” Error: Long path tool will...
Watch TV online for free with Tvchannelsfree.com: Hello! Would you mind if I share your blog with my myspace group?...