Tracking analytics on several domains
-
Hello,
I am looking for some advice.
I am working with a real estate client. They have a main website, and then several separate agent websites. The agent sites share some content with the main site, as well as having some unique content.
My question is what is the best way to track visitors? Should I have separate Google Analytics accounts for each site, or should I use one account and separate profiles?
-
When setting up Google Analytics you can specify that you want to track multiple domains.
1. Put this into the head of your document (noting the bold lines)
2. For links you want to track you'll need to use the _link function to track links between the domains. Please note that your analytics tracking code needs to be in the header for this to work, because you need access to to **_gat._getTracker. **If your current links look like:
Then change them to:
onclick="pageTracker._link(this.href); return false;">Login
3. If you send information between domains using forms, you'll need to use the _linkByPost function.
<form action="/action/here.php" method="post" <strong="">onSubmit="javascript:pageTracker._linkByPost(this)">
This will work for GET and POST methods
4. By default, the data in your google analytics reports will only include the Request URI (Requested page), not the domain name. If you'd like to see the domain names in your reports, you can create an Advanced filter for your profile with the following settings:
Filter Type : Custom filter > Advanced
Field A : Hostname Extract A : (.)
Field B : Request URI
Extract B : (.)
Output To : Request URI
Constructor : $A1$B1</form>
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
-
Does subdomain (or sub sub domain) affect analytics data of root site?
We self-host our public website, but over time have also added subdomains onto it that are not public and are for internal or even client portals. I am seeking advice as to whether those subdomains affect the analytics data (self referrals, visits, bounces) of the public site that I am tasked with analyzing. I feel that it does skew the data but need to build a solid case to move the public website to a new domain, so as to leave the existing one in tact with all of its subs.
Reporting & Analytics | | MarketingGroup0 -
Tracking sessions from a sub-domain that is 301 redirected to main domain
Hi, one of my client is launching a new site on a subdomain newsite.brand.com.au but will use a shorter URL on the packaging on their new rang of products to be sold in supermarkets, prompting shoppers to visit xxx.brand.com.au. This specific sub-domain xxx.brand.com.au will be 301 redirecting to newsite.brand.com.au How can I identify and track accurrately all the visits coming from xxx.brand.com.au to newsite.brand.com.au?The visits from sub-domain xxx.brand.com.au will be attributed to direct channel I guess. Is it worth adding GA on this 301 redirected sub-domain xxx.brand.com.au or there another way to identify those visits on newsite.brand.com.au ?
Reporting & Analytics | | mecglobal0 -
Will 301 redirects (Same Domain) show as referral traffic in Analytics?
For an eCommerce site we have 301'd legacy product pages to new product pages. Is all that traffic going to show up as referral traffic from our own domain in Google Analytics? If so, is there any way to preserve original source/medium info or will all the source/medium info be our own domain since there is a 301 redirect?
Reporting & Analytics | | bozzie3111 -
Intranet analytics
Anyone got any suggestions for good intranet analytics? We can't use Google Analytics because the ga.js JavaScript will only work if the intranet can be accessed using a domain name that is fully qualified, but ours is http://intranet. Also, we don't want user data sent to a remote server via the ga.js script. Our intranet is built on SharePoint if that helps. Thanks
Reporting & Analytics | | Houses0 -
Re-branding with Google Analytics
GM Mozzers, I apologize in advance if my description of this issue is confusing, but I'm doing my best here. Anyway, due to legal reasons, one of the publications I manage was forced to change their name. We set-up a 301 redirect from the previous domain and have also set-up an analytics profile for the new domain, however, as it stands, visits to the old domain outnumber those to the new domain 12:1. Is there anyway to set-up my analytics profile to the new URL so that this traffic is being attributed to the new domain and the new site, since, after all, it is a redirect. I hope that I explained this sufficiently. Any and all insight will be very much appreciated. Thank you in advance.
Reporting & Analytics | | NiallSmith0 -
Is there a way to calculate Domain Authority and Domain Trust on a large scale?
Hi there! Since on of our websites is hit by the Penguin update I'm trying to find spammy and low quality external links from our domain. I'm using Xenu to get all the external links. Now I want to know about the quality of the external websites our domain links to. Is there a way to calculate domain authority and domain trust on a large scale in Excel or Google spreadsheet? Kind regards, Mark
Reporting & Analytics | | StephWeigert0 -
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 -
Best Practices For Google Analytics
Does anyone have any recommendations or resources for best practices in using Google Analytics. Specifically, as they relate to SEO and managing and monitoring several websites (i.e. registering/managing multiple accounts vs. master account, etc).
Reporting & Analytics | | Gyi0