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
-
What Analytics Do You Use To Track IOS and Android?
We have about 600k downloads of our app and would like to know what cost effective analytics tool you use to gain insight into what your app users are doing? Thanks! Best... Mike
Reporting & Analytics | | 945011 -
Does applying filters in Google Analytics affect Moz Data?
Hello, I'm dealing with spam in google analytics, applying filters (and using segments for historical data) Does applying a filter in GA affect Moz data, future or historical? Is there a way of doing this? Thank you!
Reporting & Analytics | | wearehappymedia0 -
Google Tag Manager Tracking
We have Google Tag Manager set up to track our website https://kontenta.co.uk/ Although we have a blog - https://kontenta.co.uk/designroom/ I'm just wondering if it's better to track the sites separately? If so, how do I add the blog to tag manager? Does it need setting up as a filter to match the regular expression https://kontenta.co.uk/designroom/* We just need to figure out the best way to measure both the website and blog traffic and if users are coming from the blog to the site, and what interactions they are making. Thanks
Reporting & Analytics | | Jseddon920 -
No Search Data in Google Search Console (Search Analytics)
Wondering if anyone has experienced 0 data in their Google Search Console (Search Analytics) and found possible solutions to retrieve data? We have a few clients who, prior to the update to Google Search Console, were getting data regularly in terms of the Search Queries report, but ever since the update to Google Search Console, they are no longer receiving data. As an FYI, both the www and non-www versions of the website are verified in Search Console and the XML Sitemaps and Robots.txt files are clean, tested and working fine. Any insights or experience of sites showing 0 data in Search Analytics? Any possible solutions would be greatly appreciated. Thanks!
Reporting & Analytics | | SEO5Team0 -
Page Name Tracking - Without UTM links
Hello, Our current site is fully html with no cms. We're moving to a newer version today with a typo 3 cms. My one worry is as follows; On some pages an internal link opens a jquery lightbox, inside the lightbox will be a video or download link. I cannot simply add a standard event url like I wanted to (utm_ link) as the pages are linked via the cms pointing to different pages, not the url's. We really need the following appearing in Analytics, whether its an event or landing page; The click of the light-box link The click of the video OR download link inside the lightbox. I would really, really appreciate any help on this as the new website is going live today, regardless whether this has been resolved. Thank you very much in advance of any replies. twY8s8B.jpg
Reporting & Analytics | | Whittie0 -
How would I create this type of report in Google Analytics?
I work for an e-commerce site. I would like to run a weekly report to see what every category pages increase and decrease for pageviews would be. How would I do that?
Reporting & Analytics | | EcommerceSite0 -
Uptick in not tracked conversions / anyone have a list of things that google analytics will not track
There seems to have been an uptick in users on our site not being tracked in Google Analytics cause I see a lot more un-tracked revenue in the last 6 months then I used to. I know analytics is still working as it has been tracking a normal amount of visits but I assumed there might be a reason less would be actually showing up in analytics (mabye a change is what is being reported as organic). I know a lot of stuff goes into "not provided" such as logged in search and stuff like that but is there a list of all of the ones that go into not provided and all that just do not get tracked (javascript not enabled, iOS?). If it could be something else as well let me know. Thanks for the help!
Reporting & Analytics | | Gordian0 -
Testing IP Exclusion Filters in Google Analytics
(I hope I haven't missed something simple 😉 I have add IP exclusion filters in Google Analytics. What I haven't been able to determine is how to test to see if it is working. I'd imagine there would be a dip in traffic but if a site is low volume it might not even register. Thanks!
Reporting & Analytics | | AUDigitalMarketing0