1

I have 2 different domains - say - abc.example & xyz.example. Both domains point to the same server (same A record, same shared hosting account).

Now if I want to setup google analytics for both the domains, how would I do it? Both the sites use same source code and content.

  • Do you want abc and xyz to be treated as the same site in GA, or as two different sites? – Reve Jan 29 at 14:14
1

The easy way is to create 2 views and for both of them set filters on both of them that matches specific url if it is presented like this just do custom filter that includes "abc" or exclude "xyz" , a little harder solution is of course to play with regex: starts with abc (^abc). What ever suits you better

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.