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
-
Tracking PDF downloads from SERP clicks
For the longest time, our company policy has always been to put PDFs in a secure folder (hence they are not indexed and do not appear in search results). After evaluating this strategy, there has been clamor in recent months to allow Google to index our whitepapers. My question: Once PDFs start appearing in search results, what is the best way to start tracking clicks due to these "downloads"?
Reporting & Analytics | | marshdigitalmarketing0 -
Trying to locate the e commerce tracking code on shopify?
Hi everyone, I am doing a google analytics site audit for an e commerce site using shopify. I can see e commerce data on GA but I'd like to make sure that e commerce tracking code is present and correct. I have the shopify thank you page checkout.shopify.com/example1234556 but cannot locate the client's e commerce tracking code http://cl.ly/191F0Z460p1L. I guess this is normal since we are on the shopify domain. Is this normal to not have the client e commerce tracking code present on shopify thank you page? Does shopify have a system in place that integrates and or generate this e commerce tracking code for the client? Finally, how can I verify if the ga e commerce tracking code on shopify is correct and in place? Thanks for letting me know!
Reporting & Analytics | | Ideas-Money-Art0 -
Universal Google analytics e-commerce tracking code?
Hi Mozzers, I have never setup a universal google analytics e-commerce tracking code before and my concern is what exactly do I need to add on the cart thank you page? Can someone send me a sample of code I need to be adding? What kind of customization does it require? The more details you can provide the better! Thanks!
Reporting & Analytics | | Ideas-Money-Art0 -
Weird Google Analytics tracking question
I have a client that has a market place site, where people list goods and sell them, think something like Etsy. Instead of developing a system to show the users page views and things like that, does it sound reasonable to let them enter a Google Analytics property on the pages they list on, then let them monitor through GA? Does anyone see any fatal flaws in this thinking?
Reporting & Analytics | | LesleyPaone0 -
Does traffic coming from Adwords increase overall Domain Authority or Page Rank?
If I'm setting up an Adwords campaign, will setting my homepage as the landing page boost my domain rank? and will the Page Rank of the landing page get boosted because of the high click rate coming from the Adwords campaign?
Reporting & Analytics | | s2bkevin0 -
Google analytcics sub domain dot or not?
Buongiorno from 16 degrees C wetherby UK famous for the Wetherby Whaler Chippy 😉 OK... on this site http://www.philpotts.co.uk/ I've set up sub domain tracking as so:
Reporting & Analytics | | Nightwing
Parent site:
http://www.philpotts.co.uk/ Sub domain
http://shop.philpotts.co.uk/ So my question is please: should a dot be placed in the sub domain line as in : _gaq.push(['_setDomainName', '.philpotts.co.uk']); Some advice places a dot in setDomainName other advice doesnt 😞
Any insights welcome, Grazie,David0 -
How do I connect GA to SEOMOZ if I do not have access to a GA account ?
I am not the owner of the account it is a clients and I need to connect my SEOMOZ to their GA account.. any ideas? Thanks in advance 🙂
Reporting & Analytics | | Andisue1 -
Why is Benetton ranking with tracking parameters?
For this search: https://www.google.com/search?q=benetton&pws=0 I see the following URL ranking #1 http://www.benetton.com/?utm_source=centrum.sk&utm_medium=listing Why is this happening? I could likely figure it out but I'm busy so I was hoping someone could dig around and let me know 🙂 Anyone? Incidentally, Benetton is in the middle of a massive campaign at the moment so it's strange timing for them to have this showing up and screwing with their GA tracking... EDIT: I should clarify, Benetton is not a client - I don't know anyone who works for or with them. I'm just curious why this is showing up. cmNWx.png
Reporting & Analytics | | TomCritchlow1