• swizzin

    (@swizzin)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    joostdevalk

    (@joostdevalk)

    Added in 2.9 ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Google Analytics for WordPress] Track subdomain?’ is closed to new replies.