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

# URL parameter setup for Meta existing post ads

> Add URL parameters to Meta existing post ads so Cometly can tie each click, lead and sale back to the exact ad that produced it.

An existing post ad is a Meta (Facebook or Instagram) ad that promotes a post already published on your page, instead of a creative built in Ads Manager. To track it, you add URL parameters to Meta existing post ads in the ad's **Tracking** section. URL parameters are the short tags at the end of the ad's link that tell Cometly which ad a visitor clicked.

Without them, Cometly cannot match the visit to the ad, so the leads and sales from that post are not credited to it. With them in place, you can see what each existing post ad produces and compare it with the rest of your ads.

[URL parameter setup for Meta existing post ads video](https://www.loom.com/embed/e019841b6dc9487aa70d8e2a0138b8a4)

## Add the URL parameters

**1. Open Meta Ads Manager**

Log in to your Meta Ads Manager account and go to the campaign that includes the existing post ad you want to update.

**2. Locate the existing post ad**

Under the campaign, select the ad set that contains the existing post ad. Find the ad you want to edit and click **Edit**.

**3. Find the URL parameters field**

In the ad settings, locate the **Tracking** section and scroll down until you find the **URL parameters** field.

**4. Add your URL parameters**

In the **URL parameters** field, enter the Cometly Meta Ads parameters:

```text theme={null}
comet_source={{site_source_name}}&comet_ad_id={{ad.id}}&comet_placement={{placement}}
```

You can also copy them in Cometly under **Setup**, step 4 **Add URL parameters to your ads**, with **Meta Ads** selected.

![Meta Ads Manager ad editor with an arrow on the URL parameters field in the Tracking section, holding Cometly's parameters](https://mintcdn.com/cometly/BM7eSn6-ecx8ZzBx/images/guides/url-parameters/meta-existing-post-ads/01.webp?fit=max\&auto=format\&n=BM7eSn6-ecx8ZzBx\&q=85\&s=4f3e1b6b950debf4a110e509f6824c3e)

**5. Save and publish**

Once you've added the URL parameters, click **Publish** to apply the changes.

## Check it worked

After the next data refresh, open the **Ads** tab of the Ads Manager in Cometly and choose the **Tracking Status** column preset. The ad's **URL Params** column shows the Cometly parameters, and the ad has no red dot with the tooltip **UTM Setup Error**. Allow up to 1 hour for the refresh.

## Frequently asked questions

### Do I need to add URL parameters to every Meta ad?

Yes. Every Meta ad you want to track needs the Cometly URL parameters, including each new ad you create later. Ads with no website link, such as lead form, Messenger or WhatsApp ads, are not flagged for missing parameters.

### Does Cometly add URL parameters to Meta ads automatically?

No. You paste the parameters into each Meta ad yourself. Cometly checks them on every sync and flags an ad when `comet_ad_id={{ad.id}}` is neither in its URL parameters nor on its website link.

### How do I test that the URL parameters on my Meta ad work?

Open the ad from a feed preview in Meta Ads Manager, click it like a normal user, and check that the Cometly parameters in the address bar are filled in with real values. Do not use the Preview link at ad level, because it does not pass the dynamic parameters through. The full test is in [Test Meta ads tracking](https://docs.cometly.com/support/troubleshooting/reporting/test-meta-ads-tracking.md).

## Next steps

* [Test your Meta ads tracking end to end](https://docs.cometly.com/support/troubleshooting/reporting/test-meta-ads-tracking.md)
* [Fix UTM Setup Errors on your ads](https://docs.cometly.com/support/troubleshooting/url-parameters/utm-setup-errors.md)
* [Set up URL parameters for Meta carousel ads](https://docs.cometly.com/guides/url-parameters/meta-carousel-ads.md)
* [Set up URL parameters for Meta catalog ads](https://docs.cometly.com/guides/url-parameters/meta-catalog-ads.md)
* [Connect Meta Ads to Cometly](https://docs.cometly.com/integrations/ad-platforms/meta.md)

Still have questions or need a hand? We're happy to help. Reach our team at [support@cometly.com](mailto:support@cometly.com).


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