• Hello to everyone, this is my first question (kind of a newbie here :-D).

    I have a website that spans over 4 subdomains + the main domain and I’d like to have a place where I can see the total page views, events and goal completions. Main domain is langhe.net, and subdomains are eventi.langhe.net, servizi.langhe.net, shop.langhe.net, about.langhe.net.

    The website is based on wordpress and I’m using google analytics for wordpress by yoast as analytics plugin.

    The configuration of the plugin is as follows:

    • all the website have the same UA-XXXXXXXX code
    • The Subdomain Traking field (setDomainName) is filled with .langhe.net
    • Cross-Domain tracking is enabled
    • Cross-Domain Primary Domain (setDomainName) is langhe.net
    • Cross-Domain Tracking, Other Domains field is filled with: about.langhe.net, eventi.langhe.net, servizi.langhe.net, shop.langhe.net.

    In the GA property I’ve created an Advanced Custom Filter configured this way:

    • Field A -> Extract A = hostname (.*)
    • Field B -> Extract B = request URI (.*)
    • Output To -> Constructor = request URI $A1$B1
    • Field A Required: yes
    • Field B Required: No
    • Override Output Field: yes
    • Case Sensitive: no

    I was wondering it this is the best way of doing it, or if there are other “best practice” ways to obtain what I’m looking for (for example with this configuration it’s become quite difficult to separate the traffic sources for each website).

    Thank you in advance 🙂
    Cheers!

    https://wordpress.org/plugins/google-analytics-for-wordpress/

  • The topic ‘Google Analytics settings for subdomains tracking’ is closed to new replies.