Google’s recently announced Site Speed Tracking for Google analytics. The new updated Site Speed Tracking allows you to track your blog or website’s page loading speed from Google Analytics. As of now the new version of Analytics only shows this feature, you must use new version to see your WordPress blog’s page loading speed.
Here in this tutorial I’m going to show you how to update your old Google Analytics code to measure your blog’s page loading speed. Using Google’s Site Speed Tracking you will be able to track your blog’s Which landing pages are slowest?, Which campaigns correspond to faster page loads overall?, How does page load time vary across geographies? Does your site load faster or slower for different browsers? And lot more.
So let’s start. Please note that, if you are using Analytics Plugin like Yost Analytics please check whether it’s already been updated to latest version. If you just manually added analytics code to your theme then you need to update as I mentioned in this tutorial.
Step 1: First find your Analytics code in your theme.
you may find it in header.php or footer.php files. Some themes having options to add analytics code in theme settings menu.
If you don’t know where to find your Google Analytics code in your Analytics account check this article to find it.
Step 2: Add This Custom Code:
Step 3: Update Analytics Code:
Now copy and paste below single line code to your present Analytics code. After updating your analytics code will looks like this:
Step 3: Check and Make Sure Everything is working fine from your Google Analytics account
Log in to your Google Analytics account and make sure you’ve clicked on “New Version” at the top. Then go to My Site >> Reports >> Content and click on Site Speed.
By default, Site Speed tracking is disabled until you add the code to your site. It may even take a few hours for it to start pulling in any numbers, so don’t worry if it’s not working right away.
Speed tracking option in your Google Analytics account is disabled by default, it will enable automatically when you have update your code as suggested in my tutorial. It may take few minutes to hours to a day to start pulling in any details and reports from your site so don’t worry if it’s not working right away.