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

# Leadpages pixel installation

> Install the Cometly pixel on Leadpages with Global Scripts, so every page in your account tracks visitors and ties each lead back to its ad.

The Cometly pixel is a small script that tracks where your website visitors come from and captures opt-in data from your forms (name, email and phone number). To install the Cometly pixel on [Leadpages](https://www.leadpages.com/), you paste it into **Global Scripts**, which apply the pixel to all pages in your Leadpages account.

With the pixel on your Leadpages pages, 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 visits to those pages.

## Install the pixel with Global Scripts

To learn more about the feature, see [Leadpages' help article on Global Scripts](https://support.leadpages.com/hc/en-us/articles/27675301996173-Global-scripts).

1. 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**. Under **Install the pixel**, click **Copy Code**.
2. Log in to your Leadpages account.
3. Open your account settings by clicking your profile picture in the top-right corner.
4. Select **Global Scripts** from the settings menu.
5. Paste your Cometly pixel into the **Header** field. The Header field loads the pixel in the `<head>` section of your pages.
6. Click **Save** to apply the pixel to all pages in your account.

## Verify the pixel installation

In Cometly, go back to [Setup step 2](https://app.cometly.com/space-setup?step=install-pixel). Under **Add domains**, add the domain of your Leadpages pages. Then, under **Verify your pixel**, click **Verify** to check that the Cometly pixel is installed. For details, see [Install and verify the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md).

You can also test with the [Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md) plugin.

## Check it worked

Under **Verify your pixel**, the domain of your Leadpages pages shows **Pixel detected**. If it shows **Pixel not detected**, go through the troubleshooting list below, then click **Retry**.

## Troubleshooting

* Make sure the Global Scripts feature is active and your changes are saved.
* Clear your browser cache if the pixel does not seem to load after installation.

## Frequently asked questions

### Which domain do I add in Cometly for my Leadpages pages?

Add the domain exactly as it appears in your browser when a Leadpages page loads. Include `www.` only if the address shows it, and add each subdomain you publish pages on (for example `go.yourdomain.com`) as its own domain.

### Can I install the Cometly pixel on Leadpages with 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. Placing the pixel directly in the **Header** field of Global Scripts is the recommended setup. Do not do both: a pixel that is installed twice causes tracking issues. See [Google Tag Manager pixel installation](https://docs.cometly.com/integrations/pixel/google-tag-manager.md).

### Do I need to update the pixel in Leadpages after I change settings in Cometly?

Sometimes. The script changes when you add or remove domains, or change a setting under **Pixel options**. If Cometly tells you your tracking script has changed, copy it again and replace the old one in Global Scripts.

## Next steps

* [Install and verify the Cometly pixel on your other sites](https://docs.cometly.com/getting-started/install-pixel.md)
* [Test form tracking on your pages](https://docs.cometly.com/guides/form-tracking/testing.md)
* [Check your pixel and forms with the Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md)
* [Connect your ad platforms and ad accounts](https://docs.cometly.com/getting-started/connect-ad-platforms.md)
* [Fix a pixel that is not detected](https://docs.cometly.com/support/troubleshooting/pixel/base-code-not-detected.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.