Google Analytics account vs property

I have a production site (like somethinghere.com) and a test site (test.somethinghere.com). I want to separate GA tracking for these environments. Should I create one account and two properties (one for prod. Env. And second for test env.) Or is it better to use two accounts . Essentially, in both cases, the traffic will be split. Which approach is better?

+3


source to share


1 answer


You definitely don't need two accounts. You may not even need two properties. You can install the same tracking code on your prod and test sites and create separate views to filter hits by URL.

Using this strategy, you get three views:

  • All website data (default, which tracks everything)
  • Test (test.somethinghere.com)
  • Manufacturing (somethinghere.com)


The advantage of doing this is that if you ever need to report on test + prod data, you can easily do it with the default view. Other views work as usual.

Another advantage is that you don't need any other code for the test environment and prod. What if your test environment checks everything, and then all of a sudden there are no hits in the products? How do you know what went wrong? If your GA code is the same in both cases, you can be more confident that when you push to production your analysts will be tracked.

+7


source







All Articles