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.
- Ad clickVisitor lands on the store
- Add to cartEvent reaches the pixel
- Checkout completedPixel blocked or wrongly coded
- Platform conversionNo purchase received
- Bidding and reportsOptimise on missing data
The order completes, but the pixel never reports it.
Example: 100 real orders in a week, but a misconfigured pixel only reports some of them.
How to check if your site has it
- 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
Open Customer eventsShopify
In the Shopify admin go to Settings > Customer events. List every app pixel and custom pixel.
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.
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.
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
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.
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.
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.
Remove duplicates
If an app and a custom pixel both send the same event, keep one. Disconnect the extra one.
Save and connect
Click Save, then Connect on the custom pixel. A saved but unconnected pixel does not run.
Subscribe to the events you need
Use the snippet below as a starting point in a custom pixel. Replace the console line with your platform's real tracking call.
Map the data
For checkout_completed, read the order from event.data.checkout, such as totalPrice and currencyCode, and send those values to the platform.
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
});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
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.
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.
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
- 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.
Related issues
- OPS-268Checkout extensibility migration dropping pixelsFix guide
- OPS-276Duplicate pixel via app + manual codeFix guide
- OPS-265Theme published with missing tracking or broken cartFix guide
- OPS-267Uninstalled app leaves broken script tagsFix guide
- OPS-266App conflict breaking add-to-cartFix guide
- OPS-270Store password page enabledFix guide