This guide will show you how to add google analytics on a wordpress.com blog.
This is a much requested feature and the wordpress.com forums are filled with requests for adding google analytics to their blogs as they’re not enough for those content hungry audience.
But, I have found out a simple workaround that will let you add google analytics to your own very WORDPRESS.COM blog. And, yes, I’m not kidding anyone. (You can see the screenshots below).
WordPress.com the amazing blog service that runs on the much famous CMS(Content-management system) WordPress, but is all hosted and secured by it’s parent company – Automattic, has amazing features built right in.
But, as they say, there are no free lunches, unless you can keep up with the endless amount of restrictions they pose on you, you will end up paying some amount for their paid upgrades.
Now, let’s get to the point.
It looks simply that the people are not satisfied enough with the built in stats feature that wordpress.com offers.
Well, to be honest, although the stats features get upgraded over time, they still lack professional and vital information that simply Google Analytics offers, and for free.
But it looks like that Automattic is just simply ignoring such a request.
But, don’t worry, you will get the solution on how you can add Google Analytics to your wordpress.com blog.
Well, the solution is simple and easy to get working.
The basic idea around this is that you use cloudflare to connect your wordpress.com blog and from there, you use their apps feature to connect google analytics with their tracking code and inject it right into the code of your site !
To get google analytics on your wordpress.com blog, there are some prerequisites:-
- A wordpress.com blog WITH A CUSTOM DOMAIN. Remember, this guide won’t work until you have a custom domain. This is a requirement because the DNS settings are what are going to be pointed to cloudflare so it can inject some code into your site.
- A cloudlflare account. You can get it over at cloudflare.
- A google analytics account. if you don’t have one, just get one over at Google Analytics.
So, here is the main meat you wanted since the beginning. Let’s go:-
1) Go to the settings of the domain in your wordpress.com account. I bought mine from wordpress.com itself, so don’t worry, your setting might be different. Or, you can just login to your domain name provider.
2) From there, click on the edit domain name button (yours may change depending upon your provider).
3) Let the screen remain open and login to your cloudflare account. Then, click on the add new website box and enter the URL of your website.
4)Wait for it to do the scan. Then click “Continue setup”. You’ll sent to the following screen:
Don’t worry about the huge number of settings. Just scroll down to the bottom and click “I’ve added all missing records, continue”.
5) Then, the following screen appears.
From there, you can customize your settings as per your requirement. And, then click continue.
6) On the next screen copy the nameserver URL they give you and add it to your domain name. You can see that I’ve already done that in my domain name settings on wordpress.com.
7) Then you’re all set. All you now have to do is wait for 24 hrs (unless you have a paid account on cloudflare) and then all you have to do is go to their “APPS” tab.
8) Scroll down and click on the OFF tab button and it will get ON.
9) Just add the tracking code that Google analytics gives you and click submit. If you don’t know how to find that, it is under Admin, and under the centre column in property settings.
Then, add it to your cloudflare app and you’re done (except for the time it takes to activiate).
Though the solution is 100% working right now, wordpress.com might remove this feature, or can Cloudflare. So, as far as now, we’re in their hands.
PROOF AND SCREENSHOTS
Though the above screenshots are all taken by me from my own accounts, you can find some more proof screenshots that Google Analytics is running on WDARSENAL.COM (A wordpress.com blog).
So, you can see that solution works 100% and you can even apply it to your won wordpress.com blog with the steps given above.
If you liked this post, I would appreciate if you got on the insider list (from below this post) and share it (via a social network – particularly Google+).