> ## 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.

# Pass the email as a URL parameter to your thank-you page

> Pass the email as a URL parameter to a thank-you page with the Cometly pixel, so leads from a form you cannot tag still link to their journey.

Your leads submit a form, but Cometly does not link them to a contact, so their events show no source. This usually happens when the form sits on a page where you cannot install the Cometly pixel (the tracking script that records visits to your site).

The cause is that the pixel never sees the email the visitor typed. Without an email, Cometly cannot tie the visit to a person. The fix is to pass the email as a URL parameter to a thank-you page that **does** have the pixel.

Automatically linking submitted emails to contacts in Cometly closes the loop on your funnel tracking. Even if you cannot place the Cometly pixel on your form page, passing the visitor's email to a page **with** the pixel installed lets you:

* Capture the visitor's email.
* Match them to an existing or new contact.
* Preserve the entire journey and attribution (paid ads, organic search and so on).

Whenever a page with the Cometly pixel also has an identifiable email parameter in its URL (for example `email=somebody%40example.com`), Cometly automatically updates (or creates) the corresponding contact.

This is especially useful when your funnel platform does not let you install pixels on the form submission page, but **does** let you pass form data, like the submitted email address, to the URL of a thank-you or redirect page.

When you later send an event to Cometly with that visitor's email address, it is automatically linked to the initial journey and reports the source.

## Pass the email as a URL parameter

1. Install the Cometly pixel on your thank-you or redirect page. See [Install the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md).
2. In your funnel platform, set the form to redirect the visitor to that page after they submit.
3. Set the redirect to add the submitted email address to the page's URL as an `email` parameter, for example `email=somebody%40example.com`.

## Confirm the email reaches Cometly

1. Submit your form with a test email address.
2. Check that the address bar of the thank-you page shows the `email` parameter with the address you entered.
3. In Cometly, click **Contacts** in the sidebar and search for the test email. The contact is listed once Cometly has matched or created it.

## Why this is valuable

* **Works around pixel restrictions.** Some funnel platforms don't let you add third-party pixels to form pages. They often do let you redirect the visitor after the form submission to a thank-you or confirmation page. If you pass the email as a URL parameter, the Cometly pixel on the next page can still capture it.
* **Keeps contact data centralized.** When the pixel sees `email=somebody@example.com`, it automatically updates Cometly's contact for that address. No additional integration or custom coding is required.
* **Preserves source and attribution data.** Once the pixel associates an email address with a journey, Cometly can show you whether that visitor originally came from an ad, organic traffic or any other tracked source.

## Frequently asked questions

> [accordion] What if the email parameter is missing or empty?
>
> Cometly won't create or update a contact if no email is available. Make sure your funnel always passes the email parameter.

> [accordion] Can I pass other parameters besides email?
>
> Yes, you can pass additional parameters like `name` and `phone`. Cometly's automatic match primarily uses `email`. Additional data can help enrich your contacts.

> [accordion] What if my funnel platform blocks query parameters?
>
> Some platforms strip query parameters for security reasons. If that is the case, check their documentation on how to pass data to a redirect page. Often you can configure the parameter name or how it is appended to the URL.
>
> If you use a meeting scheduler or a forms app, see the form tracking list on the [Integrations overview](https://docs.cometly.com/integrations/overview.md). If your form or meeting scheduler is not listed, [contact support](https://docs.cometly.com/support/contact.md).

> [accordion] Will this overwrite existing contact data?
>
> If an existing contact's email address matches the one passed to the pixel, Cometly updates that contact with the new journey or event information. It won't overwrite the existing email.

> [accordion] Do I need to enable anything in Cometly?
>
> No. This behavior is on by default. As soon as the Cometly pixel detects an email in the URL or in a script call, it tries to match or create a contact automatically.

## Next steps

* [Install the Cometly pixel on your thank-you page](https://docs.cometly.com/getting-started/install-pixel.md)
* [Set up form tracking for third-party embedded forms](https://docs.cometly.com/guides/form-tracking/third-party-forms.md)
* [Test form tracking on a page](https://docs.cometly.com/guides/form-tracking/testing.md)
* [Track forms inside iframes](https://docs.cometly.com/support/troubleshooting/form-tracking/track-iframes.md)
* [Troubleshoot form tracking](https://docs.cometly.com/support/troubleshooting/form-tracking/troubleshooting-form-tracking.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.