Tracking Subdomains without access to Primary Domain
-
Hi,
I have look after mutliple sub domains on a website and want to implement GA sub domain tracking across them.
I do not have however have access to the primary domain as thats controlled by a larger organisation.
I'm wondering how to set this up so it tracks correctly? Do I set the domain name in my property to the primary domain, or the main subdomain?
For example I have test1.example.com (which is basically a homepage), test2.example.com, test3.example.com and test4.example.com which are various sections.
As stated, I don't control the root example.com so
Do I use setdomainname test1.example.com in the tracking code or
setdomainname example.com.
Apply filters etc and then setup profiles for each subdomain?
Hope this makes sense.
Thanks.
-
Thanks!
-
Hey there,
You'll need the setDomainName line to reference the main domain:
_setDomainName, 'example.com'
Put that across all of your subdomains with the same UA account and it'll properly track. Without GA installed on the main domain, however, all visits to the www. will appear as an exit.
Fortunately, clicks from test1.example.com to test2.example.com should properly track and retain referring information.
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
-
Event/Goal Tracking For EKM Powershop
Hi There, I have a client with EKM powershop. I am trying to figure out a way to either setup goal tracking (however I don't know what the final destination page is) or event tracking. I know I can do the ecommerce tag thing, but I am always worried about breaking the tracking code. Any ideas?
Reporting & Analytics | | nezona0 -
Links On Expired Domains
Does anybody know if a link on an expired domain affects your SEO? I'm just asking because the SEO agency we used before used to create websites and then link to our company - very spammy. We have since ditched this agecny, however they wanted an extortionate amount to remove these links. Therefore, we decided to wait until these domains expired and then the links wouldn't exist. However, I am now completing a link audit and some of these sites are still appearing in the results (obtained from Link Research Tools) but I cannot access the links because the domains have expired. Can anyone help?
Reporting & Analytics | | AAttias0 -
How do I add event tracking to these buttons?
I have two separate events that I would like to track on my site. [Ask a Question](javascript:__doPostBack('ctl00$MainContent$AskQuestionButton','')) and I think I would want to use this-_gaq.push ([‘_trackEvent’,’event category’,’event action’,’event label’, event value]); Is that correct? Where would I place it in the button code? Would this work?
Reporting & Analytics | | EcommerceSite
_gaq.push ([‘_trackEvent’,’AskAQuestion’,’Submitted’,’event label’, event value]); The event doesn't have a label or value. Are those left blank?1 -
Are RSS fees tracked by Google Analytics?
In both the new GA and former version, how are RSS feeds handled by Google Analytics. If not, is there an easy means by which to account for this traffic, in order to have a better picture of traffic. Thanks. Alan
Reporting & Analytics | | ahw0 -
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 -
How to track forwarding URLs sent via DNS settings
Buongiorno from hot a humid wetherby UK. A client has gone ahead and set up DNS forwarding from www.ramsdens.tv to http://www.ramsdensforcash.co.uk now they wonder why theyve got no data showing in Google analytics. So knowing theyve gone ahead with this method of forwarding how is it possible to measure referrals originating from www.ramsdens.tv My only thought is to add a tracking parameter on the baclk of the forwarding url.Thanks in advance
Reporting & Analytics | | Nightwing
David0 -
Cross Domain Tracking
I want to track across domains, but also track as a virtual pageview anytime someone clicks on the link to another domain. So currently I have, for example: Checkout Now! As per Google's instructions, I need to have the link set to: Checkout Now! But this will obviously get rid of my virtual pageview. Is there a way I can do both?
Reporting & Analytics | | TeachersMutualBank0 -
Google: show all images indexed on a domain
Is there a way to display all images that google has indexed on a domain / subdomain? I'm basically looking for something like a site:-command for google image search.
Reporting & Analytics | | jmueller0