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
-
Google Webmaster Tools During GA Transition?
I'm working with a client that is launching a new website. Google Webmaster Tools can just be disconnected, then reconnected to the new Google Analytics property, correct? Without any data loss in Webmaster Tools? Thanks! Becky
Reporting & Analytics | | Becky_Converge0 -
How to transfer 5 domains under one Brand domain without using 301 redirect with minimum SEO loss
My situation is rather complicated , I have 5 domains with different but identical services. Some with good traffic some without, but 2 main domains have manual penalty from Google (I have tried a lot to get rid of the penalty but no success) so finally I have decided to move all our websites under one anchor website 'a brand' and pass all the seo juice + blog articles under the same. Now the problem with the procedure is that we cannot redirect the penalized domain urls to new one as penalization will also be transferred and the whole motive of creating a new brand will be lost. So if somebody could guide me as of how I should proceed transferring SEO value with minimum traffic loss but without using 301) **One way I could figure out is using canonical (Am not confident over it) but say I create 5 identical pages on new domain and declare them as canonical of old domain pages (So is it safe? will it transfer the penalty of old domain to canonical new urls? ) ** Rest i am bifurcating all the traffic sources like direct / organic / referral / Social etc and chalking out what we can control manually and in what ratio, gradually I will work on each section to transfer the traffic. Main Problem is of Organic and Not available. Some suggestions or blog urls would be appreciated.
Reporting & Analytics | | ngupta10 -
Domain Sub folder tracking from Google webmaster tool
I have created separate google webmaster access for this sub folder http://lineonebus.com/content/ Original domain http://lineonebus.com/ Search results in webmaster shows no search queries though this subfolder created in wordpress is ranking for some keywords.
Reporting & Analytics | | csfarnsworth1 -
Analytics package beside google analytics
Hi, What analytics package can i use to track ecommerce transaction besides gogole analytics that is free of charge? Thanks Arthur
Reporting & Analytics | | VivaArturo0 -
Set up Google Analytics by product category
Does anyone know if it's possible to set up Google Analytics data by product category? We sell roughly twenty product categories on our ecommerce site. We can look at our analytics performance for the site overall and drill down to specific pages, but what we really want to see is our performance by product category. Our product categories can include up to 5000 products. Any pointers on how to do this?
Reporting & Analytics | | ironpac0 -
How to create an advanced segmentation for Google+?
Hey Mozzers, I have a question regarding Google Analytics. The problem: I have created advanced segments for Social Media: Facebook, Twitter, Youtube, etc. They all work fine... Now I am trying to create something similar for Google+ (since soon we are launching a campaign for it and I want to be able to check the evolution fast and effective). My advanced segments look like: Include -> Source -> Matching RegExp -> (Facebook|Youtube|Twitter) How should the Google+ be inserted into the group? I know this question might be easy for some advanced Analytics users but I am stuck at this point. Any help appreciated! Thanks in advance! Istvan
Reporting & Analytics | | Keszi0 -
Setting up Google Analytics default URL
If someone has set: the default url in Google Analytics to a non-www address (http://mysite.com) then placed the UA tracking script from that GA account within the CMS framework of the website... ... and then set the permanent 301 redirect in the htaccess file to redirect to the www address (http://www.mysite.com). How less accurrate will my GA analytics measurements be considering the default url within GA is non-www and the permanent 301 redirect in htacess is to the www-address? Anyone know how reliable GA reports are until the default url in GA analytics is changed to match what is the redirected url in htaccess file? _Cindy
Reporting & Analytics | | CeCeBar0 -
Organic search on google
Hi there, pl take a look at this link, there is a section which says shared results and has a star against two agencies and once article. can pl someone let me know what those starts are and how to get them? Thank you 🙂 so sorry - the link is http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=digital+mareketing+agency+los+angeles Vijay
Reporting & Analytics | | vijayvasu0