Sub topic 15
Structuring Accounts, Properties, and Streams for Multiple Sites
This chapter assumes you can already create an account, a property, and a web data stream, and that you know what a measurement ID is. The question here is how to lay these out when you manage more than one site, brand, or environment. The layout is easy to change early and costly to change later, because data does not move between properties.
The constraints that drive the design
Three facts shape every decision.
- Reports are scoped to a property. Standard reports, audiences, conversions, and explorations read data from one property. Combining two properties means using BigQuery export, Looker Studio blending, or a roll-up property.
- Settings are scoped to a level. Time zone and currency belong to the property. Users and roles can be set at the account level or the property level. Data retention is a property setting.
- A data stream is a source, not a boundary for most reports. Several streams in one property feed the same reports. You separate them with filters such as the stream name or hostname.
Data is not retroactive. If you merge or split sites later, history stays in the property where it was collected.
The basic hierarchy
An account is the top-level container and the unit of ownership and billing. A property is the unit of data and reporting. A stream is one source of data feeding a property.
Choosing where to draw the property boundary
The central question is whether two sites should share a property. Use these criteria.
| Question | If yes | If no |
|---|---|---|
| Does one team analyze both sites together? | Consider one property | Separate properties |
| Do you need to follow one user across both sites? | One property with cross-domain measurement | Separate properties are fine |
| Do the sites need different currencies or time zones? | Separate properties | One property |
| Do the sites need different access lists? | Separate properties, or separate accounts | One property |
| Is the traffic a mix of production and test data? | Separate properties | One property |
Same business, one customer journey
Suppose www.example.com sells products and checkout.example.net handles payment. A visitor moves between them in one session. Put both web streams in one property, or better, use a single web stream that covers both domains. Then configure cross-domain measurement so the session and user are not split in two. Without it, the checkout domain appears as a referral from your own shop, and the original traffic source is lost.
Independent brands or regions
If a company runs a UK site billed in GBP and a US site billed in USD, create two properties. Currency applies to the whole property, so revenue from different currencies in one property gets converted to a single currency for reporting. Separate properties keep each market's figures in its own currency and time zone.
Several data streams in one property
Use multiple streams in one property when the sources belong to the same product. A typical case is a website plus its iOS and Android apps. Reports can then show a user's behavior across platforms. A property can hold several web streams, though a stream limit applies. Check Google's current documentation for the limits on properties per account and streams per property, since they change.
Production versus staging and development
Test traffic pollutes real data. Choose one of these approaches.
- Separate property for each environment. Create
Shop - Production,Shop - Staging, and optionallyShop - Development. Each has its own measurement ID. This is the cleanest option, and it is what most teams should use. - One property with filters. Send all traffic to one property and exclude test data using data filters or internal-traffic rules. This is fragile. A misconfigured filter can hide real data, and a data filter that permanently excludes data cannot be undone for the past.
- Load the tag only in production. The staging site never loads the production measurement ID. This is the simplest, but you then cannot test your analytics on staging.
The first approach is best combined with the third: staging loads a staging measurement ID, and production loads the production one. The code below shows a small way to choose the ID by hostname.
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PRODPROD01"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
var measurementIds = {
'www.example.com': 'G-PRODPROD01',
'staging.example.com': 'G-STAGSTAG01'
};
var id = measurementIds[window.location.hostname];
if (id) {
gtag('config', id);
}
</script>This example loads the library with the production ID, so on staging it would also request that library script. A cleaner design injects the whole snippet from the server with the right ID per environment, which avoids any reference to the wrong property. The IDs here are placeholders.
How many accounts?
An account is mostly an administrative container. Use these rules of thumb.
- One account per organization or per legal entity is the usual choice. All properties for the company sit together, and access is managed in one place.
- Separate accounts make sense when ownership differs. An agency running analytics for clients should keep each client in its own account, so the client can own it and the agency can be added or removed without affecting others.
- Do not create an account for each property out of habit. It multiplies user management work.
Access can be granted at the account level, which then applies to every property in it, or at the property level for finer control. Granting account-level Editor access to a contractor who should see only one site is a common mistake.
Roll-up reporting across properties
Sometimes you must keep properties separate but still want a combined view.
- BigQuery export. Link each property to BigQuery and query the exported event tables together. This offers the most flexibility.
- Looker Studio. Connect several properties as data sources and blend them in a dashboard. Blending has limits on joins and can be slow.
- Roll-up properties. Available only in Google Analytics 360, the paid tier.
Plan for this before you launch. If every property uses the same event names and parameter names, combining them later is a simple union. If each site invents its own names, you will spend time mapping them.
A naming convention
Names appear in the interface for everyone. Pick a pattern and apply it from the first day.
- Accounts:
Company Name - Properties:
Brand - Region - Environment, for exampleShop - UK - Production - Streams: the site's hostname, for example
www.example.co.uk
You can rename properties and streams later, but a consistent scheme saves confusion when thirty of them appear in the property selector.
Common mistakes
- Splitting one site into several properties because of internal departments. This breaks user counts and blocks cross-section analysis.
- Merging unrelated sites into one property so the numbers are "all in one place". The reports then mix audiences, and you filter constantly.
- Forgetting cross-domain setup when several domains share one property.
- Mixing time zones. Setting a property's time zone to match the head office when most traffic is elsewhere shifts daily totals.
- Leaving test data in production because staging shared the ID.
A worked layout
A retailer has a UK shop, a US shop, a shared checkout domain used by both, and staging copies of each. A reasonable layout:
- One account:
Example Retail Ltd. - Properties:
Shop UK - Production(GBP, London time),Shop US - Production(USD, New York time), and one staging property per shop. - In each production property, a web stream for the shop's domain. The checkout domain is added to each property's cross-domain configuration.
- Roles: the analytics team has Editor on the account. The US agency has Viewer on only the US production property.
- BigQuery export enabled on both production properties for company-wide reporting.
Exercise
A company runs one blog and one online store on different domains. Customers often read the blog and then click through to the store. The blog and store both report in euros and the same time zone, and one marketing team owns both. Would you use one property or two, and what extra configuration does your choice need?
Show answer
Use one property, because the same team analyzes both sites and you want to follow visitors from the blog to the store. Add both domains to the property (either two web streams or a single stream covering both) and configure cross-domain measurement so the session and the original traffic source carry across. Without it, the store would show the blog as a referral and the journey would be split. Keep a separate staging property so test traffic does not enter the production data.
Exercise
Why is it risky to handle staging traffic by sending it to the production property and filtering it out later?
Show answer
Test visits are counted as real traffic until the filter is correct, and data is not retroactive, so anything collected before the filter works stays in the reports. A misconfigured filter can also hide real data. A separate staging property with its own measurement ID avoids both problems.