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

# Connect Google Tag Manager to your Sell Page

> Add many tracking pixels and tags to your Sell Page from one place — TikTok, LinkedIn, Google Ads and more. No coding needed.

**Google Tag Manager (GTM)** is a free Google tool that holds all your tracking codes in one place, called a **container**.

Connect the container to your Sell Page once. After that you can add, change or remove tags (TikTok Pixel, LinkedIn, Google Ads, a second Meta Pixel…) inside Tag Manager, **without touching your Sell Page again**.

<Info>
  **You need:** a Google account (for example your Gmail). It takes about **5 minutes**.
</Info>

<Tip>
  **Only need one Meta Pixel or Google Analytics?** Use the simpler [Meta Pixel](/pages/meta-pixel) or [Google Analytics 4](/pages/google-analytics) guides instead. Tag Manager is for when you need **more than one** tag.
</Tip>

## Part 1: Get your Container ID from Google

<Steps>
  <Step title="Open Tag Manager">
    Go to **[tagmanager.google.com](https://tagmanager.google.com)**, sign in with your Google account and click **Create account**.

    <Tip>
      No Google account yet? [Create one for free](https://accounts.google.com/signup) — a Gmail address works.
    </Tip>
  </Step>

  <Step title="Name your account and container">
    Fill in the **Add a New Account** form:

    | Field | What to type |
    | - | - |
    | **Account Name** | Your business name, for example `SellAgent` |
    | **Country** | Your country |
    | **Container name** | `SellAgent Sell Page` (it's only a label) |
    | **Target platform** | Click **Web** |

    Leave **Share data anonymously** unticked, then click **Create**.

    <Frame>
      <img src="https://mintcdn.com/sellagent-f6a60d80/VhQQ2K1S4-dYPRQZ/images/sell-pages/gtm-create-account.png?fit=max&auto=format&n=VhQQ2K1S4-dYPRQZ&q=85&s=713c5feb964d60001a430162a4d993ae" alt="Add a New Account form with account name SellAgent, container name SellAgent Sell Page and Web selected" width="1460" height="1808" data-path="images/sell-pages/gtm-create-account.png" />
    </Frame>
  </Step>

  <Step title="Accept the terms">
    A window with Google's terms opens. Tick the box at the bottom (it may mention the **GDPR**) and click **Yes** at the top right.
  </Step>

  <Step title="Close the “Install Google Tag Manager” window">
    Google shows a window with two pieces of code. **You don't need them** — SellAgent adds the code for you. Click **OK** to close it.
  </Step>

  <Step title="Copy your Container ID">
    You are now in your container's **Workspace**. At the top, just left of **Workspace Changes**, you will see your **Container ID** (inside the red box below). It starts with **GTM-**, for example `GTM-AB12CD3`. Select it and copy it.

    <Frame>
      <img src="https://mintcdn.com/sellagent-f6a60d80/VhQQ2K1S4-dYPRQZ/images/sell-pages/gtm-container-id.png?fit=max&auto=format&n=VhQQ2K1S4-dYPRQZ&q=85&s=4b2699e691f2b016e7456938ef1781a3" alt="The Container ID starting with GTM- at the top of Google Tag Manager" width="1600" height="430" data-path="images/sell-pages/gtm-container-id.png" />
    </Frame>
  </Step>
</Steps>

## Part 2: Add the Container ID to your Sell Page

<Steps>
  <Step title="Open Integrations">
    In SellAgent, open your Sell Page. Click **Insights** at the top, then **Integrations** on the left.

    <Frame>
      <img src="https://mintcdn.com/sellagent-f6a60d80/VhQQ2K1S4-dYPRQZ/images/sell-pages/sellagent-open-integrations.png?fit=max&auto=format&n=VhQQ2K1S4-dYPRQZ&q=85&s=5b0a7293c2db96328e640fcd554b9b83" alt="Insights and Integrations in the Sell Page builder" width="1600" height="1328" data-path="images/sell-pages/sellagent-open-integrations.png" />
    </Frame>
  </Step>

  <Step title="Paste the Container ID and save">
    In the **Google Tag Manager** card, paste your ID into **Container ID** and click **Save**.

    <Frame>
      <img src="https://mintcdn.com/sellagent-f6a60d80/VhQQ2K1S4-dYPRQZ/images/sell-pages/sellagent-gtm-card.png?fit=max&auto=format&n=VhQQ2K1S4-dYPRQZ&q=85&s=ab3c1051b3c1bef202c2939619118aba" alt="The Google Tag Manager card in SellAgent with the Container ID field and Save button" width="1142" height="440" data-path="images/sell-pages/sellagent-gtm-card.png" />
    </Frame>

    The card now shows a green **Connected** label.
  </Step>

  <Step title="Publish your page">
    Click **Publish** (or **Republish**) at the top right. Tag Manager only loads on your live page after you publish.
  </Step>
</Steps>

## Part 3: Check that it works

<Steps>
  <Step title="Open Preview mode">
    In Tag Manager, click **Preview** at the top right. Type your live Sell Page address and click **Connect**.
  </Step>

  <Step title="See your container load">
    Your page opens in a new tab and **Tag Assistant** shows what happens on it. You should see your container ID and events like **Container Loaded** and **DOM Ready**.

    Fill in your page's lead form — a **sellagent\_lead** event appears in the list.
  </Step>
</Steps>

<Note>
  A new container is **empty**, so Tag Assistant says “No tags were evaluated”. That's normal — it means Tag Manager is connected and waiting for you to add tags.
</Note>

## Part 4: Add your tags

Everything you add here goes live on your Sell Page — no need to publish your page again.

<Steps>
  <Step title="Add a tag">
    In Tag Manager, click **Tags → New**. Choose the tag type (for example **Google Ads Conversion Tracking**, **TikTok Pixel** from the Community Template Gallery, or **Custom HTML** for any code a platform gives you).
  </Step>

  <Step title="Choose when it fires">
    Under **Triggering**, pick:

    * **All Pages** — to count every visit.
    * **SellAgent lead** — to count form sign-ups (see below).
  </Step>

  <Step title="Publish your container">
    Click **Submit** at the top right, then **Publish**. Your tags are now live.
  </Step>
</Steps>

### Count leads from your Sell Page form

Every time someone sends your page's lead form, SellAgent tells Tag Manager with an event called **`sellagent_lead`**. To use it:

1. Go to **Triggers → New** and click **Trigger Configuration**.
2. Choose **Custom Event**.
3. In **Event name**, type exactly:
   ```text theme={null}
   sellagent_lead
   ```
4. At the top, click **Untitled Trigger** and rename it to `SellAgent lead`.
5. Click **Save**.

<Frame>
  <img src="https://mintcdn.com/sellagent-f6a60d80/VhQQ2K1S4-dYPRQZ/images/sell-pages/gtm-lead-trigger.png?fit=max&auto=format&n=VhQQ2K1S4-dYPRQZ&q=85&s=4e53a9d73baeb9bf48a5c099a2be0204" alt="A Custom Event trigger named SellAgent lead with the event name sellagent_lead" width="1400" height="790" data-path="images/sell-pages/gtm-lead-trigger.png" />
</Frame>

Now pick this trigger on any tag you want to fire when someone becomes a lead — for example a Google Ads conversion or a TikTok “Submit form” event.

## Common questions

<AccordionGroup>
  <Accordion title="SellAgent says “The Container ID starts with GTM-”">
    Copy only the ID that starts with **GTM-** (for example `GTM-AB12CD3`), not the code Google showed you.
  </Accordion>

  <Accordion title="Tag Manager says “No Recent Data”">
    * Make sure you clicked **Publish** in SellAgent after saving the ID.
    * Click **Submit → Publish** in Tag Manager at least once.
    * The quality check can take up to a day to update. **Preview** mode shows it working straight away.
  </Accordion>

  <Accordion title="Should I also fill in the Google Analytics card?">
    Only if you **don't** add Google Analytics inside Tag Manager. Using both counts every visit twice.
  </Accordion>

  <Accordion title="Do I need to republish my Sell Page after changing tags?">
    No. Changes you **Submit → Publish** in Tag Manager go live on their own. You only publish your Sell Page once, after saving the Container ID.
  </Accordion>
</AccordionGroup>


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