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:
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,David
-
I know it will work fine without the extra '.' as that's the only way I have ever done it.
-
Hi David,
You're lucky, you don't have to include the dot in the sub domain tracking code. It's also recommended not to do so by Google's own examples in the guide about Cross Domain tracking which could be found here.
Hope this helps!
-
Hi!
According to the current setup in Google Analytics, you don't need the extra ".", but I don't think you'll get an error if it is present. As far as I can tell, they've been going a bit back an forth about this. You can get the proper code for your intended setup in Google Analytics at Admin > Property > Tracking Info.
Hope this helps :)Anders
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
-
Cross-domain / subdomain tracking in GA?
Hi there, My client has a site website.com and a booking engine, booking.website.com They are currently tracking the main site and the booking subdomain as two separate properties in the same GA account. The issue is we can't see where users are originating on the subdomain property; it's all being counted as referral. My understanding is we need to set up subdomain tracking using Google Tag Manager in order for GA to pass the user data between the two subdomains. This is fine, except for this one line I am reading on Google's guide to cross-domain tracking: Subdomains If you have updated your tracking code to analytics.js, then no additional configuration is required to track subdomains. You can use cross domain tracking to collect data from a primary domain, like www.example.com, and a subdomain, like www.subdomain.example.com, in a single Analytics account property. That last line makes it sound like we should be using cross-domain tracking for this purpose. Are we correct in setting up subdomain tracking and NOT cross-domain tracking to be able to track users across subdomains on the same domain?
Reporting & Analytics | | FPD_NYC0 -
E-commerce with domain and subdomain for products
Hi, I have two pages: (main) page with a lot of traffic e.g. www.bags.com/yellow-bag-hp, and I have second subdomain e.g. www.shop.bags.com/yellow-bag-hp . This two domain has different CMS systems. Sites from main page have higher DA and PA and I can’t delete it, and I also can’t delete sites from a subdomain (shop) because this other CMS for eCommerce. What do you recommend for resolve this situation. Maybe create new URL: www.bags.com/shop and put on it all products, e.g.: www.bags.com/shop/yellow-bag-hp, and redirect all old pages to this one, or something else?
Reporting & Analytics | | Tormar0 -
Buffer Link and Google Impressions
Afternoon, I noticed a spike in impressions over a couple of days in April, so I investigated Analytics to see where these were coming from. It appears these impressions were split between two URLs; one was a blog post, the other was the Buffer link to the blog post that we used on Twitter and Facebook. According to Analytics, this Buffer URL received 1000 impressions over two days, with an average SERP position of 16. This surely can't be right, can it? Is this just another Analytics quirk? After two days of a decent amount of impressions to this Buffer link, the amount of impressions dropped to pretty much zero. I know Tweets are now starting to rank, but this would be the Twitter URL, not the Buffer link to our blog post? Any ideas, Cheers, Lewis
Reporting & Analytics | | PeaSoupDigital0 -
Google Analytics Event Tracking
Hi Guys, I want to set up a goal in Google analytics for this site http://www.dfrsolicitors.co.uk/contact.php and the contact us form is in php (so there is no thank you html page). I know there is a piece of code "onsubmit" or whatever it is, but I can't find it. I want to be able to track successful submissions. Kind Regards Neil
Reporting & Analytics | | nezona0 -
Cant find eCommerce in Google Analytics
Ciao from Wetherby UK, Ok ive done this a zilion times but since Google analytics upgraded I cant find how to upgarde the tracking code to ecoomerce tracking. Before i would just tick a box and Boomshanka the code would change. Whats got me worried the tracking codes has not modified to ecoomerce is because it looks like this: Heres the tracking dashboard with no sign of ecomm tracking customisations:
Reporting & Analytics | | Nightwing
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/wheres-ecom-tracking_zps0ef4b8c6.jpg And i cant see any means to modify it for ecoomerce tracking 😞 Any insights welcome!
Grazie tanto,
David0 -
What to get from google Webmaster tools?
Hi everyone, I've been doing optimization for our websites and tracking the results regularly but don't really know what the results actually mean. I heard that I need to check the traffic and organic results from Google analytics and Google webmaster tools. Everybody says something and not sure what to do? Is there anyone clarify the SEO process for me - when to do what and why in simplest way? Thanks in advance,
Reporting & Analytics | | WTGEvents0 -
Why is a section of our website dropping in&out of Google SERPs?
In July 2011 we started a news section that has it's own 'subfolder' /news/ (http://www.chorder.com/news/new_gear/, http://www.chorder.com/news/gear_deals/ etc.) The whole news section is dropping in&out of Google SERP's since late October, as show in attached graph. All news texts are real deal, written by our own staff, linked from homepage. Any idea why this happens and how to prevent it? cmqky.png
Reporting & Analytics | | imventurer0 -
Google Analytics Alternatives
I am getting really fed up with how unreliable Google Analytics data is. Also, because I have several large sites I can't use the goal tracking or conversion funnel reports. What are the best alternatives to Google Analytics?
Reporting & Analytics | | mascotmike0