Faster Google Analytics WordPress Code

After Google announced Public DNS to speed up URL resolve time, Google Analytics rolled out a new tracking technology called Asynchronous Tracking. There are reports from webmasters that Google Analytics tracking code can sometimes stop responding and slow down the overall load time of the website.

To solve this problem Google has come up with a new code which loads faster. Apart from speed it also collects data more accurately and eliminates all tacking errors when the JavaScript hasn’t fully loaded.

WordPress users: To set it up, make sure you have entered the code before the tag in Header.php file as shown in the screenshot below. You will need to replace the old code with this new code but make sure you have noted down the User Account(UA) number which goes like UA-XXXXXX-X. You will have to enter this UA in the new code.

Every Analytics user have a unique User Account number so make sure you enter it correctly. After implementing this new code on my site I have observed slight increase in speed, but it is so slight that it is not observable to an average user.

Also please note that if your Analytics code fails to load sometimes, it won’t effect the web page. In other words, your web page will load just fine.

Asynchronous Tracking

It is recommended that every webmaster should enter this new code if they want to speed up Analytics and improve tracking.

قالب وردپرس

About Alyse Kalish

Alyse Kalish
As an Associate Editor for The SalesJobInfo, Alyse is proud to prove that yes, English majors can change the world. She calls many places home, including Illinois where she grew up and the small town of Hamilton where she attended Colgate University, but she was born to be a New Yorker. In addition to being an avid writer, Alyse loves to dance, both professionally and while waiting for the subway.

Leave a Reply

Your email address will not be published. Required fields are marked *