Getting StartedInstalling the Pixel

Installing the Pixel

Add the Cool Popup pixel script to your website to start displaying notifications to visitors.

What is the pixel?

The Cool Popup pixel is a lightweight JavaScript snippet that loads your campaign's notifications on your website. It runs asynchronously, so it won't block page rendering or slow down your site.

Each campaign has a unique pixel key. You embed a single <script> tag referencing that key, and Cool Popup handles the rest — loading styles, rendering notifications, and tracking impressions.

Getting your pixel key

Open your campaign

Navigate to Campaigns in the dashboard and click on the campaign you want to install.

Copy the pixel code

Click the dropdown menu (⋮) on the campaign and select Pixel key. A modal will display the script tag with your unique key.

<script
  src="https://dash.coolpopup.com/pixel/YOUR_PIXEL_KEY"
  defer
></script>

Installation methods

Paste the script tag into your website's HTML, just before the closing </body> tag:

<html>
  <head>
    <!-- your head content -->
  </head>
  <body>
    <!-- your page content -->

    <script
      src="https://dash.coolpopup.com/pixel/YOUR_PIXEL_KEY"
      defer
    ></script>
  </body>
</html>

Domain matching

The pixel validates that the domain in your browser's address bar matches the domain configured in your campaign. If they don't match, notifications won't appear.

Both www.example.com and example.com are treated as the same domain. You don't need separate campaigns for the www and non-www versions.

Custom domains

If you've set up a custom domain, your pixel URL will use that domain instead of dash.coolpopup.com. This keeps all requests under your own brand and can help with ad-blocker compatibility.

Verifying the installation

After adding the pixel to your site:

  1. Make sure the campaign is enabled in the dashboard.
  2. Visit your website in a browser.
  3. Check that the notification appears according to your trigger settings (e.g., after a delay or on scroll).
  4. Open the Statistics page to confirm that impressions are being recorded.

If the notification doesn't appear, check the Pixel Not Showing troubleshooting guide.