> ## Documentation Index
> Fetch the complete documentation index at: https://docs.9pic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Advanced Settings

> Bring your own Google Tag Manager container for custom analytics tracking on your gallery website.

## Overview

The **Advanced** tab lets eligible organisations connect their own Google Tag Manager (GTM) container to the gallery website. Use this only if you want to manage analytics and tracking outside the built-in 9Pic analytics.

> [!NOTE]
>
> You can edit and save the Advanced tab on every plan, but your own container loads only on a gallery website with your own domain (a `yourname.9pic.ai` subdomain or a custom domain), which needs **Pro** or **Business**. The shared `app.9pic.ai` and `trial.9pic.ai` addresses always use the built-in analytics.

> [!WARNING]
>
> **Adding your own GTM container will replace the built-in analytics that 9Pic provides for your website.** Once you save a GTM ID, the 9Pic analytics dashboards and event tracking will no longer be available for that website. You will need to create your own Google Analytics property, build your own dashboards, and manage all tracking yourself. 9Pic cannot provide support for custom analytics setups. Only enable this if you are comfortable managing Google Tag Manager, Google Analytics, and reporting on your own.

![Advanced settings tab showing the Google Tag Manager warning alert and optional GTM container ID input](https://assets.9pic.ai/docs/dashboard-guide/settings/advanced-config.webp)

Advanced settings

## How to Open

**1. Go to Settings**

Click **Settings** in the sidebar.

**2. Select Advanced**

Click the **Advanced** tab.

You can also open it directly at `/settings?tab=advanced`.

***

## Analytics & Tracking

### What Is Google Tag Manager?

Google Tag Manager (GTM) lets you add tracking codes — like Google Analytics — to your website without writing any code. You set up tags in GTM, then connect 9Pic to your container using your **Container ID**.

### Add Your GTM Container ID

**1. Find your Container ID**

Sign in to [Google Tag Manager](https://tagmanager.google.com) and note your Container ID. It looks like `GTM-XXXXXXX`.

**2. Paste the ID**

In the **Analytics & Tracking** card, paste the Container ID into the **Google Tag Manager ID (Optional)** field.

**3. Save**

Click **Save changes** at the bottom of the page.

> [!NOTE]
>
> Leave the field blank to keep using the built-in analytics that 9Pic provides.

> [!TIP]
>
> Paste the container ID (`GTM-XXXXXXX`), not a Google Analytics measurement ID (`G-XXXXXXXXXX`). The measurement ID goes inside your container in Google Tag Manager.

***

## Remove Custom Tracking

To go back to the default 9Pic analytics, clear the **Google Tag Manager ID** field and click **Save changes**. The next time the website loads, the built-in analytics resume.

***

## Common Questions

> [accordion] Where did the domain settings go?
>
> Domain and region settings are in the **Domain & Region** tab. Region is editable on all plans; connecting a custom domain or platform subdomain is available on Pro, Business and Enterprise.

> [accordion] What format should the GTM ID be in?
>
> `GTM-XXXXXXX`, where `XXXXXXX` is a mix of letters and numbers. You can find this at the top of your Google Tag Manager container view.

> [accordion] Should I add a GTM ID if I only want the normal 9Pic analytics?
>
> No. Leave the field blank if you want to use the analytics that 9Pic provides by default.

> [accordion] How do I know if my tracking is working?
>
> After saving, open your gallery website and use Google Tag Manager's **Preview** mode to verify that your container is loading correctly.

> [accordion] Can I revert if I change my mind?
>
> Yes. Clear the GTM ID field and save again. The built-in 9Pic analytics resume on the next page load.

## Next Steps

> [card] [Settings Overview](https://docs.9pic.ai/account/site.md)
>
> Back to all settings.

> [card] [Domain & Region](https://docs.9pic.ai/account/site/domain.md)
>
> Connect a custom domain so analytics events are scoped to your brand.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.