{
  "id": 12393188,
  "title": "Shopify + Meta CAPI: Deduplicating Pixel and Server Events",
  "url": "https://urgent.news/2026/10/06/shopify-meta-capi-deduplicating-pixel-and-server-events",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-06T14:11:29.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/anshul_sandal_807/shopify-meta-capi-deduplicating-pixel-and-server-events-5eel"
  },
  "original_language": "en",
  "account": "Meta deduplicates a browser event and a server event when they share both the same event_name and the same event_id. This matching happens within a limited time window, typically 48 hours, but it's important to check the current documentation. If either field is missed, Meta will count it as two separate purchases. To avoid this, generate the ID once using something both sides already know, such as the order id in the case of purchases. For Shopify stores, add a custom pixel in Settings > Customer events > Add custom pixel. This custom pixel runs in a sandbox, allowing you to subscribe to Shopify's events instead of reading the page. Use the following event schema and cookie access when adding the custom pixel.",
  "summary": "Here's a ticket that shows up on every store that adds the Conversions API (CAPI): \"Meta now reports almost double our purchases. Last month it matched Shopify.\" Nothing is wrong with Meta. You sent each order twice, and Meta had no way to know they were the same order. This post covers how deduplication works, the fields that make it work, and a pattern for Shopify that survives retries, consent…",
  "key_points": [
    "Meta deduplicates browser and server events with same eventname and eventid within 48 hours.",
    "Use same ID generation method like order ID to prevent Meta from counting as two purchases.",
    "Shopify stores add custom pixel in Settings Customer events to subscribe to Shopify's events."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}