Is Analytics Code for SubDomains different?
-
I am currently tracking site performance on our website with Google Analytics.
Recently, we've brought a Wordpress blog into our site as a subdomain blog.accupos.com. Though we did this a few months ago, we do not have Analytics data for these pages within the wordpress platform.
I've found where to paste the code, in the Footer block of the Wordpress template, just before the close body tag (is this the best recommended way?) and just have one question about WHICH code to paste.
Can I add the original code, same as the rest of the site? Or does Analytics have a different code for tracking subdomains? If so, do I need to replace existing code for the rest of the site?
I hope I worded this okay. Please help. I'd appreciate it!
Derek M.
-
Hi Derek
I checked out the site real quick.
Technically 'www' is a subdomain. So you should have www.accupos.com and blog.accupos (or just accupos.com for the main site).
When Google Analytics says "mutiple subdomains" they mean a website that has a root domain (accupos.com) with more than one subdomain it can load with - in your case it should be blog and www - but somehow you've got what's called a "sub subdomain"
So you should first look into how/why its set up like this and just have blog.accupos.com (without the www) This is something you'd have to likely work with IT or your developer to fix.
Then in analytics you'd select "One domain with mutiple subdomains" and you'd be all set.
-Dan
-
I did see that tool for Analytics code but not sure how it fits together with the following:
When I found the Code Snippet in Google Analytics, there were 2 options, one was for "A single domain" and another variation of the code was for "One domain with multiple subdomains".
So here are my 2 Questions:
Considering our blog is in the subdomain format, www.blog.accupos.com, is this second code more appropriate, especially since we DON'T have MULTIPLE subdomains? (we only have one...www.blog.accupos.com)
If we do use the NEW code for "multiple subdomains", do we also replace the Analytics snippet on all the OTHER pages within the site which are already being tracked with the old code...?
Thanks!
DM
-
Hi Derek
You can use the same analytics code as you do for the rest of the site. It makes sense in this case.
I would recommend using Yoast's Google Analytics plugin for WordPress - this way you don't need to put the tracking code into the WordPress code, the plugin will do it correctly for you.
Hope this helps!
-Dan
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
-
Is it possible to import data from an old Google Analytics profile to a new Google Analytics profile?
We have encountered a situation where a client's old SEO firm is refusing to grant us Admin access to our client's existing GA account. For security purposes (so the other SEO firm doesn't delete the existing GA profile) we have started a new Google Analytics profile. Again we do have access to the data in the old account. Is it possible to migrate this old data over (if we just have user access)? Thanks for the help
Reporting & Analytics | | RosemaryB0 -
Google Analytics, new property or views?
Hi All We have an existing Google analytics account which was customised relatively heavily a few years back, with custom variables, e-commerce tracking and the a large number of filters. We have determined that the custom variables and e-commerce tracking, at least for now, are no longer required and actually complicating our lives. We want to simplify the account and add a fresh set of goals and events. Our initial train of thought was to create an entire new property with the usual views, raw, test, main etc. We are proposing to retain both properties (6 months) so we can still do some comparative stuff. We're now wondering if we should retain the existing property and just create new views, the downside being that whilst we can compare data with previous periods it's meaningless to some degree as the filters etc are different. The plus of more views is that we're not firing the tag twice retaining two properties. Views and opinions welcome. Thanks
Reporting & Analytics | | mde9110 -
Universal Analytics - is it awarding traffic incorrectly ?
A few days ago deployed a new site. A funny thing happened within one day. Google Analytics commenced reporting Organic traffic as lifting by 25%. At the same time Google Analytics commenced reporting that direct traffic dropped by 25%. All other traffic sources remained at the same level. This is all being reported through GA Universal. Has anyone experienced this before? Any advice is appreciated. Also noted that with Google Webmaster is reporting, since the day of the new site deployment, a 40% drop in impressions and click. Reported referrals on this deployment day also went through the roof. All of the Google tools I am depending on are not supporting my discovery of a solution to this. If anyone has been through this on universal analytics or traditional analytics please help! Offering lots of good karma points in return. Cheers.
Reporting & Analytics | | Oxfordcomma0 -
Alternative to Google Analytics
Hey Everyone, My company has just changed the order processing software we are using and it's causing some issues with Google Analytics conversion funnel tracking. Specifically, there is one point in the funnel where making certain selections (which about half the people do) causes the page to reload. Also, on the login/register page, if they miss a field, the software tells them missed the field, but loads a new page which has a different URL which is not a part of the funnel when a mistake like that isn't made. All of this is causing Google Analytics to report people as leaving the conversion funnel when they really haven't. About a third of the traffic is being shown as exiting the funnel with the exit URL being the exact same URL as the step they are supposedly exiting from (example: the visitor enters on page1, moves to page2, Google is showing that they exit on page2 and go to...page2. Does anyone have any suggestions of how to deal with this in Google Analytics? If not, do you have a recommendation of an alternative analytics program which can deal with the situations mentioned above? PS - Changing the way the checkout software works does not appear to be a viable option. Kurt Steinbrueck
Reporting & Analytics | | Kurt_Steinbrueck
OurChurch.Com1 -
How Accurate Is Google Analytics Audience Location
Cioa from Latitude 53.92705600 Longitude -1.38481600 Clients love to know which part of the country there visitors originate adn cant get enough of this type of data:
Reporting & Analytics | | Nightwing
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/country-level_zps41f273a3.jpg But just how innacurate is this data when you consder is getting the data from isp locations put another way if i was sat in darkets deepest hole of Paisley Scotland and my ISP was in London would i be tagged as visitor originating in London? Ta muchly,David0 -
How to track affiliate ads on Google analytics
Hi Im new google analytics user, I would like to track affiliates ads (banner flow -javascript) on my website. How to set up goals to track affiliate ads? thanks.
Reporting & Analytics | | info_tipovanie-stavkovanie.com0 -
Google Analytics-Unique visitors?
Does organic search data show unique visitors or all visits? For example, if someone ( a single person) visits my site multiple times after searching the same keyword phrase, does that show in my analytics data as 1 hit from that keyword, or all hits? Thanks!
Reporting & Analytics | | RickyShockley0 -
Google Analytics data - Canonical problems?
Hi everyone, We're trying to determine why Google Analytics is showing multiple versions of the same page as having "landing page traffic". For instance, these 2 pages are both shown as landing pages in GA: www.oursite.com/product_page
Reporting & Analytics | | darkgreenguy
www.oursite.com/product_page/ This occurs many times in Google analytics. Also, there are instances such as these: www.oursite.com/index.php/custom_product_url www.oursite.com/custom_product_url I can't find anything in Google Webmaster tools that would indicate a problem. However, this GA data is making me think there are duplicate content issues on the site... Thanks in advance for any help...0