# Account Structure - Best Practices

**Accounts are isolated workspaces.** Items can’t be shared across accounts. **Containers**, created within an account, are the unit where tags, triggers, states, functions, and tools live—and **can be shared or reused across containers inside the same account**.\
This page explains how to structure accounts and containers for multi-domain, subdomain, and multi-tenant setups, and how identity sharing works via the [**Main Domain Cookie**](https://docs.jentis.com/key-features/main-domain-cookie).

## Key Takeaways

* **No cross-account sharing.** Treat accounts as separate entities.
* **Container-level reuse.** Within a single account, reuse configurations across multiple containers.
* **Subdomain strategy.** Most subdomain setups work cleanly with **one container**; you may still split by subdomain for organizational reasons.
* **Identity continuity.** Multiple containers on the same domain/subdomains can share a user ID via the **Main Domain Cookie** (configurable).

***

## Common Scenarios & Recommended Setups

### 1) One site, multiple country domains

**Example:** `example.at`, `example.de`, `example.ch`

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FSIbA9DELYW2eBffg8f6U%2FScreenshot%202025-10-08%20at%2016.05.31.png?alt=media&#x26;token=0f9c2e5e-ca32-4c33-888b-400fbb004581" alt=""><figcaption></figcaption></figure>

**Recommended:**

* **1 Account**, create **one Container per country domain**.
* Reuse shared configurations (Tools/Tags/Triggers/States/Functions) **across these containers** inside the same account.

**Why it works:**

* Keeps localization and governance clean per ccTLD, while centralizing shared logic.

***

### 2) One site with a shop subdomain

**Example:** `www.example.at` and `shop.example.at`

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2Fjn6cHsEqH9RXIO4nutlp%2Fimage.png?alt=media&#x26;token=be65a193-25ea-4051-88d9-62dde03f2226" alt=""><figcaption></figcaption></figure>

**Step 1 — Confirm scope:**\
Check with your web manager whether `shop.example.at` is a **subdomain** of the same site or is operated as a **separate domain/site**.

**Step 2 — Read up on identity:**\
Review the [**Main Domain Cookie**](https://docs.jentis.com/key-features/main-domain-cookie) concept (see the dedicated article) to understand cross-container identity sharing options.

**Quick answer:**

* **If the shop is a subdomain:**
  * A **one-container strategy** is technically sound and commonly used.
  * You **don’t need multiple containers** for subdomains for technical reasons.
* **If you prefer more organizational separation:**
  * You can create **multiple containers**, one per subdomain.
  * It’s still easy to keep configurations in sync: select in each **Tool** which **Containers** it should apply to—scaling shared setups is a one-click operation.

**Identity behavior by default:**

* When you create **multiple containers for the same main domain and its subdomains**, they can **share data (user ID)** via the **Main Domain Cookie**.
* **Opt-out:** If you do **not** want data sharing between containers, disable the Main Domain Cookie feature in each relevant container.

***

### 3) Multiple owners (tenants) across different domains

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FJJCl4hdYEPB1yY83SVwx%2FMultiple%20Owners%20(tenantsmandates)%20across%20different%20domains.png?alt=media&#x26;token=0e2675ad-2f10-41bf-bdc4-806ee4adee02" alt=""><figcaption></figcaption></figure>

**Example:** Several independent stakeholders each responsible for their own domain(s).

**Recommended:**

* Create **separate Accounts**, each with their own Containers.
* **Note:** It is **not possible** to share DCP elements (Tools, Tags, Triggers, States, Functions) **across different accounts**.

***

### Main Domain Cookie (Overview)

The **Main Domain Cookie** enables a **shared user identifier** across multiple containers on the **same primary domain and its subdomains** (e.g., `example.at`, `shop.example.at`).

* **Use it when:** You want consistent identity and session logic across subdomains/containers.
* **Disable it when:** You require strict data isolation between containers (e.g., compliance or organizational boundaries).

See the [Main Domain Cookie](https://docs.jentis.com/key-features/main-domain-cookie) article for setup details, edge cases, and privacy considerations

***

### How to Reuse Configurations Across Containers (Same Account)

1. **Create or open a Tool** (or Tag/Trigger/State/Function) that should be shared.
2. **Select target Containers** inside the same account where the item should apply.
3. **Publish**—the configuration (including all settings) will be available everywhere you targeted.
4. **Maintain centrally**—update once, propagate to all selected containers.

**Benefits:** Faster scaling, consistent governance, and reduced configuration drift.
