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
- Log in to PostPilot and click Integrations.
- Select PostPilot Tracker from the list and click Manage.
- Click the copy icon next to the script code to copy it.
Option A: Install via Google Tag Manager
- Log in to Google Tag Manager and select your website's container.
- Click Add a new tag, then Custom HTML Tag, and name it.
- Paste the code you copied from PostPilot into the HTML field.
- Under Advanced Settings → Tag firing options, select Once per page.
- Under Fire On, select All Pages.
- Click Create Tag, then Submit to publish.
Option B: Install via theme code (if you don't use GTM)
Shopify stores
- In Shopify Admin, go to Online Store → Themes, click the ⋯ menu next to your theme, and select Edit code.

- In the Layout folder, click theme.liquid.

- Find the
</head>tag near the end of the file.
- Paste the code you copied from PostPilot on a new line just above
</head>.
- 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.