Step-by-step guide: Notikit on Shopify

Created on 25 November, 2026 • Install the pixel • 31 views • 3 minutes read

How to paste the Notikit pixel into your Shopify theme, check that it works and show real sales with the webhook.

On Shopify you paste the pixel once into the main theme file, theme.liquid, and it loads on every page of the store. This guide works whether the store is yours or you manage it for a client.

Before you start

  • Shopify plan. You need a plan that lets you edit theme code: Basic or higher. The Starter plan has no code editor and no other themes.
  • Purchased theme. Shopify only lets you edit the code of a paid theme after you buy it; trial versions cannot be edited.
  • Domain. If the store uses its own domain, create the campaign with that domain, not the myshopify.com address.

1. Copy the pixel code in Notikit

  1. Log in to Notikit and open Campaigns.
  2. If you do not have a campaign for this store yet, create one with the domain your customers see (for example mystore.com). The pixel only works when the page domain matches the campaign domain. More details in Create your first campaign.
  3. In the campaign, choose Install pixel and click Copy pixel code.

The code looks like this (the key is different for each campaign):

<!-- Pixel Code - https://notikit.com/ -->
<script defer src="https://notikit.com/pixel/YOUR_PIXEL_KEY"></script>
<!-- END Pixel Code -->

2. Paste it into the theme

  1. In the Shopify admin, go to Online Store and then Themes.
  2. Recommended: in the actions menu of the live theme choose Duplicate to keep a backup copy.
  3. On the live theme, open the actions menu (the ... button) and choose Edit code.
  4. In the layout folder, open theme.liquid.
  5. Find the closing </head> tag and paste the pixel code right before it.
  6. Click Save.

If you switch themes later, or a theme update drops code changes, you will need to paste it again. Shopify checkout does not use this file, so the pixel does not load there.

3. Check that it works

  1. Open the store in a private window, on its real domain.
  2. View the page source and search for notikit.com/pixel/. The key after it must match the one in Install pixel.
  3. Enable one notification in the campaign. For the test, set the trigger to Delay with a few seconds and the frequency to Always, then reload the page.
  4. If nothing shows, open the browser console: pixel messages start with Notikit (https://notikit.com/): and tell you what is missing (for example, that the domain does not match the campaign).
  5. After a few minutes of traffic, Statistics shows the impressions.

Every message is explained in Verify the pixel installation.

4. Show real sales as "Recent purchases"

The pixel only displays notifications. For a recent purchases notification to show real sales, Notikit has to hear about each sale. That is what the webhook is for: every Recent sales & conversions notification has its own address that receives a message for each sale, like a mailbox.

  1. In Campaigns, open the store campaign, click Create notification and choose the Recent sales & conversions type.
  2. In the notification, open the Data source tab and copy the URL in the Webhook trigger field. It looks like this: https://notikit.com/pixel-webhook/NOTIFICATION_KEY.
  3. Set up an automation that sends a POST to that URL for each sale with three fields: first name, product and city. It can be an automation tool that connects to Shopify or your own script.
  4. In the Main tab, use those fields as variables. For example, title {name} from {city} and description Bought {product}.
  5. To see what arrived, open the notification and go to Data: each sale received is listed with the Webhook type.

An example of what the webhook should receive for each sale:

curl --request POST \
  --url 'https://notikit.com/pixel-webhook/NOTIFICATION_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"name": "Jane", "product": "Sneakers", "city": "Austin", "order": "1042"}'

Be careful with personal data. The webhook stores everything it receives. Send only what you will display (first name, product and city) and do not point the platform order notification straight at it, because it includes the buyer's email, phone and address. The order number makes two identical purchases count as two.

If you prefer not to automate, you can also import sales from a CSV file: Data: import and use variables. All webhook rules are in Track conversions with webhook.

Sources