1

So far in the classic Google Analytics we just had to add parameter to tracking code like: _setDomainName('yourDomainName')

What method should I use with Universal Analytics to track traffic on my subdomains (landing pages) ? Do I have to use Linker plugin to achieve it?

1 Answer 1

2

You do not have to use any special setting (except that you have to add your domain name to the referral exclusion list in the property settings), Universal Analytics will track your subdomains regardless.

Keep in mind however that the pageview reports track the path only - so if you have the same path on both the main- and subdomains (domain.com/page.html and sub.domain.com/page.html) the number for both will be added up in the reports. A common workaround is to add a view filter that add the hostname to the path (or you simply set hostname as secondary dimension, but that needs to be re-applied every time you look at the report).

2
  • Thank you! Should I add my main domain name to referral exlusion or subdomains also?
    – Tony
    Commented Dec 17, 2016 at 14:12
  • Per documentation it should be enough to exclude the main domain. "Only traffic from the domain entered in the referral exclusions list and any subdomains are excluded." - support.google.com/analytics/answer/2795830?hl=en Commented Dec 18, 2016 at 19:46

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.