How do I add subdomain tracking to an existing Google analytics account that was set up to track website only (without the subdomain option)
-
I know you can track subdomains by just selecting the proper code when you set up the analytics and then create filters for the data in analytics. But how do you add a subdomain for existing analytics website. Is there a way to go back and change to the option to include subdomains and then I assume just replace the tracking code with the new code that Google delivers for this?
-
Hi Tuzzel
I have the same problem, did you manage to fix yours, if so how did you go about it?
Regards
Shano
-
Hi Tuzzell,
Thanks for the advice. I have set-up a filter as per the article above however I am getting instances of the following:www.weddingplanner.co.uk/www.weddingplanner.co.uk
www.weddingplanner.co.uk/my_checklist/www.weddingplanner.co.ukIt doesn't seem to be doing it to pages ending .aspx but it does seem to be doing it to pages with a trailing '/'
It seems to be adding the hostname on twice? Any help you can give would be really appreciated.
-
Thanks for all of the help, I appreciate it.
I do intend to add the filter. I just wasn't too solid on exactly how to go about the code in sites still running classic to get things done. Again, I appreciate the help.
-
Just realised that link was the same one ChadC posted, teach me to pay attention rather than crawling through all my saved bookmarks!
-
If you are using classic analytics you will need to make a small amendment to the code. you can find this information by going to:
Admin> (Middle Column) Tracking Info
You will see a little on/off switch next to the subdomains option, if you turn it on you will notice a single additional line of html is added to the tracking code:
_gaq.push(['_setDomainName', 'example.com']);
If you add this to the code on the site you will be able to track subdomains in analytics.
If you then want to see the sub-domains in the reports you may also want to add a new profile complete with a special filter which will display the entire URL of a page, not just the section after the root domain. There is a guide on how to do this but cant find it right now (Admin>Filters (3rd column)). if anyone knows where that guide is please pop a link as i would like to credit it to the correct person, its incredibly useful.
Note: Make sure you add the filter to a new profile or you'll lose your historic data.
Found the code in an article here, scroll a litte down to see the screen shot of how the filter should look.
Hope this helps.
Thanks, Tom.
-
I just did this and this guide was a big help for me. Hopefully it will help you out too! http://www.ericmobley.net/guide-to-tracking-multiple-subdomains-in-google-analytics/
Good Luck!
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
-
Whatstuffwherebot user agent messing up Google Analytics
Starting yesterday, Aug 26, 2020, I noticed a new bot crawling our site with user agent whatstuffwherebot. Google Analytics is counting these hits as human traffic, completely throwing off my numbers - yesterday, Analytics reported nearly triple my typical number of visitors. As of now, Search Console only shows data through Aug 25 so I don't know if Search Console is also affected. Is anybody else seeing something similar? Does anybody know what the whatstuffwherebot bot is? I don't get any results when I search on Google or Bing. For what it's worth, the traffic is coming from Columbus, OH, running over Amazon AWS via 278 different IP addresses so far. Also, WordFence (my WordPress security plugin) correctly identifies these hits as bot traffic.
Reporting & Analytics | | ahirai0 -
Why is Indeed.com traffic appearing as organic in Google Analytics?
A large number of sessions in my client's Google Analytics account appear to come from medium: organic and source:Indeed. Since I'm focused on SEO for this project, I'd prefer that Indeed be treated as referral traffic. Any ideas for fixing this issue? Also, and I'm sure the answer is no, is there a way to fix the past data in Google Analytics that has already reported Indeed as an organic medium?
Reporting & Analytics | | Kevin_P0 -
Tasks for Google Analytics training
Hi Mozzers, I'm delivering some Google Analytics (Fundamentals level) training, and trying to make it was fun and as interesting as possible... which is quite a challenge when it comes to GA. I was just wondering if you're aware of training tasks, or interactions, I could bring into this kind of training session? The group are particularly interested in user journeys and the effectiveness of content. Thanks!
Reporting & Analytics | | A_Q0 -
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 -
Something does not add up with WMTs search analytics data
we recently replatformed our main site and switched to https. For the first 2-3 weeks after we moved organic traffic was great, we did not lose any ( increased a little), but then it dropped off significantly. Attached is a screenshot from one of our main keywords that dropped off. You can see click (blue) and impressions (red) dropped off, and the position became unstable, but in the last week it has stabilised to about the same position it was before, but the clicking and impressions are still very low. The keyword is generic (for our industry) and there would not be any major seasonal changes in the search volume. I can't make sense of this data, could be be wrong? Kd3p5f9.jpg
Reporting & Analytics | | PaddyDisplays1 -
Analytics options for website builder
I'm working on a website builder with a few friends and we would like to track traffic statistics for each site built on our platform. We're looking for a solution to dynamically generate analytics for each site published on our platform. I've used Google Analytics for a number of years, but I'm not sure if it's capable of doing something like what we're looking for. Any chance someone could throw me a bone? Thank you in advance!
Reporting & Analytics | | NickMacario0 -
What's the problem with this code for Google Analytics
Hello, I'm using this code in my thank you page to track ecommerce sales in GA. The problem that I'm having is that in the google event the _trackPageview doesn't register the proper page but puts the url of the ecommerce website. The transaction is properly tracked. Any ideas of what could be the issue looking at this code? Maybe there could be other code could be causing the problem? Thanks a lot.
Reporting & Analytics | | nagar0 -
Setting up Google Analytics for Subsites
I currently have one main .com site and am planning on launching geo-location subsites .co.uk, .com.au, .ru, etc... Traffic will flow between both sites and some of the content on the subsites will be duplicate and therefore include a canonical tag to the main site. I want to set up GA to capture who is going to the subsites and vice versa and correctly capture crossover traffic. Any advice on implementing advanced analytics directly (or links to sources that will direct me the right direction for this project)
Reporting & Analytics | | theLotter0