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

# URL Parameter Templates

> Create reusable tracking parameter templates to append UTM and custom parameters to your ad URLs.

URL parameter templates let you define tracking parameters once and apply them to any campaign. This ensures consistent attribution across all your ads without manual entry every time.

## What Are URL Parameters?

URL parameters are key-value pairs appended to your landing page URLs. They tell your analytics tools where traffic is coming from. Common examples:

| Parameter      | Purpose                | Example Value      |
| -------------- | ---------------------- | ------------------ |
| `utm_source`   | Traffic source         | `facebook`         |
| `utm_medium`   | Marketing medium       | `paid_social`      |
| `utm_campaign` | Campaign identifier    | `summer_sale_2025` |
| `utm_content`  | Ad or creative variant | `video_a`          |
| `utm_term`     | Keyword or audience    | `lookalike_1pct`   |

## Creating a Parameter Template

<Steps>
  <Step title="Open URL Parameters">
    Navigate to **Templates > URL Parameters** from the sidebar. Click **New Template**.
  </Step>

  <Step title="Add parameters">
    Add one or more key-value pairs. Standard UTM parameters are pre-populated as suggestions, but you can add any custom parameters your analytics stack requires.
  </Step>

  <Step title="Use dynamic values">
    Instead of hardcoding values, use dynamic tokens that auto-fill at launch time. For example:

    * `{{campaign.name}}` — inserts the campaign name
    * `{{adset.name}}` — inserts the ad set name
    * `{{ad.name}}` — inserts the ad name

    <Tip>
      Dynamic values keep your tracking accurate even when you rename campaigns. The token resolves at publish time based on the actual entity names.
    </Tip>
  </Step>

  <Step title="Save">
    Name your template and click **Save**.
  </Step>
</Steps>

## Applying Parameters to Ads

During the [Ads step](/guides/launch/ads) of the campaign launcher, select a URL parameter template from the dropdown. The parameters are appended to all ad URLs in that campaign.

<Note>
  URL parameters are appended to the landing page URL you set in your creative template. If your creative template already has parameters in the URL, the template parameters are added after them.
</Note>

## Custom Parameters

Beyond standard UTM parameters, you can add any custom key-value pairs your tracking setup requires. Common use cases include:

* Platform-specific tracking IDs (e.g., `fbclid`, `gclid`)
* Internal campaign codes
* A/B test identifiers
* Attribution partner parameters
