Troubleshooting: 0% Event Coverage (Pixel Deduplication)
The loading-order problem this guide describes is solved automatically since SDK 0.7.6:
bridge calls made before fbq/ttq exist are queued and replayed as soon as the
pixel loads (up to 30 seconds), with the same eventID, so deduplication is unaffected.
The SDK is served centrally - storefronts pick the update up automatically within about an hour.
The steps below remain useful for verifying your setup and for the other causes listed
(manual fbq('track') calls, wrong pixel ID, consent tools blocking the pixel entirely).
If you see 0% event coverage in Meta Events Manager or TikTok Events Manager while your CAPI events are being sent correctly, this guide will help you identify and fix the most common cause: incorrect pixel loading order.
For complete SDK installation instructions including synchronous vs asynchronous loading and Facebook In-App Browser issues, see the JavaScript SDK Documentation.
0% event coverage means Facebook/TikTok cannot match your browser pixel events with your CAPI events.
This typically happens when browser events are sent without event_id while CAPI events include it.
Understanding the Problem
For deduplication to work, both the browser pixel and the Conversions API must send the same event_id
for the same event. AxiTrace SDK handles this automatically by:
- Generating a unique
event_id(UUID) - Calling
fbq('track', 'EventName', params, { eventID: event_id }) - Sending the same
event_idto the server (aseventSalt) - Server forwards to CAPI with the same
event_id
However, if fbq doesn't exist when the SDK tries to call it, the call is silently skipped!
The Most Common Cause: Wrong Loading Order
If you track events (like product.view) in the <head> section before
Facebook/TikTok pixels are loaded, the SDK cannot call the pixel functions because they don't exist yet.
Wrong Order (causes 0% coverage)
<head>
<!-- 1. AxiTrace SDK loaded first -->
<script src="https://axi.yourdomain.com/axitrack.js"></script>
<script>
Axitrace.init({ ... });
</script>
<!-- 2. Event tracking happens here (in <head> block) -->
<script>
// THIS FAILS! fbq doesn't exist yet!
Axitrace._instance.track('product.view', { sku: 'ABC-123' });
</script>
<!-- ... CSS, other scripts ... -->
<!-- 3. Facebook Pixel loaded AFTER tracking! -->
<script>
!function(f,b,e,v,n,t,s){...}
fbq('init', 'YOUR_PIXEL_ID');
</script>
</head>
In this case, when Axitrace._instance.track('product.view') is called, the SDK checks:
// Inside AxiTrace SDK:
if (typeof global.fbq !== 'function') {
logger.debug('Facebook Pixel (fbq) not available, skipping');
return; // Pixel call is SKIPPED!
}
The event is sent to your server (and then to CAPI with event_id), but the browser pixel call is skipped.
Result: 0% deduplication coverage.
Correct Order (enables deduplication)
<head>
<!-- ============================================== -->
<!-- CRITICAL: Pixels MUST be loaded BEFORE SDK -->
<!-- ============================================== -->
<!-- 1. TikTok Pixel (init only, no ttq.page()) -->
<script>
!function (w, d, t) {
w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];
// ... TikTok pixel code ...
ttq.load('YOUR_TIKTOK_PIXEL_ID');
// REMOVED: ttq.page(); - AxiTrace handles this
}(window, document, 'ttq');
</script>
<!-- 2. Facebook Pixel (init only, no fbq('track', 'PageView')) -->
<script>
!function(f,b,e,v,n,t,s){...}
fbq('init', 'YOUR_FB_PIXEL_ID');
// REMOVED: fbq('track', 'PageView'); - AxiTrace handles this
</script>
<!-- 3. AxiTrace SDK (loaded AFTER pixels) -->
<script src="https://axi.yourdomain.com/axitrack.js"></script>
<script>
Axitrace.init({
apiUrl: 'https://axi.yourdomain.com',
publicKey: 'pk_live_YOUR_KEY'
});
</script>
<!-- 4. Now event tracking works correctly! -->
<script>
// fbq EXISTS! SDK can call fbq('track', 'ViewContent', ..., {eventID})
Axitrace._instance.track('product.view', { sku: 'ABC-123' });
</script>
</head>
Diagnostic Checklist
If you're experiencing 0% event coverage, check the following:
| Check | Expected | How to Verify |
|---|---|---|
| Pixel loading order | Facebook/TikTok pixels load before AxiTrace SDK | View page source, check script order in <head> |
fbq exists when tracking |
typeof fbq === 'function' returns true |
Add console.log(typeof fbq) before Axitrace._instance.track() |
| No duplicate pixel calls | No manual fbq('track', 'ViewContent') calls |
Search codebase for fbq('track' |
| SDK debug mode | Console shows "Called Facebook Pixel" logs | Enable enableDebug: true in Axitrace.init() |
How to Verify the Fix
1. Check Browser Console
With enableDebug: true, you should see:
[AxiTrace] Called Facebook Pixel { event: 'ViewContent', eventID: 'a1b2c3d4-...', params: {...} }
[AxiTrace] Called TikTok Pixel { event: 'ViewContent', eventID: 'a1b2c3d4-...', params: {...} }
If you see "Facebook Pixel (fbq) not available, skipping", the loading order is wrong.
2. Check Meta Events Manager
After deploying the fix, wait 24-48 hours and check:
- Go to Events Manager → select your pixel
- Click on the event (e.g., ViewContent)
- Go to Event Coverage tab
- Check Deduplication Keys:
- Browser events with event_id: Should be >75%
- Server events with event_id: Should be 100%
- Coverage rate: Should be >75%
3. Use Facebook Pixel Helper
Install the Meta Pixel Helper Chrome extension and verify:
- ViewContent event is fired with
eventIDparameter - The
eventIDis a valid UUID format
Common Mistakes
If you load the AxiTrace SDK asynchronously but track events immediately, the pixels might not be ready:
<!-- WRONG: Async SDK with immediate tracking -->
<script>
var script = document.createElement('script');
script.src = 'axitrack.js';
script.async = true;
document.head.appendChild(script);
script.onload = function() {
Axitrace.init({...});
Axitrace._instance.track('product.view', {...}); // fbq might not exist yet!
};
</script>
Solution: Load SDK synchronously (recommended), or ensure pixels are loaded before the onload callback.
See Facebook In-App Browser section for why synchronous loading is critical.
WooCommerce, Shopify, or other e-commerce platforms may have their own Facebook Pixel plugins that send ViewContent
without eventID. This causes duplicate events that can't be deduplicated.
Solution: Disable ViewContent tracking in platform plugins and use Axitrace._instance.track('product.view') instead.
When using AxiTrace SDK, you must remove the default tracking calls from pixel code:
// REMOVE these lines - AxiTrace SDK handles them with eventID:
fbq('track', 'PageView');
ttq.page();
rdt('track', 'PageVisit'); // Reddit: see below, the SDK does NOT replace this one
This is worse than it looks for Meta: fbevents.js ignores a second PageView
on the same page load, so the manual call does not merely add a duplicate - it blocks the
SDK's later fbq('track', 'PageView', {}, { eventID }) from ever reaching Meta. The only
browser event that goes out is the one without an eventID, which is exactly the copy that
cannot be deduplicated against CAPI. Verify in DevTools: the request to facebook.com/tr
must contain an eid= parameter.
Reddit is different. The SDK bridges Meta and TikTok only - there is no Reddit bridge,
so nothing re-sends rdt('track', 'PageVisit') with a shared ID. Install the Reddit Pixel
init-only: init alone writes the _rdt_uuid cookie (forwarded
server-side as Reddit's user.uuid) and sends no event, while PAGE_VISIT comes
from the Conversions API with a conversion ID. A raw rdt('track', 'PageVisit') ships an
empty m.conversionId and is therefore counted twice. See
Reddit CAPI → Deduplication.
Summary: Correct Integration Order
- TikTok Pixel -
ttq.load()only, removettq.page() - Facebook Pixel -
fbq('init')only, removefbq('track', 'PageView') - Reddit Pixel (if used) -
rdt('init')only, removerdt('track', 'PageVisit'); the cookie it sets is the point, the events come from CAPI - AxiTrace SDK -
<script src="axitrack.js">(synchronous, noasync) +Axitrace.init() - Event Tracking -
Axitrace._instance.track('product.view', {...})
Following this order ensures that when AxiTrace SDK tracks an event, fbq and ttq are available,
and the SDK can call them with the correct eventID for deduplication.
Facebook In-App Browser: Missing ProductView Events
If you're seeing PageView events but missing ViewContent/ProductView events specifically
for users coming from Facebook/Instagram ads, this is likely caused by users bouncing before your tracking code executes.
Users from Facebook/Instagram ads (In-App Browser) often bounce within 1-3 seconds by swiping back to Facebook.
If your product.view tracking is in the <body> section or fires on DOMContentLoaded,
these users leave before the event is sent.
Solution:
- Load the SDK synchronously in the
<head>section - Track
product.viewimmediately in<head>, not at the end of<body> - Do NOT wait for
DOMContentLoadedorwindow.onload
See the Facebook In-App Browser section in the JavaScript SDK documentation for detailed implementation instructions and timing analysis.