I was using WordPress CMS for last one year or two & integrated Adsense ads & analytics without any error or problems.
But just after creating WordPress Multi Blog System with Subdomain I started facing problems because my pages was not getting registered or Adsense ads clicks were not getting registered so I was loosing money & analytics data count.
But after few months I found the solution, I got my analytics code rectified & all Adsense ads click got started getting registered & analytics code got started working again,
Few suggestions before starting don’t follow idiot blogs who doesn’t follow Google’s Rules.
So here is the steps to integrate WordPress Multi Blog System with Google Analytics & Adsense.
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…
Primary domain in Analytics
Check your domain is Primary domain or secondary domain under your admin section because code will be different with different settings.
Creating filter for subdomain tracking in analytics
This step is optional, You can crete filter for your subdomain under filters in your preferred Account of your website.
Robots.txt file edit to allow Adsense sub domain Multi Blog
You can put following code in your top of 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 for this websites with every file & folder stored on server.
Step 05 Tip
Don’t forget to put right Analytics code in every theme you will be using for your WordPress Multi Blog System.
Thanks & Regards