• Resolved johnnymorriswp

    (@johnnymorriswp)


    I have two separate WordPress installs with my hosting company and two separate domains i.e. this is not ‘multi site’ and subdomains are not being used e.g. https://www.mysite.com and https://www.mysite.com/subdomain.

    The first (https://www.teachtutti.com) is in the root public html folder. The second (https://guide.teachtutti.com) is in a directory one level down called ‘music-guide’.

    I have verified both with Webmaster Tools and see both in there. Both show search appearances and clicks for each site separately etc.

    I registered both sites with Google Analytics and the code given was the same with a different number after the dash i.e. xxxxxxx-1 and xxxxxxx-2. I added each to the WordPress theme field to add the code (different themes on each site) and each site is listed separately on my Google Analytics view, with the right domain name at the top of the page, next to my email.

    However for the site in the sub-directory (https://guide.teachtutti.com, with the code xxxxxxx-2) there is no data being recorded. It is hard to tell because that site is new and getting only a few hits but it seems the Analytics data is probably being added to the other, main site.

    I am aware that I may be able to add a view to strip the data out for the second site in Google Analytics. However what I can not work out is why if Webmaster Tools has no problem treating as separate sites then why Google Analytics can not?

    Thanks in anticipation of any advice you can give.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Josepha

    (@chanthaboune)

    This sounds like it could be an issue with the way your Analytics accounts are setup. Subdomains are considered part of the overall domain and will be tracked that way.

    In order for these two sites to be viewed differently, you’ll need to add a couple of custom filters. First, you’ll need a filter that will include the full URL in Google Analytics.
    Second, you need to add a filter that includes data from only the domain (or the subdomain).

    It can be pretty confusing to figure out, but here’s the documentation for it: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite

    Thread Starter johnnymorriswp

    (@johnnymorriswp)

    Thanks very much for your help

    Moderator Josepha

    (@chanthaboune)

    You’re welcome! I wouldn’t hurt to brush up on your RegEx in order to build those filters, either. Anchors (^,$) and escape characters (\) are the most useful for what you’re doing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google Webmaster Tools and Analytics’ is closed to new replies.