Technical tutorial ยท CAPI on Shopify

Conversions API tutorial on Shopify: from setup to validation

Configuring Conversions API on Shopify, from browser and server sources to deduplication, diagnostics and consent.

Step-by-step tutorial Native Shopify EMQ in context Deduplication Server-side events
2 sourcesbrowser and server
verified
1 IDto deduplicate
the same event
ContextEMQ interpreted using
permitted data

Context

What CAPI is and when it complements browser measurement

The classic Meta Pixel works in the browser. It sends events (PageView, AddToCart, Purchase) directly from your site, in the user's browser, to Meta.

The problem: some browser events may be missing or incomplete. The impact varies by audience, device, browser, implementation and consent. Causes include:

๐Ÿšซ

Ad blockers and browser protections

Some extensions and browsers can limit pixel loading or event transmission.

๐ŸŽ

iOS, ATT and browser restrictions

Consent and browser limitations can reduce the available signals. The real impact is measured on the store's own implementation and audience.

๐Ÿ”ฅ

Browser fingerprinting reduction

Chrome and Firefox are gradually phasing out third-party cookies and limiting fingerprinting. The standard Pixel depends on cookies for identification.

CAPI (Conversions API) can complement the browser source through events sent from the server to Meta. It does not bypass consent, justify sending unauthorized data or guarantee recovery of every signal.

What we check after implementation: browser and server sources, deduplication, available parameters, diagnostics and reconciliation with Shopify. EMQ depends on legitimately supplied data and consent; it cannot be guaranteed.
Preparation

Prerequisites, What to Prepare Beforehand

Before you start, you need:

๐Ÿ›๏ธ

Admin access to the Shopify store

Owner or staff with Apps permission. If you are a developer for a client, you need to be added as a Collaborator on their Shopify account.

๐Ÿ“˜

Admin access to Meta Business Manager

And to the ad account connected to the store. If you do not yet have a Business Manager, the first step is business.facebook.com.

๐Ÿ“Š

Meta Pixel already created in Events Manager

If you do not yet have a Pixel, create it in Events Manager โ†’ Connect Data Source โ†’ Web. It generates a Pixel ID (a number of 15+ digits).

โฑ

~25 minutes of uninterrupted time

The setup is not a two-step job. If you get interrupted, you risk losing context and configuring it wrongly. Block out your calendar.

Step 1

Step 1: Connect Shopify โ†” Meta Business

In 2024 Shopify offers an official native app for Meta Pixel & CAPI: Facebook & Instagram channel. This is the right path in 2026 (versus the third-party methods of 2022).

Steps:

  1. Go to Shopify Admin โ†’ Sales channels โ†’ Add app
  2. Search for "Facebook & Instagram" (official, developed by Meta Platforms, Inc.)
  3. Click "Add app" and confirm the permissions
  4. You will be redirected to Meta Business to authenticate
  5. Select the correct Business Manager and ad account
  6. Connect the existing Pixel (select it from the list)
  7. Connect, done, the basic integration is active
Quick check: Go to Events Manager โ†’ your Pixel โ†’ "Test Events" tab. Open an incognito browser on your Shopify store and see whether the events appear in real time (PageView, ViewContent etc.). If they do, the basic integration is OK.
Step 2

Step 2: Enabling Conversions API in Shopify

The Shopify โ†” Meta integration from Step 1 configured only the browser Pixel. Now we activate CAPI (server-side):

  1. Go to Shopify Admin โ†’ Sales channels โ†’ Facebook & Instagram
  2. Click "Settings" at the top right
  3. In the "Data sharing" section, select the mode: Maximum
    • Standard: browser Pixel only (insufficient in 2026)
    • Enhanced: browser Pixel + limited partner data
    • Maximum: Pixel + Conversions API + Customer Information sharing
  4. Confirm the permissions
  5. Save
Important, privacy: The data sharing configuration must be aligned with the consent mechanism, the privacy policy and the applicable requirements. The exact data behaviour is tested on the store.

Check that CAPI is active

Go to Events Manager โ†’ Pixel โ†’ Overview. You will see 2 columns: "Browser" and "Server". If after 24โ€“48h both have similar numbers, CAPI is working. If "Server" is 0 or very low, something is wrong, see the Troubleshooting section.

Step 3

Step 3: Check Deduplication

The worst problem with a badly configured CAPI: every event is reported twice (once from the browser Pixel, once from the CAPI server). Your ROAS shows x2 compared with reality. You decide on false data, scale wrongly and cause damage.

Shopify's official integration does automatic deduplication using unique event_id for each event. Check:

  1. Events Manager โ†’ Pixel โ†’ Overview
  2. Select the last 7 days
  3. Click any event (e.g. Purchase)
  4. View the "Browser vs Server" report

What you should see:

Deduplication working correctly

  • Browser: 100 events
  • Server: 100 events
  • Deduplicated: 100 events (NOT 200)
  • "Match between browser and server: 95%+"

Deduplication NOT working

  • Browser: 100 events
  • Server: 100 events
  • Deduplicated: 200 events (double reporting)
  • ROAS in Ads Manager is x2 compared with Shopify
Step 4

Step 4: Increasing Event Match Quality (EMQ)

EMQ shows the quality of the available matching parameters. A score must be interpreted together with the event type, consent and the data the user provides.

5 checks for better parameters

๐Ÿ“ง

Send a hashed email with each event

The strongest match parameter. Shopify's Maximum data sharing does this automatically for logged-in customers and at checkout. Capture emails before checkout (newsletter popup) to improve matching.

๐Ÿ“ฑ

Hashed phone number at checkout

Shopify has it for every order. Make sure the phone field is required at checkout (Shopify Settings โ†’ Checkout โ†’ Form options โ†’ Phone number โ†’ Required).

๐Ÿช

fbp and fbc parameters

Meta's native cookies for cross-session tracking. Shopify's official integration sets them automatically. Check in Chrome DevTools โ†’ Application โ†’ Cookies.

๐Ÿ”‘

Consistent external_id

The Shopify customer ID (when one exists) sent as external_id with each of their events. It helps Meta build the buyer's profile over time.

๐Ÿ“ฎ

Physical address + country at checkout

City, state, country, zip. All hashed. Shopify sends them automatically from checkout. Make sure you do not have excessive validation that discards badly formatted data.

Step 5

Step 5: Test Events Manager, Final Verification

Now we test end to end:

  1. Events Manager โ†’ your Pixel โ†’ "Test Events" tab
  2. You will see a code (e.g. TEST12345). Copy it.
  3. Go to your Shopify site in a new browser with the URL: https://your-store.com/?fbclid=TEST12345
  4. Browse products, add to cart, do a test checkout (use Shopify test mode or a test gateway)
  5. Back in Events Manager, watch the events come in live

What you should see for each event (e.g. Purchase):

  • โœ… Both Browser and Server: the event comes from both sources
  • โœ… Deduplicated: marked as deduplicated
  • โœ… EMQ and parameters : analyse in the context of the available data
  • โœ… Matching parameters sent: em, ph, fbp, fbc, external_id, ct, st, country, zp
If all the โœ… are OK, you have finished the setup. CAPI is active and deduplicated, with high EMQ. Meta's algorithm can optimize correctly.
Troubleshoot

Troubleshooting: Edge Cases We See

โš ๏ธ

"Server" column is 0 after 48h

Typical cause: the GDPR consent banner blocks Customer Information sharing. Check Shopify Settings โ†’ Customer Privacy โ†’ make sure tracking permissions are active and the banner collects consent correctly.

โš ๏ธ

EMQ stays low after setup

Check the eligible parameters, consent and the implementation. Do not force data collection just for the score; ask only for the information that is necessary and legitimate.

โš ๏ธ

Deduplication shows "no match"

Typical cause: Shopify sends a different event_id for Browser versus Server. Solution: temporarily disable third-party apps that inject Pixels manually (Facebook Pixel Helper extension, remove non-official Shopify apps that manipulate Pixel events).

โš ๏ธ

Test Events does not show Purchase events

Shopify test mode (Bogus Gateway) does NOT generate real Purchase events. You must use a cart under RON 5 and a real payment (RON 1 test) to see the Purchase fire.

Review

Review After 7 Days: What to Compare

Do not immediately attribute a change in ROAS to the CAPI implementation. Wait for a relevant window and compare data over the same period in Meta and Shopify.

After 7 days, compare:

Before CAPI

  • Document EMQ and the parameters
  • Document the browser events
  • Note the total Purchase count in the store
  • Save the Meta versus Shopify difference

After implementation

  • Check EMQ in the same context
  • Confirm the server-side events
  • Confirm deduplication
  • Reconcile with Shopify again
Conclusion
CAPI can complement measurement, but it does not solve attribution on its own. Implementation requires consent, correct parameters, deduplication and ongoing verification. Timing and impact vary by store.

Sources and documentation

Official documentation for the implementations described. The budget, cost and performance examples in the guide are indicative; results are validated in the context of each project.

Review of this section: .

Get the PDF guide and working tools

Subscribe for free to the ALLSoft Agency newsletter. We will send you the material by email.

Get the guide by email

Frequently asked questions

Why is CAPI not optional in 2026?

CAPI can complement browser signals, but does not bypass consent or guarantee recovery of a fixed percentage. Quality depends on the integration, deduplication, permitted data and checkout journey.

How long does the CAPI setup on Shopify take?

Timing depends on store architecture, access level, consent and existing implementations. A standard installation may be quick, but deduplication and events must be validated before setup is considered complete.

What is Event Match Quality (EMQ) and why does it matter?

EMQ is a diagnostic indicator for available matching parameters. It is not a guaranteed score and must not be improved by collecting data without a valid basis. Send only permitted parameters, with correct hashing, deduplication and consent.

What do I do if after 48h the 'Server' column is still 0?

First check the integration, event mapping, deduplication, Shopify Customer Privacy settings and the visitor's actual choice. A Server count of 0 can have several causes; do not enable transmission without consent simply to increase the metric.

// Next step

No time to set up CAPI
on your store?

We configure CAPI on your Shopify store and check browser and server sources, deduplication, diagnostics and data permitted by consent. We start with a technical audit of the current implementation.

You speak directly to a specialistResponse within one business dayWritten recommendationsVerified partnerships