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

# Setting Up a Lead Source with GTM

> Set up a lead source using the LeadTrackr tag in Google Tag Manager.

## Step 1: Add the LeadTrackr Tag to Your GTM Container

1. Go to your **container** in Tag Manager
2. Click **Templates** → **Search Gallery**
3. Look for **LeadTrackr tag**
4. Click **Add to Workspace**

<Frame>
  <img src="https://mintcdn.com/leadtrackr/4UmaXrfA8s-kcqcW/images/lead-sources/gtm-1.png?fit=max&auto=format&n=4UmaXrfA8s-kcqcW&q=85&s=491e76b68f84784c28c47267f17dba58" alt="Search GTM gallery for LeadTrackr" width="3456" height="1198" data-path="images/lead-sources/gtm-1.png" />
</Frame>

## Step 2: Create a New LeadTrackr Tag

1. Go to **Tags** and click **New**
2. Select **LeadTrackr Tag** as the tag type
3. Choose **Lead** as the tag type
4. Fill in the required fields:
   * **Project ID**
   * **Form name** (descriptive label)
   * Any custom form fields or user data fields you want to pass along (e.g. email, phone, message)

<Info>If you use server-side tagging, we recommend sending requests both client and server side and adding a unique ID for deduplication.</Info>

<Frame>
  <img src="https://mintcdn.com/leadtrackr/4UmaXrfA8s-kcqcW/images/lead-sources/gtm-2.png?fit=max&auto=format&n=4UmaXrfA8s-kcqcW&q=85&s=905a27c274a44492b4b363d8958693d8" alt="LeadTrackr tag configuration" width="1288" height="1427" data-path="images/lead-sources/gtm-2.png" />
</Frame>

### Where to Find Your Project ID

1. Go to [app.leadtrackr.io/dashboard/projects](https://app.leadtrackr.io/dashboard/projects)
2. Open the project you want to connect
3. Your **Project ID** is visible in the URL
   * Example: `https://app.leadtrackr.io/projects/16` → project ID = `16`

<Frame>
  <img src="https://mintcdn.com/leadtrackr/4UmaXrfA8s-kcqcW/images/lead-sources/wordpress-3.png?fit=max&auto=format&n=4UmaXrfA8s-kcqcW&q=85&s=510e9340f8349910ba764e8ed159c4d0" alt="Project ID in URL" width="1722" height="492" data-path="images/lead-sources/wordpress-3.png" />
</Frame>

## Step 3: Add a Trigger

Attach a trigger that sends the lead event from the browser client to your server container.

This is typically a **custom event**, such as `form_submission`, or an incoming HTTP request handled by your sGTM client.

<Frame>
  <img src="https://mintcdn.com/leadtrackr/4UmaXrfA8s-kcqcW/images/lead-sources/gtm-3.png?fit=max&auto=format&n=4UmaXrfA8s-kcqcW&q=85&s=1a923b64f39bcdfadfb5140661614e19" alt="GTM trigger configuration" width="1288" height="1694" data-path="images/lead-sources/gtm-3.png" />
</Frame>

## Step 4: Publish Your Container

Once your tag and trigger are configured, **publish your GTM container**.

Your form submissions are now sent to LeadTrackr, ready to be rated, qualified, and pushed to ad platforms as offline conversions.

## Other Lead Source Options

<CardGroup cols={2}>
  <Card title="WordPress Forms (Recommended)" icon="wordpress" href="/docs/lead-sources/wordpress-forms">
    Use the WordPress plugin for server-to-server tracking
  </Card>

  <Card title="Server-side GTM" icon="server" href="/docs/lead-sources/server-side-gtm">
    Use the Leads API tag in server-side GTM
  </Card>
</CardGroup>

## What's Next?

With your lead source active, set up the Channel Flow Tracker and connect your conversion destinations.

<CardGroup cols={2}>
  <Card title="Set Up Channel Flow Tracker" icon="route" href="/docs/lead-sources/channel-flow-tracker">
    Track the full user journey with UTM parameters
  </Card>

  <Card title="Set Up Google Ads Conversions" icon="google" href="/docs/integrations/google-ads">
    Send offline conversions to Google Ads
  </Card>

  <Card title="Set Up Meta Integration" icon="meta" href="/docs/integrations/meta">
    Send offline conversions to Meta (Facebook)
  </Card>

  <Card title="Set Up GA4 Integration" icon="chart-simple" href="/docs/integrations/ga4">
    Send offline conversions to Google Analytics 4
  </Card>
</CardGroup>
