After creating WordPress subdomain multisite blog Adsense ads on subdomain blog doesn’t get registered & Data in Analytics & Adsense doesn’t match…

I have been using WordPress CMS for the last year or two & integrated Adsense ads & analytics without any errors or problems.

But just after creating a WordPress Multi-Blog System with Subdomain, I started facing problems because my pages were not getting registered or Adsense ads clicks were not getting registered, so I was losing money and analytics data count.

But after a few months, I found the solution; I got my analytics code rectified & all Adsense ads clicks started getting registered & my analytics code started working again,

A few suggestions before starting: don’t follow idiot blogs that don’t follow Google’s Rules.

So here are the steps to integrate the WordPress Multi Blog System with Google Analytics & Adsense.

Step 01
Check analytics code
Go to: All Accounts > Account List > Admin > (Your Preferred Account) > Properties > (Your Preferred Website) > Tracking Code > Section Called ‘Website Tracking’ > Go to Advance Tab > Choose ‘One Domain with Multiple Subdomains’

Now copy that underneath code & paste it to your WordPress theme…

Step 02
Primary domain in Analytics
Check if your domain is a Primary or secondary domain under your admin section because the code will differ with different settings.

Step 03
Creating a filter for subdomain tracking in analytics
This step is optional; You can create a filter for your subdomain under filters in your preferred website account.

Step 04
Robots.txt file edit to allow Adsense subdomain Multi Blog
You can put the following code at the top of a robots.txt file

User-agent: Mediapartners-Google
Disallow:

This code will tell Google’s Media Partners, such as Analytics & Adsense Media Partners, that they have accessed this website with every file & folder stored on the server.

Step 05 Tip
Remember to put the correct Analytics code in every theme you use for your WordPress Multi Blog System.

Thanks & Regards
Mandar Apte

Published by Mandar Apte

Mandar is a Mumbai-based multi-disciplinary designer with UX/UI, Logo, Symbol, and Brand Identity design expertise. He currently runs his Mudrkashar Linguistic Apple iPhone, iPad, and Mac app business in the heart of Mumbai city.

Leave a comment

Leave a Reply