Google Analytics for Multiple Environments (Dev/QA/Prod)
Let's cut to the chase, I was looking for a way to use a single account with a single property and have multiple views. I thought this was very possible would be easy to manage data that way but I wasn't sure how. After playing around a little with the interface I figured it out. None of the resources directly helped but were really good insight. What I also figured out was that you can use a single line of code to do this, so no need to change the javascript in each environment. This is great because I don't need to alter the javascript snippet to point to the difference environments. Google Analytics Filters You will need these order to separate the data between different views, use the filter on your views not the property. Under Admin, select your view and then Filters. For all the filters (Dev,QA, Prod) I did a Predefined, Included only, traffic to the hostname and that contains. I've seen in some environments where dev and qa are on a subdoma