WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google Analytics for WordPress] Track subdomain? (3 posts)

  1. swizzin
    Member
    Posted 5 years ago #

    I installed Google Analytics for WordPress plugin. It works lovely. I've added a subdomain that I'd like to track. How can I do this with this plugin? is it even possible?

  2. Comparativa de Bancos
    Member
    Posted 5 years ago #

    Hi

    in order to do it the plugin should have an option for adding code to the script. I also need this for subdomains and i am using another plugin until this one adds the feature.

    Yoast, you should add this
    pageTracker._setDomainName(".MAINDOMAIN.com");
    to all the subdomains or subdirectories and also to the main domain in order to make it work. Note it will be always the same ".MAINDOMAIN.com" for subdomains, subdirectories and main domain.

  3. Joost de Valk
    Member
    Posted 5 years ago #

    Added in 2.9 :)

Topic Closed

This topic has been closed to new replies.

About this Topic