# Tracking Facebook Ads

**COPY THIS UTM PARAMETERS STRING**

```
utm_source=social&utm_medium=paid&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{campaign.id}}|{{adset.id}}|{{ad.id}}
```

**In your Meta Ads Manager account go to:**

1. Click on the tab **Ads**
2. Select **all active ads**

<figure><img src="https://1364162697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUc1DhBGYxkrTzRj7xZKQ%2Fuploads%2FRIyjTruC7WFZJickmwBv%2Fselect_ads_bulk.png?alt=media&#x26;token=4ebc6ece-83ad-4a78-8e1c-a8e798685825" alt=""><figcaption><p>Select all active ads</p></figcaption></figure>

3\. Click the **“Edit”** button at the top of the menu.&#x20;

4\. **Paste** the code that you copied from the section before in the highlighted field -> **URL parameters**.

<figure><img src="https://lh4.googleusercontent.com/mWKGZy_jqkbUIJ9pJJsyMC9Tm25tZgLo0D9ytY3P3M8F9cXRztPFYN36FJTzVprtBD-lh0KFTipAaL5A_u2BXV3cljaN-s1qMqQ8u4_AUixzl0oUy7t_xDM6BXK7AhwJEWJ688cJPS0Qz22dRkeT_5I" alt=""><figcaption><p>Paste the code in the highlighted field</p></figcaption></figure>

5\. Remove all the UTM parameters (keep the actual link), if you have any in the “**Website URL**” field.

<figure><img src="https://lh6.googleusercontent.com/BQBWs74UTNRffSPCxZivI5WhIeFwgSQWLlVqY7Nnyno8Z1piZqxo_FehRiwbtkDqsaIAztNM4fbInShdhjgjV-coXuzgrVnDmNMlV0cqPN27OKgyUPrFzaAu1AwtfAxUp-6r4rAF16KoTB0X2mIzDIs" alt=""><figcaption></figcaption></figure>

6\. Click **“Publish”.**

That's all you need to do. Now all of your ads will be tracked and correctly attributed to your models in the dashboard.

**You can also make these changes in bulk.**

1. In the “**Ads**” tab, **Select all active ads**.
2. In the top menu bar **-> URL parameters**

<figure><img src="https://lh3.googleusercontent.com/pdmJ1_hYuTfI3UjO2vQq2Vp_VQLC4XOJ4PUlWE2tZ3LGxch2lhUNt1UWqCVZdXvHaTZ3zhbvSUOzg7kYm5d2g7dzH1YA5Y0WZJUE0rLI1c5pL31iQ1_yAkRcB162Myz3m7JdOoDc1ZB1GPBP9V02Y1XbVGOhT3UmIGxK2JZfuc5eAabDQs4aERStDA" alt=""><figcaption></figcaption></figure>

3\. In the Highlighted field, paste the code you copied.

<figure><img src="https://lh4.googleusercontent.com/jdGXvLs0VFbnaIuyysqkVkabKw8LULt5dIeqXgx2jP8Xd0kfuVo-i5-2_cyDSumeqQ7QMyx238saX3shaX7HQHqxqDnzW3e0CtSRn7-bWrzmyPSU3SAOJ29B-4_OxMDZwfpat03Gu3SnUba6Weog4z0it3xhDmvPZaR3DfyV7suKjdjBJRlb7_WGNg" alt=""><figcaption></figcaption></figure>

**You are now ready to.**

IMPORTANT:

If you are an advanced UTM parameters user, it might be crucial to keep your previous utm\_source, utm\_medium, and utm\_campaign fields consistent with values you are using from the past. This is not a problem with Molecule Data.

You can change all of the values listed below to your liking:

* utm\_source&#x20;
* utm\_medium&#x20;
* utm\_campaign&#x20;
* utm\_term

For example the tracking template could look like this:

> utm\_source=**facebook**\&utm\_medium=paid\&utm\_campaign={{campaign.name}}\&utm\_term={{adset.name}}\&utm\_content={{campaign.id}}%7C{{adset.id}}%7C{{ad.id}}

Or like this

> utm\_source=**facebook**\&utm\_medium=**cpc**\&utm\_campaign={{campaign.name}}\&utm\_term={{adset.name}}\&utm\_content={{campaign.id}}%7C{{adset.id}}%7C{{ad.id}}

**IMPORTANT:**

It is recommended not to change the utm\_content part. If you need it to be a specific value, it is possible to change it too. In that case you would need to add `&ref={{campaign.id}}%7C{{adset.id}}%7C{{ad.id}}` at the end of your full custom tracking template.

An example of such would look like this:

`utm_source=facebook&utm_medium=cpc&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content=xyz&ref={{campaign.id}}%7C{{adset.id}}%7C{{ad.id}}`

Please stick with a certain consistent tracking template that has one or the other option and is placed in the correct field. Only in such cases can we ensure consistent and accurate campaign / adset / ad performance tracking in the Molecule Data dashboard.

**IMPORTANT:**

If you had already used a tracking template before in all of your ads and a value of {{ad.id}} is in any of the UTM parameters fields, we can automatically map it in the reporting, so no changes or adjustments are needed. Please contact our support team if you have questions about it.
