Install the pixel on Shopify

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

How to add the Notikit pixel to your Shopify theme by pasting it in the layout file, before the closing head tag.

On Shopify, the pixel is installed in the store theme: you paste it once in the main layout file and it loads on every page of the store.

Before you start

  • Create the campaign with the domain your customers see. If your store uses a custom domain (for example mystore.com), use that one and not the myshopify.com address. The pixel only works when the page domain matches the campaign domain.
  • Copy the code from Campaigns, option Install pixel.

Steps

  1. In the Shopify admin, go to the themes section of your online store.
  2. On the published theme, open the actions menu and choose the option to edit the theme code.
  3. In the layout folder, open the theme.liquid file.
  4. Find the closing </head> tag.
  5. Paste the pixel code right before that tag.
  6. Save.

The exact menu names may change depending on the version of the Shopify admin; what matters is reaching the theme code editor and the theme.liquid file.

Recommendations

  • Before editing, duplicate the theme so you have a backup copy.
  • If you switch themes later, you will need to paste the code again in the new theme.
  • Checkout pages do not use the theme layout file, so a pixel installed this way does not load there.

Showing recent sales

The pixel only displays notifications; for a Conversions notification to show real purchases, you need to send the data of each sale to Notikit. The way to do it is the notification webhook: see Track conversions with a webhook.

Do not point Shopify order notifications straight at that URL: the Notikit webhook stores everything it receives, and an order carries all the buyer details. Route the notice through an intermediary (an automation tool or a script of your own) that forwards to Notikit only what you will display: first name, product and city.

To confirm the pixel is installed correctly, continue with Verify the pixel installation.