Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7716563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:40:02+00:00 2026-06-01T02:40:02+00:00

I have 10 top-level domains e.g. example1.com, example2.com, example3.com, etc, and each domain has

  • 0

I have 10 top-level domains e.g. example1.com, example2.com, example3.com, etc, and each domain has its own, unique website (not redirects). My goal is to have one Google Analytics account and one web property for all 10 websites, a master profile (the default) that shows me metrics of all websites combined, and 10 individual profiles for each website to limit the view to just that website… as if it had its own Google Analytics account. After much research and reading, I think I determined that all I would need to do is add the following code to each website:

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX']);
_gaq.push(['_setDomainName', 'example1.com']);
_gaq.push(['_trackPageview']);

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

Where the only thing that would change on each website would be the _setDomainName to match whatever the website’s address is e.g. example2.com, example3.com, etc.

Also, one website is actually at a sub-domain of a top-level domain (anothersite.example4.com), so I’m guessing I’d put exactly that in the _setDomainName variable in that instance (regardless of whether it’s a top-level domain or sub-domain.

Can someone confirm that I interpreted this correctly? Am I missing anything and is this a good way to set that up if I own all 10 web properties and want to later create an account for each website administrator to view metrics for their website only?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:40:03+00:00Added an answer on June 1, 2026 at 2:40 am

    If you do it the way you suggested, you would have to set up some filters:

    • one on each of the 10 domains to filter just incoming data for that domain

    • one on the “master” profile that includes the domain name in the page URL to keep the pageviews from combining on like named pages across domains (i.e, example1.com/contact.html and example2.com/contact.html)

    This is all in addition to a “raw” profile in case the filters cause complete data loss.

    11 filters in total.

    That’s a lot to get right since filters must be exact and they affect all incoming data.

    A different suggestion would be to add multiple trackers. Track your “master” as one property and each of the other domains on their own property with their own GA tracking code as such:

    _gaq.push(
      ['_setAccount', 'UA-XXXXX-1'],
      ['_trackPageview'],
      ['b._setAccount', 'UA-XXXXX-2'],
      ['b._trackPageview']
     );    
    

    This keeps every domain from cross pollinating another except for the “master” property where all the data gets dumped.

    Create another “raw” profile of the “master” for safe keeping.

    Put a filter on the “master” for domain name so you can distinguish which domain the page came from in the reports. See Modify your cross-domain profile with a filter to show the full domain in your content reports.

    Now you have everything properly cordoned off, you can give access to the unfiltered data to each website administrator without having to fool with too many filters.

    Summary:

    Master property: 2 profiles, master (filtered to include domain name) and raw (unfiltered)

    One property for each domain: 1 profile in each (no filters)

    Tut on Tracking Multiple Domains Individually and as a Group in Google Analytics

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have multiple country domains for one company and one top level .com
My application has several independent top-level windows, which all have completely different functions/workflows. I
On the page http://tesselaar.com/gallery/ I have a heading (level 1) at the top of
I have a domain object hierarchy with a top level abstract class. In GORM,
I have a domain with default top-level site a .Net 2 app. And lots
I want to have my top-level domain as a portal for various subdomains that
I have a question, I fear the answer. I have: a top level domain
I have the following top-level (parent) domain entities: Customer Company Contact And the following
I have a top level domain where my main site is located. I want
Good afternoon, I have a quick 'top level' question regarding the usage of Facebook

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.