Install the pixel on WordPress

Created on 23 November, 2026 • Install the pixel • 4 views • 1 minutes read

Two ways to add the Notikit pixel to WordPress: with a header code insertion plugin or from the theme.

On WordPress, the pixel is installed by adding the code to the header of the site. You do not need a dedicated Notikit plugin: any method that lets you insert a script in the head of every page will do.

Before you start

  • Create the campaign with the domain of your WordPress site: Create your first campaign.
  • Copy the code from Campaigns, option Install pixel.

Option 1: code insertion plugin (recommended)

  1. Install and activate a plugin that lets you insert code in the header and footer of the site. There are several free ones in the WordPress plugin directory.
  2. Open the plugin settings and find the field for header scripts (the one inserted inside head).
  3. Paste the pixel code exactly as you copied it.
  4. Save the changes.

The advantage of this method is that the code is not lost when you update or switch themes.

Option 2: from the theme

Many themes and page builders include a custom code or header scripts section in their options. If yours has one, paste the pixel code there and save.

You can also edit the header file of the theme and paste the code before </head>. If you go this way, do it in a child theme: changes made directly in the theme are lost when the theme is updated.

After installing

  1. If you use a caching plugin or a CDN, clear the cache so pages are generated again with the new code.
  2. If you have a plugin that optimizes, combines or delays JavaScript, make sure it is not removing or blocking the script from notikit.com. If notifications do not show, exclude that script from the optimization.
  3. Open your website in a private window (without an admin session) and check that the code is present.

WooCommerce stores

The installation is the same. To show recent sales you also need to send each sale to Notikit through the webhook, sending only the data you will display: see Track conversions with a webhook. Automatic form capture is meant for simple forms, such as a newsletter form, and not for the checkout.

To confirm everything is in place, continue with Verify the pixel installation.