Google Analytics to sub domains
-
Hi,
I have a site xyz.com and two separate sites on sub domains xyz.com/abc and xyz.com/def. What's the best way to go about with GA such that I can get all the data in the same place.
Should I use the GA code for xyz.com on sub domains as well? Or should I create separate profiles?
-
Firstly, I would like to correct a mistake I did when posting the questions. The two sites are hosted as subdirectories and not sub domains.
Here's how I solved the issue.:
1. Created two new views for each subdirectory abc and def. Added filters to get specific data for each site.
2. So, now I had three views - The Master View that contains all the data. ABC view - that contains data only for xyz.com/abc and DEF view that contains data only for xyz.com/def. Problem solved.
There were some good points, like defining internal traffic to GA, for subdomains. I believe, it wasn't necessary for subdirectory set up.
I realized that I could have created another view just to have data fro XYZ.com; filter data from both sub-directories.
-
HI Mayank,
You can do either depending on how you want to view the data. There was a good blog post a few months back on the way to approach various setups, check it out here. Separate account profiles is the easiest way to set it up, but of course the data will all be separated also. If you decide to use the same GA code for all the subdomains then you will likely want to do some tweaking to ignore self referrals and filter the data to show the subdomain string in your content reports. If you set up filters I would suggest to do it using views to not alter your original data - you can check out a rundown on how that can be setup here.
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 Analytics direct traffic dropped by 50% after switching to https
Hi, everyone, have a little dilemma and was hoping to get some advice here. I recently installed a new SSL (3 months ago) to force our URL to start with https://. The site was earlier accessible through https:// and http:// prefix however now I have made it so that all urls are redirected to the correct https:// version. The problem is that direct traffic has dropped by more than 50% after implementing these changes and I can for the life of me figure out why. Why would the direct traffic drop all of sudden after making these changes? I am starting to suspect that the earlier data was inflated and that Google analytics was counting users coming from a http:// version of the URL to a https:// version of the URL was counted as direct traffic. Could that be it? Any other possible causes? Would really appreciate any guidance on this problem. Thanks
Reporting & Analytics | | nsereke0 -
What's the problem with this code for Google Analytics
Hello, I'm using this code in my thank you page to track ecommerce sales in GA. The problem that I'm having is that in the google event the _trackPageview doesn't register the proper page but puts the url of the ecommerce website. The transaction is properly tracked. Any ideas of what could be the issue looking at this code? Maybe there could be other code could be causing the problem? Thanks a lot.
Reporting & Analytics | | nagar0 -
Google as referring domain
Hi all, a colleague asked a question, which I could not answer (never even noticed this "problem") 😞 When we are logged into our GA account and go the referring domains section, we find Google. I always thought that these visitors came via Google Image Search, but not all of them do. Most of them come via "/imgres", but some come via "/" (always thought that "/" was the homepage?), "/url" and "//" Maybe I am just stupid, but honestly I could not explain what these strings mean... or how these visitors landed on our site... Can you help me???
Reporting & Analytics | | accessKellyOCG0 -
Google Analytics Custom Reports eMails only one reporting tab
Goog Morning from 18 degrees C mostly cloudy Wetherby UIK 🙂 I'm on a mission to get away from manual reporting and move over to eMailing custom Google analytics reports. Thanks to this tutorail http://searchenginewatch.com/article/2175001/7-Time-Saving-Google-Analytics-Custom-Reports Ive made good progress but ive hit a snag. The snag being when i email the report the recipient only recieves one 1 report tab of data. This causes a problem when you eMail a report that has multiple reporting tabs like this: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/tab-export-custom-problemcopy.jpg So my question is please..."When you eMail a recipient a custom report how can you ensure they receive "All" the reporting tabs data and not just one"? Any insights welcome 🙂
Reporting & Analytics | | Nightwing0 -
Google Analytics and backlinking
Let say I have my main site and my secondary site that is optimized for a slightly different set of keywords (nonetheless still relevant to my main site). I have several links from a secondary site to my main site. Secondary site is on a different C-block. Do you ladies and gentlemen think that if I put both websites under the same google analytics account, Google is going to penalize me or remove some of the juice that is flowing from secondary site to the main site because it would detect through GA that both sites belong to the same entity?
Reporting & Analytics | | SirMax0 -
Multiple Domain Tracking with One Google Analytics Account
I am working on multiple online retail stores as follow. Right now, I have tracking facility with multiple account. Attached image can give you more idea about it. http://www.vistastores.com/
Reporting & Analytics | | CommercePundit
http://www.lampslightingandmore.com/
http://www.vistapatioumbrellas.com/ I don't want to track my statistics with multiple account. Because, it may take too much time behind Goal set up as well as analysis. Can I track all data under one account for all online retail stores? 6464019053_bda32e9fe0_b.jpg0 -
Google Analytics Admin account not allowing us to add other users?
Our Google Analytics Administrator account is not giving us access to the User Manager, and because of that we are unable to add users; have you ever ran in to a problem such as this, if so what was your solution. Thanks a Billion impressions, Vijay E2qE9.jpg
Reporting & Analytics | | vijayvasu0 -
How to combine several subdomain in google Analytics
Good afternoon. I have a question.
Reporting & Analytics | | meteorr
I have a main site site.com + many subdomains example1.site.com, example2.site.com, example3.site.com, example4.site.com .... I need to combine google Analytics reports into one. Information from: example2.site.com, example3.site.com
showed in example1.site.com Yk64j0