Prevent google indexing on QA domain
I have a QA (Ex. qa.test.com ) which is an exact replica of my production domain (www.test.com). 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.
Thanks in advance,
Re: Prevent google indexing on QA domain
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