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
-
How can I distinguish new visitors from existing (customers) in Google Analytics to attain an avg # of new visitor traffic per day/week?
i do marketing for a business software site where we have hundreds of clients and each account has on avg 100 users. I am having a very challenging time to attempting to figure out the real number of unique traffic that our site receives. **(what's creating the issue is that we have thousands of user accounts where our users log-in via our site to access our app/platform). Would love help with this! Christian
Reporting & Analytics | | Sundance_Kidd0 -
Google Analytics Goals - Different Domain
Hi, We currently need to setup a goal that involves a different domain. Any guidance would be greatly appreciated. more info: the checkout process is redirected to a secure.domain Just let me know if I can provide any additional info that may helpful.
Reporting & Analytics | | opusvo0 -
Google Analytics traffic hijacking?
Ran into something interesting a week ago - the same Google Analytics code was installed on two different sites by accident. The account was reporting traffic from both domains. Haven't found a definitive answer on how to stop this yet if it were to be used maliciously?
Reporting & Analytics | | khemistry0 -
Google Analytics
Hello In Google analytics you can obtain the number of visits as a result of non-paid search. You can also set up custom reports to find the number of organic searches. The numbers are different, so what is the obvious difference between these two metrics that I'm missing. Thanks in advance for any assistance. Neil
Reporting & Analytics | | mccormackmorrison0 -
Google Analytics Options
A couple of months ago, I read about a new web stats application that is real time but more importantly let's you track user actions on a page (i.e. which buttons were clicked for example). This information would obviously be very helpful in continuing to improve site performance. Anyone have suggestions or know the name of this application? I do not mind paying but am not looking for an enterprise class application.
Reporting & Analytics | | Mont0 -
Tracking Required Form Fields in Google Analytics
I tried searching for this elsewhere but am having a hard time finding a good answer. Is it possible to track the effect of required form fields on conversions in Google Analytics? In other words, how do I track whether or not more/less people fill out a form if I make "Last Name" a required field? Thanks 🙂
Reporting & Analytics | | kylesuss0 -
New Google Analytics Site Speed tool and excel
Hello, I was wondering if there is a good tool or method to pull the new Google Analytics Site Speed data into excel and use this document to track site speeds on a weekly basis for multiple clients? Any good articles or how-to's would be awesome!
Reporting & Analytics | | Hakkasan0 -
How do I set up Google Analytics to track paid visitors from Bing
When looking at Traffic Sources in Google Analytics, Google is broken out into paid and organic visits. I want to do the same with Bing. How do I do it?
Reporting & Analytics | | cpantages0