Skip to content
English
  • There are no suggestions because the search field is empty.

How to Install the Pixel Using Theme Code or Google Tag Manager

This guide is for non-Shopify stores and headless (Shopify Hydrogen) storefronts. 

If your store is a standard Shopify store, use How to Install Your PostPilot Web Pixel instead. The PostPilot Tracker Pixel is only supported for visitors residing in the US.

Step 1: Copy your pixel code

  1. Log in to PostPilot and click Integrations.
  2. Select PostPilot Tracker from the list and click Manage.
  3. Click the copy icon next to the script code to copy it.

Option A: Install via Google Tag Manager

  1. Log in to Google Tag Manager and select your website's container.
  2. Click Add a new tag, then Custom HTML Tag, and name it.
  3. Paste the code you copied from PostPilot into the HTML field.
  4. Under Advanced Settings → Tag firing options, select Once per page.
  5. Under Fire On, select All Pages.
  6. Click Create Tag, then Submit to publish.

Option B: Install via theme code (if you don't use GTM)

Shopify stores
  1. In Shopify Admin, go to Online Store → Themes, click the ⋯ menu next to your theme, and select Edit code.
  2. In the Layout folder, click theme.liquid.
  3. Find the </head> tag near the end of the file.
  4. Paste the code you copied from PostPilot on a new line just above </head>.
  5. Click Save.
Non-Shopify sites
Paste the code into your site's global header, the same place other tracking scripts go, so it loads on every page.

Verify your install

It takes a minute or two to connect. Go back to Integrations → PostPilot Tracker → Manage, you'll see a message confirming "This pixel has been successfully verified."

Note: PostPilot's tracking pixel is not currently compatible with Shopify's web pixels. 

This pixel can't run inside Shopify's Customer Events / web pixel sandbox. If your store is on Shopify, PostPilot's Web Pixel is the supported option for that.