Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Shopify customer events (web pixels) misconfigured: how to fix

OPS-269High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Customer events is the Shopify admin area (Settings > Customer events) where you add web pixels. A web pixel is a small piece of tracking code that listens to store events such as page_viewed, product_added_to_cart and checkout_completed, then sends them to platforms like GA4, Meta or TikTok. Pixels come from two sources: apps (such as a channel app) and custom pixels you paste in yourself.

Why it costs you leads or sales

Your store may still take orders while ad platforms see nothing. Smart bidding and campaign optimisation then learn from missing or partial data. Reports show fewer purchases than you really made, and retargeting audiences stop filling. Spend is wasted and you cannot tell which campaigns work.

Where a misconfigured pixel loses data
  1. Ad clickVisitor lands on the store
  2. Add to cartEvent reaches the pixel
  3. Checkout completedPixel blocked or wrongly coded
  4. Platform conversionNo purchase received
  5. Bidding and reportsOptimise on missing data

The order completes, but the pixel never reports it.

Purchases reported vs real ordersExample numbers
Purchases reported vs real orders (example)Real orders in Shopify: 100 orders; Reported with correct pixel: 95 orders; Reported with broken pixel: 20 orders038771009520Real orders in ShopifyReported with correct…Reported with broken …orders

Example: 100 real orders in a week, but a misconfigured pixel only reports some of them.

How to check if your site has it

Signs of a customer events problem
  • A pixel in Settings > Customer events shows Disconnected or has no recent activity
  • Ad platform purchases are far below Shopify orders
  • Test events in Meta, TikTok or GA4 DebugView show page views but no add-to-cart or purchase
  • A custom pixel was pasted from an old theme script and uses document or window
  • The same event appears twice, or not at all, after you changed apps
  • Visitors who decline cookies are never tracked, and the pixel's privacy setting is stricter than you intended
Check each pixel
  1. Open Customer eventsShopify

    In the Shopify admin go to Settings > Customer events. List every app pixel and custom pixel.

  2. Check status and permissionsShopify

    Open each pixel. Confirm it is Connected, and review its Permission and Data sale settings. These control whether it runs for visitors who have not consented.

  3. Use Test and debug tools

    Run a test order path in your own browser with Meta Pixel Helper, TikTok Pixel Helper or GA4 DebugView open. Note which events arrive.

  4. Compare to Shopify orders

    Compare last week's purchases in each ad platform with Shopify orders for the same period. A large gap points to a pixel problem.

How to fix it

Fix by where the pixel comes from
  1. Reconnect or reinstall app pixels

    If an app pixel is disconnected, open the app, re-run its setup and confirm the pixel shows as Connected in Settings > Customer events.

  2. Set the right privacy permission

    For each pixel, choose the Permission and Data sale options that match your consent policy and legal advice. Do not set them looser than your policy allows.

  3. Rewrite custom pixels for the sandbox

    Use analytics.subscribe to listen to Shopify events and read data from event.data, not from the page DOM. Remove old theme code that reads document elements.

  4. Remove duplicates

    If an app and a custom pixel both send the same event, keep one. Disconnect the extra one.

  5. Save and connect

    Click Save, then Connect on the custom pixel. A saved but unconnected pixel does not run.

Custom pixel skeleton (Settings > Customer events > Add custom pixel)javascript
analytics.subscribe('product_added_to_cart', (event) => {
  const line = event.data.cartLine;
  console.log('add to cart', line.merchandise.id, line.cost.totalAmount.amount);
  // call your platform's tracking function here
});

analytics.subscribe('checkout_completed', (event) => {
  const checkout = event.data.checkout;
  console.log('purchase', checkout.totalPrice.amount, checkout.currencyCode);
  // send purchase to your platform here
});
Pixel setup before and after

Misconfigured

  • Pixel saved but not connected
  • Old theme code reads the page DOM
  • App and custom pixel send duplicate events
  • Purchases missing in ad platforms

Fixed

  • Pixel connected and listed once
  • Code uses analytics.subscribe and event.data
  • One source per event
  • Purchases match Shopify orders closely

How to confirm it's fixed

Confirm tracking
  1. Run a test journey

    Visit your store, view a product, add it to cart and reach checkout. Use test mode or a test order if you have it set up.

  2. Watch the platform's test tool

    Check Meta Test events, TikTok Events Manager, or GA4 DebugView. You should see each event once with the right value.

  3. Check again after 24 hours

    Compare platform purchases to Shopify orders. Small gaps are normal; large ones are not.

How to prevent it happening again

Habits that keep pixels healthy
  • Keep a list of every pixel, its owner and its purpose
  • Re-test purchase tracking after installing, updating or removing apps
  • Re-test after theme changes and checkout changes
  • Review Customer events each month for Disconnected pixels
  • Document privacy settings next to your consent policy
  • Compare platform purchases to Shopify orders weekly

How FunnelGuard handles this

FunnelGuard detects this only partly. A robot visitor runs your customer journey on a schedule and checks the tracking hits sent to ad and analytics platforms (GA4, Google Ads, Meta, TikTok, LinkedIn, Bing, Pinterest, Snapchat, X, Reddit). If a platform stops receiving an expected hit, you get one alert, after a re-check from a second region, with a screenshot and a likely cause.

Questions people ask

Why is my Shopify custom pixel not firing?

Most often the pixel was saved but not connected, or its code reads the page instead of using analytics.subscribe. Open Settings > Customer events, click Connect, and rewrite the code to use event data. Then test with the platform's debug tool.

Where are customer events in Shopify?

Go to Settings > Customer events in the Shopify admin. You will see app pixels and custom pixels, and you can add a custom pixel there.

Why does Meta show fewer purchases than Shopify?

Causes include a disconnected pixel, strict privacy permissions, duplicate or missing checkout_completed events, and consent declines. Check the pixel in Customer events and compare with Meta's Test events.

Can I use old theme.liquid tracking code in a custom pixel?

Not as it is. Custom pixels run in a sandbox without access to the page DOM. Rewrite the code to subscribe to Shopify events and read values from event.data.

How do I test Shopify pixel events?

Browse your store, add a product to cart and go through checkout with a test order or test mode. Keep Meta Pixel Helper, TikTok Pixel Helper or GA4 DebugView open and confirm each event arrives once.

Why is my pixel duplicating events?

An app and a custom pixel are probably both sending the same event, or old code remains in the theme. Keep one source per event and disconnect the others.

Can FunnelGuard find all customer events problems?

No. It checks the tracking hits that platforms receive during a scheduled journey, but it does not inspect your Customer events settings or pixel code. Review those by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.