Ad Pixels

/

4 min read

Set Up Meta (Facebook) Pixel & Conversions API (CAPI)

Connect the Meta Pixel and Conversions API (CAPI) in Zalify so your store's views, add-to-carts, and purchases reach Meta for conversion tracking and ad optimization.

Why Use Meta Pixel?

The Meta Pixel tracks visitor actions on your store and sends that data to Meta (Facebook & Instagram) for:

  • Conversion tracking — See which ads drive sales
  • Audience building — Create retargeting and lookalike audiences
  • Ad optimization — Let Meta's algorithm find your best customers

Before you begin

  • A Meta Business Manager account with admin access to the dataset in Events Manager
  • Zalify installed on your Shopify store
  • A paid Zalify plan if you want the Conversions API (server-side events)

The whole setup takes about 5 minutes: grab a Pixel ID and an access token from Meta, then paste them into Zalify.

Setup Steps

1

Make sure the Zalify Pixel is on in your theme

Zalify loads the pixel on your storefront through a theme app embed. If you haven't turned it on yet:

  1. In Shopify admin, go to Online Store → Themes and click Customize on your live theme
  2. Click the App embeds icon in the left sidebar
  3. Find Zalify Pixel and turn the toggle on
  4. Click Save in the top-right corner

Shopify theme editor: ① open App embeds ② turn on Zalify Pixel ③ Save

If it's already on, skip ahead.

2

Find your Meta Pixel ID

  1. Go to Meta Events Manager
  2. In the left sidebar, open Overview, then find your Pixel or dataset in the Datasets table
  3. Under the dataset name, copy the value labeled ID — that is your Pixel ID (usually 15–16 digits)

Pixel or dataset ID shown under the name in the Datasets list on Events Manager Overview

Don't have a pixel yet? In Events Manager, click Connect data, choose Web, and follow the prompts to create one.

3

Generate a Conversions API access token (recommended)

  1. In Events Manager, open the same dataset
  2. Open the Settings tab and find the Conversions API section
  3. Under Set up direct integration, keep the recommended option selected, then click Generate access token and copy the token

Conversions API on the Settings tab in Events Manager — use Generate access token to get your Access Token

Use both

Ad blockers and iOS privacy settings can stop the browser pixel. The Conversions API sends the same events from our servers. With both on, Zalify deduplicates them automatically.

4

Open Meta Pixel in Zalify

In the Zalify dashboard, click Pixel in the left sidebar, then choose Meta Pixel on the Pixels page.

Zalify dashboard: ① click Pixel in the sidebar ② choose Meta Pixel

5

Add the pixel

Click Add Pixel in the top-right corner.

Meta (Facebook & Instagram) page: ③ click Add Pixel

In the dialog:

  1. Meta Pixel ID — paste the Pixel ID from step 2
  2. Meta Conversion API: Access Token — paste the token from step 3 (leave it empty if you're not using CAPI)
  3. Keep Enabled on and click Save

Add Pixel dialog: ① Meta Pixel ID ② Meta Conversion API access token ③ Save

Leave Track collection empty to track your whole catalog; pick a collection only if you want events for that collection alone.

Once saved, the pixel appears in the list with Enabled switched on.

6

Verify the pixel

  • Browse a product and add it to cart on your store, then check Test events in Events Manager
  • Use the Meta Pixel Helper Chrome extension to inspect browser-side events
  • Watch events live with Zalify's Preview Mode

Events tracked automatically

Zalify tracks these standard events with no extra configuration:

EventWhen it fires
PageViewEvery page load
ViewContentProduct page viewed
AddToCartItem added to cart
InitiateCheckoutCheckout started
PurchaseOrder completed

Every PageView Zalify sends carries an event ID, so Meta can tell it apart from page views sent by other tools.

Troubleshooting

  • Pixel not firing? First confirm the Zalify Pixel app embed from step 1 is on and saved, then check the pixel troubleshooting checklist
  • Duplicate events? Make sure no other app or theme code — such as Shopify's own Facebook & Instagram channel — is also sending Meta Pixel events
  • Two PageViews per page, one without an event ID? The one without an event ID doesn't come from Zalify. Look for another source, such as Shopify's Facebook & Instagram channel, another app, or pixel code in your theme, and see How to cleanly remove legacy third-party Pixels code
  • Low match quality? Enable the Conversions API so customer details are matched server-side