# How to set URL Parameters on Meta Ads?

#### Requirements for valid configuration of ads       &#x20;

To ensure your ads sync correctly and can be used for Ads Personalization, your Google Ads Tracking Template must include at least one variable from below:

* {{campaign.id}} or {{campaign.name}}
* {{adset.id}} or {{adset.name}}
* {{ad.id}} or {{ad.name}}

{% hint style="info" %}
For the best results, Fibr recommends including *all* of the above variables in your Tracking Template. This ensures full compatibility and maximizes the accuracy and depth of Ad Personalization.
{% endhint %}

**Recommended Tracking Template:**&#x20;

*{lpurl}?utm\_source={{site\_source\_name}}\&utm\_medium=cpc\&utm\_campaign={{campaign.name}}\&utm\_content={{adset.name}}\&utm\_term={{ad.name}}*

<p align="center"><em>or</em></p>

*{lpurl}?utm\_source={{site\_source\_name}}\&utm\_medium=cpc\&utm\_campaign={{campaign.id}}\&utm\_content={{adset.id}}\&utm\_term={{ad.id}}*

**Sample Valid Tracking Templates:**

* *{lpurl}?utm\_campaign={{campaign.name}}\&utm\_content={{adset.name}}\&utm\_term={{ad.name}}*
* *{lpurl}?utm\_source={{site\_source\_name}}\&utm\_content={{adset.name}}\&utm\_term={{ad.name}}*
* *{lpurl}?utm\_source={{site\_source\_name}}\&utm\_medium=cpc\&utm\_campaign={{campaign.name}}*

#### Steps to fix your Meta Ads URL Parameters&#x20;

* **Step 1:** Identify the Meta Ads that have invalid or missing URL parameters.
* **Step 2:** Open **Facebook Ads Manager** and select the campaign and ad set containing the affected ad.
* **Step 3:** Navigate to the **Ad level** by opening the ad set and selecting the specific ad.
* **Step 4:** Scroll to the **Tracking** section, locate the **URL parameters** field, and click **“Build a URL parameter.”**

<figure><img src="/files/blbGxJuU8GhXzh6Kr3c6" alt=""><figcaption></figcaption></figure>

* **Step 5:** Click **Apply** to save your changes, then **Publish** the updated ads.

{% hint style="warning" %}
Avoid using third-party tools that generate dynamic tracking templates. If such a tool is currently active, disable it to ensure Fibr can read your URL parameters correctly and use your ads for personalization.
{% endhint %}

&#x20;   &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.fibr.ai/integrations/integrate-meta-ads/how-to-set-url-parameters-on-meta-ads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
