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

# Webflow pixel installation

> Install the Cometly pixel on Webflow by pasting it into your site's Head code, so every visit and form opt-in is tied to the ad or channel behind it.

The Cometly pixel is a small script you add to your website. It tracks where your webpage visitors come from and captures information from form opt-ins (first name, last name, email and phone number). This guide shows you how to install the Cometly pixel on Webflow using the site's custom code settings.

Once the pixel is on your Webflow site, Cometly can tie each lead and sale back to the ad or channel that brought the visitor in. Without it, Cometly has no record of the visit, so the rest of your tracking depends on this step.

## Before you start

* Place the pixel on every website or domain you want to track: your main domain (for example `cometly.com`) and any subdomains (`go.cometly.com`, `blog.cometly.com`, `academy.cometly.com` and so on).
* The pixel must be placed in the `<head>` section of every website that you want to track.

## Copy your Cometly pixel

In Cometly, click [**Setup**](https://app.cometly.com/space-setup?step=install-pixel) in the left sidebar and open step 2, **Install the Cometly pixel**.

![Cometly Set up your space page on the Setup tab, with the Install the Cometly pixel step outlined in orange in the Space setup list of seven steps.](https://mintcdn.com/cometly/2fSDFk1g6ELl9hsV/images/integrations/pixel/webflow/01.webp?fit=max\&auto=format\&n=2fSDFk1g6ELl9hsV\&q=85\&s=754cd8dc2eaf075b850bfbd0116f7ca8)

Under **Install the pixel**, click **Copy Code**. You will paste this code into the `<head>` section of your website.

![The Install the pixel section in Cometly Setup, showing the pixel script tag and an orange arrow pointing to the Copy Code button, above the Pixel Guide, WordPress and GTM links.](https://mintcdn.com/cometly/2fSDFk1g6ELl9hsV/images/integrations/pixel/webflow/02.webp?fit=max\&auto=format\&n=2fSDFk1g6ELl9hsV\&q=85\&s=56d2674d633dda97184964520d6beb13)

## Install the Cometly pixel in Webflow

**1. Open the site settings**

Log in to your Webflow account and go to the **Dashboard**. Click the gear icon (**Site settings**) on the site where you want to add the Cometly pixel.

![Webflow Dashboard with an arrow pointing to the Site settings gear icon on a site card](https://mintcdn.com/cometly/2fSDFk1g6ELl9hsV/images/integrations/pixel/webflow/03.webp?fit=max\&auto=format\&n=2fSDFk1g6ELl9hsV\&q=85\&s=20735caea69ed5aeaa42951930abc67d)

**2. Add the pixel as custom code**

In the site settings, select the **Custom code** tab.

![Webflow site settings with Custom code highlighted at the bottom of the left menu](https://mintcdn.com/cometly/2fSDFk1g6ELl9hsV/images/integrations/pixel/webflow/04.webp?fit=max\&auto=format\&n=2fSDFk1g6ELl9hsV\&q=85\&s=0915b2cae6a69f00aded1b1992e26701)

Find the **Head code** section and paste your Cometly pixel into it.

**3. Save and publish**

Click **Save** to apply the changes, then publish your site. Custom code only goes live when the site is published.

## Check it worked

The Cometly pixel now tracks visitor activity on your published Webflow site. To confirm it, go back to step 2 of **Setup** in Cometly and click **Verify** next to your domain under **Verify your pixel**: the domain shows **Pixel detected**. For the full verification steps, see [Install and verify the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md).

To send Webflow form submissions to Cometly as events (the actions Cometly tracks, such as a lead), see the [Webflow integration](https://docs.cometly.com/integrations/platforms/webflow.md).

## Cross-domain tracking (required for SaaS companies)

If your users move between your main domain and subdomains (for example from `cometly.com` to `app.cometly.com`), you need to configure cross-domain tracking to keep user data accurate.

**Example:** If traffic flows from `cometly.com` to `app.cometly.com`, cross-domain tracking ensures users are tracked properly across both domains.

To set it up, see [cross-domain tracking](https://docs.cometly.com/guides/tracking/cross-domain-tracking.md).

## Frequently asked questions

### Why is the Cometly pixel not detected on my Webflow site?

The most common cause is that the site was saved but not published: Webflow custom code only goes live when the site is published. Also check that the code in **Head code** matches the script Cometly shows under **Install the pixel**. The script changes when you add or remove domains or change a setting under **Pixel options**, so copy it again if Cometly tells you it has changed.

### Can I install the Cometly pixel on Webflow through Google Tag Manager?

Yes, the pixel works when it is installed through Google Tag Manager, but you may lose attribution data because of loading delays and privacy blockers. Pasting it into Webflow's **Head code** is the recommended setup. Do not do both, because the pixel then loads twice and causes tracking issues. See [Google Tag Manager pixel installation](https://docs.cometly.com/integrations/pixel/google-tag-manager.md).

### How do I check that the Cometly pixel captures my Webflow forms?

Use **Test form tracking**, the last part of the same Setup step where you copied the pixel. It opens a page of your site in a pop-up window and tells you whether Cometly can see the forms on it and their email field. See [Test form tracking](https://docs.cometly.com/guides/form-tracking/testing.md).

## Next steps

* [Verify the Cometly pixel on your domain](https://docs.cometly.com/getting-started/install-pixel.md)
* [Send Webflow form submissions to Cometly as events](https://docs.cometly.com/integrations/platforms/webflow.md)
* [Test form tracking on your pages](https://docs.cometly.com/guides/form-tracking/testing.md)
* [Set up cross-domain tracking](https://docs.cometly.com/guides/tracking/cross-domain-tracking.md)
* [Check your installation with the Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.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.