4.2K members online now
4.2K members online now
Learn to identify referral spam traffic, as well as best practices to reduce referral spam in your Google Analytics account
Guide Me

Prevent google indexing on QA domain

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi All,


I have a QA (Ex. ) which is an exact replica of my production domain ( Now I have two questions here -

1. How to prevent google from indexing the QA domain?
2. How do I make sure that QA domain host doesn't appear in my Google Analytics.

I have tried the header -
X-Robots-Tag: noindex, nofollow


Even after this I am seeing the QA host coming in GA.

Please advice.


Thanks in advance,

1 Expert replyverified_user

Re: Prevent google indexing on QA domain

Top Contributor
# 2
Top Contributor
Hi Shashank,

The noindex meta tag in the head tag will prevent google from indexing the site.

To have only data in Google Analytics from the production site you can create a predefined filter that includes traffic only to your production hostname. Please check this document about predefined filters:
Let me know if you have questions.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Prevent google indexing on QA domain

Explorer ✭ ✭ ☆
# 3
Explorer ✭ ✭ ☆