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

# Instapage pixel installation

> Install the Cometly pixel on Instapage with Workspace Scripts or on a single landing page, so Cometly can tie each visit and lead to its source.

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). You can install the Cometly pixel on Instapage in two ways: with **Workspace Scripts**, which apply to every landing page in a workspace, or directly on an individual landing page.

Once the pixel is on your Instapage 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 visits to those pages, so you cannot see which ads send people to them.

## Before you start

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

## Option 1: Install the pixel with Workspace Scripts

Workspace Scripts apply the Cometly pixel to all landing pages in a workspace. To learn more about the feature, see [Instapage's help article on Workspace Scripts](https://help.instapage.com/hc/en-us/articles/4415768719895-Workspace-scripts).

1. Log in to your Instapage account.
2. Open the workspace settings: click your workspace name in the top-left corner and select **Settings**.
3. Go to the **Scripts** section.
4. Paste your Cometly pixel into the **Header** section, so it is placed within the `<head>` tag.
5. Click **Save Settings** to apply the script to all landing pages in the workspace.

## Option 2: Install the pixel on an individual landing page

1. Log in to your Instapage account and open the landing page.
2. Click the **Settings** gear icon in the top menu.
3. Go to the **JavaScript** or **Tracking Code** section.
4. Select the **Header** section and paste your Cometly pixel, so it is placed within the `<head>` tag.
5. Save and close the settings menu.
6. Click **Publish** to make the page live with the pixel.

## 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 Instapage 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 Instapage pages shows **Pixel detected**. If you use the Cometly Pixel Helper, you also see an **Init** event fire on each landing page that carries the pixel.

## Troubleshooting

* If the pixel is not verifying, check for caching issues or conflicting scripts that might block or delay JavaScript.
* For Workspace Scripts, make sure the correct workspace is selected and the settings are saved.

## Frequently asked questions

### Can I install the Cometly pixel on Instapage 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** section, as shown above, is the recommended setup. Do not do both: a pixel that is added twice loads twice and causes tracking issues. See [Google Tag Manager pixel installation](https://docs.cometly.com/integrations/pixel/google-tag-manager.md).

### Do I need to replace the pixel in Instapage if my Cometly script changes?

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

### How do I check that Cometly captures the forms on my Instapage pages?

Use **Test form tracking**, the last part of Setup step 2. 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

* [Install and verify the Cometly pixel](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 with the Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md)
* [Add URL parameters to your ads](https://docs.cometly.com/getting-started/url-parameters.md)
* [Connect your ad platforms and ad accounts](https://docs.cometly.com/getting-started/connect-ad-platforms.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.