Track subdomains in the same analytics property/view
-
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! -
Hi Enrico - welcome to Moz!
Combining subdomains into one Analytics profile is definitely a good way to do things, and totally doable. Have you had a chance to look at Google's guidelines for this?
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite
I know you're enabling this in Wordpress, so you can't follow their guidelines exactly, but it's probably a good idea to make the edits that you've proposed, then look at the code Wordpress puts out and compare it to Google's recommendation.
Then, best practice is to keep the separate profiles you already have running, plus add a profile that combines all subdomains into one profile. Then you don't lose historical data, and you can compare total pageviews of the combined profile to the pageviews of the all the separate subdomain profiles added together to make sure you implemented the new profile properly.
Good luck!
Kristina
-
Hi Cibble!
That's how I started, but now I'd really prefer to have a place with consolidated statistics. It's not just a matter of pageviews counts, but also the webistes are becoming more and more interlinked with each other so I'd like to understand what's the visitor's flow (landing here, then going there etc.)
but thx anyway
-
Hi,
I have many sites that have subdomains and have faced the same problems you are facing. My solution; create a new GA code for each account. It takes seconds to create a new account and even less time flicking between reporting account. Sorry I have nothing insightful to add.
Best,
cibble.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google Analytics Not Properly Attributing Goals
My GA has been working fine for years and is now suddenly attributing 100% of my goals/conversions to a "referral" source. In this case "crm.zoho.com". (see attached url) Our contact form is a zoho CRM form. When prospect fills it out online, it dumps them to a thank-you page and the conversion is counted. That all works just fine, but it is not attributing the conversion to Organic or PPC or Direct as it was a month or so ago. I'm not sure if this may be the cause, but I was cleaning up GA about a month ago, deleting some filters I didn't think I needed any more. Thank you for your help. 9CRUx
Reporting & Analytics | | sanctuary2420 -
WMT data vs. Analytics
Hi Each month I export my data from WMT and go through analytics. I also export our non brand queries from analytics and not WMT - I haven't had an issue before, but this month the impression data is quite different. In the hundreds of thousands different for keywords, everything seems to have taken a big jump and it seems strange. However, not everything is different, I've spot checked some and its; consistent in both, I'm not sure what's going on? One example would be: <colgroup><col width="281"> <col width="72"></colgroup>
Reporting & Analytics | | BeckyKey
| industrial shelving | 1016 |
| industrial racking | 999 | These appear as impressions from Query data in analytics, but they appear nowhere in my WMT query data. Analytics query data shows: | industrial equipment | 670 | WMT Data: | industrial equipment | 143 | Anyone have any idea? Perhaps some kind of tracking issue? Also I've triple checked dates etc...0 -
Google Analytics goals by source report?
Hello everybody. Is there way in Google analytics to create report on what goals have been completed per each source? Example: Lets say I have 3 goals: Subscription, Purchase, Quote. How can I get report, saying something like this: google / organic - Subscription - 5 conversions
Reporting & Analytics | | DmitriiK
Purchase - 3 conversions
Quote - 10 conversions and so on. P.S. Basically, I want the reverse of standard Google Analytics goal completions report, where you can click on goal and see which sources/mediums completions came from. I'd like to do the opposite - "click" on source/medium and see which goals have been completed. Thanks0 -
Does Google Analytics track conversions in real time?
Looking at the section: Conversions > Goals > Overview - does Google Analytics provide real time / same day metrics for this conversion data or does it take 24 hrs?
Reporting & Analytics | | Rich_Coffman0 -
In Ecommerce Conversion Tracking Revenue Is not Showing
Hello Everyone, I have implemented Ecommerce tracking in google analytic but I am not able to see revenue and average value. am I missing something ? Please tell me how can I see revenue and average value. I am also attaching image of that so anybody can understand. Please help me out asap. Thanks CVFakjD
Reporting & Analytics | | Alick3000 -
GA Subdomain Setup
Hi Mozzers, Can someone show me how to add a subdomain profile (sub.example.com) under the master profile (www.example.com) on Google Analytics. I am not sure on how to set it up. Thanks
Reporting & Analytics | | Ideas-Money-Art0 -
What is the best Wordpress Analytics Plugin to use?
I am installing a new instance of WordPress and want to use Google Analytics. Which Plug-in is the best to use? I am finding several Plug-ins that all seem to do the same thing: Google Analyticator Google Analytics Dashboard Simple Google Analytics Ultimate Google Analytics Wordpress Google Analytics Maybe one of these are not the best? Any recommendations would be appreciated. Thanks!
Reporting & Analytics | | LBike0 -
Analytics bounce rate change
Hi mozzers, I have a little riddle. A few weeks ago the bounce rate on one of our website dropped 90% - from 45 % average to 5 % average. We haven't changed much in the code of the site, layout or anything else. The traffic is pretty stable too. Anyone can guess why? Or have experienced something similar? xOvrb.jpg
Reporting & Analytics | | ThomasHgenhaven0