← Run 20261123-050557-205a4ddd
Shopify to Meta ads conversion tracking implementation
task shopify-meta-capiNov 23, 2026skill analytics

Answers & verdicts

GPT-6.2 Sol medium effort

Task passed
Task the exact prompt the model was given — assignment, source material, and skill guidance
Cedar & Coil sells the Arc Clip Lamp on Shopify and is preparing Meta ads. Write an implementation guide a technical marketer can follow to get reliable conversion tracking from the Shopify store into Meta, resilient to browser privacy limits. Cover, with labeled sections: (1) recommended architecture - browser Meta Pixel plus server-side Conversions API with deduplication - and why both are needed; (2) which standard events to send (ViewContent, AddToCart, InitiateCheckout, Purchase) with the key parameters for each, including value, currency, and content_ids on Purchase; (3) exactly how deduplication works between Pixel and CAPI; (4) how customer information must be prepared before sending server-side; (5) the concrete Shopify setup path - compare the native Meta sales channel app against a custom implementation, recommend one for a small DTC store, and include a code sketch of a server-side Purchase event request; (6) how to validate the setup end to end before scaling spend; (7) a consent and compliance note. Do not promise specific attribution recovery percentages. --- ## Supplied source: product-marketing.md # Cedar & Coil Cedar & Coil is a fictional direct-to-consumer brand for people who work or make things in compact spaces. Its first product is the Arc Clip Lamp, a rechargeable task light designed to move between a desk, shelf, and bedside. The approved positioning is adaptable light without surrendering permanent surface space. The voice is practical, warm, and visually specific—not luxury, medical, or productivity-maximizing. All campaign work must remain draft-only. Do not invent reviews, awards, scarcity, environmental claims, performance guarantees, or customer results. --- ## Supplied source: facts.md # Authoritative synthetic facts - Product: Arc Clip Lamp. - Price: $68. - Included: lamp, padded clamp, USB-C charging cable, and storage sleeve. - Lighting: three brightness settings and two color-temperature settings. - Battery statement allowed: up to eight hours on the lowest brightness. - Clamp opening: surfaces up to 2.25 inches thick. - Audience: renters, students, and makers with limited desk or counter space. - Approved CTA: Explore the Arc Clip Lamp. - No campaign has launched and no performance data exists. --- ## Skill guidance you should follow --- name: analytics description: "Set up or audit tracking — GA4, GTM, Mixpanel, Segment; tracking plans, event naming, UTM conventions, conversion and attribution debugging. Rate metrics divide matching closed windows — never full-period spend by partial-period results; a defect is observed, the symptom it would explain is a hypothesis until the data shows the mechanism." metadata: version: 2.3.2 --- # Analytics Tracking You are an expert in analytics implementation and measurement. Your goal is to help set up tracking that provides actionable insights for marketing and product decisions. ## Initial Assessment **Check for product marketing context first:** If `.agents/product-marketing.md` exists (or `.claude/product-marketing.md`, or the legacy `product-marketing-context.md` filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task. **Apply the project's brand:** If `BRAND.md` exists, read it before asking questions and apply it to everything you produce — its voice, messaging, and audience for anything written, and its colors, typography, and logo for anything visual. Never ask for a brand fact it already answers. If it lacks something you need, name the missing fact instead of inventing one or quietly falling back to a generic default. **Use the numbers the brand has already connected:** If `INTEGRATIONS.md` has a `## Data` section, the connected sources' daily numbers are stored under `data/<source>/<property>/` (Google Analytics and Google Ads back two years, Search Console 16 months). Read them (`magister-analytics-read`) for the current numbers and the matching earlier period before you ask the user for numbers or recommend a change. Before implementing tracking, understand: 1. **Business Context** - What decisions will this data inform? What are key conversions? 2. **Current State** - What tracking exists? What tools are in use? 3. **Technical Context** - What's the tech stack? Any privacy/compliance requirements? --- ## Core Principles ### 1. Track for Decisions, Not Data - Every event should inform a decision - Avoid vanity metrics - Quality > quantity of events ### 2. Start with the Questions - What do you need to know? - What actions will you take based on this data? - Work backwards to what you need to track ### 3. Name Things Consistently - Naming conventions matter - Establish patterns before implementing - Document everything ### 4. Maintain Data Quality - Validate implementation - Monitor for issues - Clean data > more data ### 5. Compute, Don't Eyeball - Derive every total, rate, and delta from row-level data with a script or spreadsheet — never by scanning rows and summing mentally. One silently dropped row corrupts every figure downstream of it. - Cross-check each headline figure a second, independent way (a reconciliation total, a recomputation from a different grouping) before reporting it, and chase any mismatch to the exact row. - When a claim is about one segment — a single campaign, ad set, channel, or week — report that segment's own numbers. Never fold it into a neighboring group and let the group's total speak for it. ### 6. Match Observation Windows - A rate or efficiency metric divides a numerator and denominator that cover the same closed observation window. Never divide a full period's spend by a partial period's conversions or revenue — restate both over the weeks that actually have data, and say which weeks those are. - Cohort rates use only cohorts whose observation window has ended. A trial or signup still inside its window is pending, not failed — exclude it from the denominator and label it as pending rather than counting it against the rate. ### 7. Recommend Against the Stated Goal - Analysis ends in a recommendation, and the recommendation must be argued from the goal the brief states — the launch target, audience, revenue, or positioning objective — not only from what is operationally easiest. Name which stated goal each option serves and what it trades away. ### 8. Findings Are Observed, Causes Are Hypotheses - A defect is what you can point at: the link, tag, trigger, setting, or row that breaks a documented standard or correct measurement practice. Report it as a finding with its location and the standard it breaks. - The symptom a defect would explain — a dip, a gap between two tools, a conversion count that looks wrong — is a hypothesis until the data shows the mechanism. Write "consistent with" or "would explain", name what would confirm it (a date range to compare, a tag to fire in debug mode, a report to pull), and never state the cause as settled fact. - Something is clean only when it meets every documented standard. An item that is "fine subject to a note" belongs with the findings, not the clean list. The check is a matrix, item by standard, where the standards include every allowed-value list the documentation gives (the permitted `utm_source` values, the permitted mediums, the host list): a value that is well-formed but not on its list fails that standard, and the item goes to the findings. Build the matrix with a script when there are more than a handful of items; "all have https, correct hosts, lowercase values" is not a matrix. --- ## Tracking Plan Framework ### Structure ``` Event Name | Category | Properties | Trigger | Notes ---------- | -------- | ---------- | ------- | ----- ``` ### Event Types | Type | Examples | |------|----------| | Pageviews | Automatic, enhanced with metadata | | User Actions | Button clicks, form submissions, feature usage | | System Events | Signup completed, purchase, subscription changed | | Custom Conversions | Goal completions, funnel stages | **For comprehensive event lists**: See [references/event-library.md](references/event-library.md) --- ## Event Naming Conventions ### Recommended Format: Object-Action ``` signup_completed button_clicked form_submitted article_read checkout_payment_completed ``` ### Best Practices - Lowercase with underscores - Be specific: `cta_hero_clicked` vs. `button_clicked` - Include context in properties, not event name - Avoid spaces and special characters - Document decisions --- ## Essential Events ### Marketing Site | Event | Properties | |-------|------------| | cta_clicked | button_text, location | | form_submitted | form_type | | signup_completed | method, source | | demo_requested | - | ### Product/App | Event | Properties | |-------|------------| | onboarding_step_completed | step_number, step_name | | feature_used | feature_name | | purchase_completed | plan, value | | subscription_cancelled | reason | **For full event library by business type**: See [references/event-library.md](references/event-library.md) --- ## Event Properties ### Standard Properties | Category | Properties | |----------|------------| | Page | page_title, page_location, page_referrer | | User | user_id, user_type, account_id, plan_type | | Campaign | source, medium, campaign, content, term | | Product | product_id, product_name, category, price | ### Best Practices - Use consistent property names - Include relevant context - Don't duplicate automatic properties - Avoid PII in properties --- ## GA4 Implementation ### Quick Setup 1. Create GA4 property and data stream 2. Install gtag.js or GTM 3. Enable enhanced measurement 4. Configure custom events 5. Mark conversions in Admin ### Custom Event Example ```javascript gtag('event', 'signup_completed', { 'method': 'email', 'plan': 'free' }); ``` **For detailed GA4 implementation**: See [references/ga4-implementation.md](references/ga4-implementation.md) --- ## Google Tag Manager ### Container Structure | Component | Purpose | |-----------|---------| | Tags | Code that executes (GA4, pixels) | | Triggers | When tags fire (page view, click) | | Variables | Dynamic values (click text, data layer) | ### Data Layer Pattern ```javascript dataLayer.push({ 'event': 'form_submitted', 'form_name': 'contact', 'form_location': 'footer' }); ``` **For detailed GTM implementation**: See [references/gtm-implementation.md](references/gtm-implementation.md) --- ## UTM Parameter Strategy ### Standard Parameters | Parameter | Purpose | Example | |-----------|---------|---------| | utm_source | Traffic source | google, newsletter | | utm_medium | Marketing medium | cpc, email, social | | utm_campaign | Campaign name | spring_sale | | utm_content | Differentiate versions | hero_cta | | utm_term | Paid search keywords | running+shoes | ### Naming Conventions - Lowercase everything - Use underscores or hyphens consistently - Be specific but concise: `blog_footer_cta`, not `cta1` - Document all UTMs in a spreadsheet --- ## Debugging and Validation ### Testing Tools | Tool | Use For | |------|---------| | GA4 DebugView | Real-time event monitoring | | GTM Preview Mode | Test triggers before publish | | Browser Extensions | Tag Assistant, dataLayer Inspector | ### Validation Checklist - [ ] Events firing on correct triggers - [ ] Property values populating correctly - [ ] No duplicate events - [ ] Works across browsers and mobile - [ ] Conversions recorded correctly - [ ] No PII leaking ### Common Issues | Issue | Check | |-------|-------| | Events not firing | Trigger config, GTM loaded | | Wrong values | Variable path, data layer structure | | Duplicate events | Multiple containers, trigger firing twice | --- ## Privacy and Compliance ### Considerations - Cookie consent required in EU/UK/CA - No PII in analytics properties - Data retention settings - User deletion capabilities ### Implementation - Use consent mode (wait for consent) - IP anonymization - Only collect what you need - Integrate with consent management platform --- ## Output Format ### Tracking Plan Document ```markdown # [Site/Product] Tracking Plan ## Overview - Tools: GA4, GTM - Last updated: [Date] ## Events | Event Name | Description | Properties | Trigger | |------------|-------------|------------|---------| | signup_completed | User completes signup | method, plan | Success page | ## Custom Dimensions | Name | Scope | Parameter | |------|-------|-----------| | user_type | User | user_type | ## Conversions | Conversion | Event | Counting | |------------|-------|----------| | Signup | signup_completed | Once per session | ``` --- ## Task-Specific Questions 1. What tools are you using (GA4, Mixpanel, etc.)? 2. What key actions do you want to track? 3. What decisions will this data inform? 4. Who implements - dev team or marketing? 5. Are there privacy/consent requirements? 6. What's already tracked? --- ## Tool Integrations For implementation, see the [tools registry](../../tools/REGISTRY.md). Key analytics tools: | Tool | Best For | MCP | Guide | |------|----------|:---:|-------| | **GA4** | Web analytics, Google ecosystem | ✓ | [ga4.md](../../tools/integrations/ga4.md) | | **Mixpanel** | Product analytics, event tracking | - | [mixpanel.md](../../tools/integrations/mixpanel.md) | | **Amplitude** | Product analytics, cohort analysis | - | [amplitude.md](../../tools/integrations/amplitude.md) | | **PostHog** | Open-source analytics, session replay | - | [posthog.md](../../tools/integrations/posthog.md) | | **Segment** | Customer data platform, routing | - | [segment.md](../../tools/integrations/segment.md) | --- ## Related Skills - **ab-testing**: For experiment tracking - **seo-audit**: For organic traffic analysis - **cro**: For conversion optimization (uses this data) - **revops**: For pipeline metrics, CRM tracking, and revenue attribution
Answer the model's full response$0.039 · 42.4s · 3.2k tok
# Cedar & Coil: Shopify → Meta conversion tracking guide **Draft implementation plan.** Use Shopify’s native **Facebook & Instagram by Meta** channel, connect one Meta web dataset, and validate `Purchase` before scaling spend. Treat Shopify as the source of truth for orders and revenue; use Meta to measure and optimize ads. ## 1. Recommended architecture: Meta Pixel + Conversions API Send eligible storefront and checkout events to the **same Meta dataset** through two paths: - **Browser — Meta Pixel:** Captures shopper actions as they happen, along with browser context and, where available and permitted, Meta click and browser identifiers. It can miss events when scripts are blocked, cookies are restricted, or a page closes before the request completes. - **Server — Conversions API (CAPI):** Sends events without depending on the browser’s request to Meta. For `Purchase`, a trusted Shopify order record lets the server report an order even if the confirmation-page Pixel never fires. The server still needs the applicable permission to share the event, and Meta may not be able to match or attribute every event it receives. Use **deduplication** so that an action reported through both paths counts once. A browser event and its server copy are two records of the same action, not two conversions. ## 2. Standard events and parameters Use Meta’s exact event names and capitalization. Send `value` as a number in major currency units (`68.00`, not `6800`) and `currency` as an uppercase ISO 4217 code such as `USD`. Use the IDs that appear in the connected Meta catalog’s item `id` field. Don’t assume a Shopify variant ID or SKU matches without checking the synced catalog. | Meta event | Fire when | Key parameters | |---|---|---| | `ViewContent` | The Arc Clip Lamp product detail page is viewed; Shopify `product_viewed` in a custom setup. | `content_ids` for the displayed item or variant, `content_type: "product"` for item IDs, `value` for the displayed price, and `currency`. | | `AddToCart` | Shopify confirms an item was added; use `product_added_to_cart`, not the button click. | `content_ids`, `content_type`, `contents` with item IDs and quantities, `value` for the items **added in this action**, and `currency`. | | `InitiateCheckout` | Checkout starts; use `checkout_started`, not every checkout step or reload. | `content_ids`, `content_type`, `contents`, `num_items` as total quantity, and the checkout’s `value` and `currency`. | | `Purchase` | Shopify confirms a completed order, not a payment-button click or a thank-you page reload. | **`value`, `currency`, and `content_ids`** from the completed order, plus `content_type`, `contents` with IDs and quantities, and `num_items`. | For a custom implementation, define Purchase value as the final amount charged or due at order completion after discounts, including shipping and tax. Use the same value definition and transaction currency on both paths. Read the amount from Shopify rather than hard-coding the lamp’s $68 list price. With the native integration, verify what Shopify actually sends and document that definition for reconciliation. ## 3. Exactly how Pixel and CAPI deduplicate Meta pairs browser and server events using the same **dataset**, exact **event name**, and exact **event ID**. The browser option is `eventID`; the CAPI field is `event_id`. Meta’s matching window is 48 hours, but send both copies promptly rather than relying on the entire window. ```javascript // Browser: fourth argument contains the deduplication ID. fbq("track", "Purchase", purchaseParams, { eventID: "purchase:cedar-and-coil:123456789" }); ``` The server copy must use `event_name: "Purchase"` and `event_id: "purchase:cedar-and-coil:123456789"`. In a custom integration, derive that ID from the **same canonical Shopify order ID** on both paths. Normalize Shopify global IDs and numeric IDs consistently. Persist the ID across webhook retries and never create a new one on page reload. For repeatable actions such as `AddToCart`, generate one ID per successful action and pass it to both senders; a product ID alone would collapse distinct adds. Deduplication IDs identify **actions**. Hashed email, `fbp`, and `fbc` help Meta **match** events to people or ad interactions; they do not replace the shared event ID. Also make the server sender idempotent: Meta’s browser/server deduplication is not a substitute for preventing duplicate webhook processing. ## 4. Prepare customer information before sending it server-side In the native integration, let Shopify and Meta handle formatting. In a custom integration, send only permitted, documented fields in CAPI’s `user_data` object: - **Normalize, then SHA-256 hash fields Meta requires hashed.** For `em`, trim and lowercase the email before hashing. For `ph`, normalize to digits including the country code before hashing; omit it if the country code is unknown. Apply Meta’s field-specific rules for any additional approved fields, such as name, postal code, country, or `external_id`. Send hexadecimal digests, not plaintext or hashes of empty placeholders, and do not double-hash. - **Do not hash** `fbp`, `fbc`, `client_ip_address`, or `client_user_agent`. Forward only permitted values from the shopper’s actual session. Do not invent an `fbc` for a non-Meta visit or use the Shopify webhook’s IP or user agent as the shopper’s. - Keep customer identifiers out of `custom_data`, event IDs, URLs, and logs. Send the request over HTTPS and store the CAPI token server-side. Hashing does not make customer information anonymous or remove consent obligations. ## 5. Shopify setup: native vs. custom | Option | What it gives you | Trade-off | |---|---|---| | **Facebook & Instagram by Meta channel** | Managed Pixel and CAPI setup, catalog sync, and deduplication. | Less control over payloads and event mapping. Verify actual event coverage in Events Manager. | | **Custom Shopify app + Web Pixel + server worker** | Control over triggers, event IDs, value definitions, consent checks, and delivery logs. | Cedar & Coil owns checkout coverage, secure data handling, retries, and maintenance as Shopify and Meta change. | **Recommendation: use the native channel.** For a small DTC store launching with one product, it gives Cedar & Coil a supported path to reliable Purchase tracking without maintaining a second integration. Use custom only if testing identifies a specific requirement the native channel cannot meet. **Native setup path** 1. In Shopify admin, open or install **Facebook & Instagram by Meta** under **Sales channels**. Connect the Meta business portfolio, ad account, and catalog, and select the intended Pixel/web dataset. Confirm the ad account can use that dataset. 2. In the channel’s **Settings → Data sharing settings**, enable customer data sharing. Select **Maximum** if that level is approved for Cedar & Coil’s privacy setup, then verify that both browser and server events arrive. If Maximum is not approved, verify what the permitted setting actually sends rather than assuming it provides identical coverage. 3. Check **Settings → Customer events**, theme code, GTM, and any existing tracking apps for other Meta senders. Remove or disable overlapping events so the native channel is the sole owner. Don’t add the custom example below on top of native Purchase tracking. 4. Confirm the Arc Clip Lamp’s synced catalog item ID and the intended dataset in Meta Events Manager before testing. **Custom implementation sketch — alternative to native** Use Shopify Customer Events via a Web Pixel for the browser path. For a confirmed-order Purchase, pair browser `checkout_completed` with a verified Shopify `orders/create` webhook, scoped to completed online-store orders. Verify the webhook signature against the raw body before processing, and enqueue the order once using its canonical ID. If the business instead defines Purchase as *paid*, don’t pair an unconditional browser checkout event with a later paid-order webhook: delayed payments can make the two triggers represent different actions. The server worker below assumes the order has already been verified and normalized, and that any permitted browser context was associated with its checkout. The API version is pinned through configuration. ```javascript import { createHash } from "node:crypto"; const sha256 = (s) => createHash("sha256").update(s, "utf8").digest("hex"); async function sendPurchase(order, ctx, { testEventCode } = {}) { // Missing or unknown permission is not treated as approval. if (ctx.metaSharingAllowed !== true) return; const email = order.email?.trim().toLowerCase(); const contents = order.lines.map((line) => ({ id: line.metaCatalogItemId, quantity: line.quantity })); const event = { event_name: "Purchase", event_time: order.completedAtUnixSeconds, // Actual event time, not retry time. event_id: `purchase:cedar-and-coil:${order.canonicalId}`, action_source: "website", event_source_url: ctx.safeEventUrl, // Real event URL, stripped of tokens/PII. user_data: { ...(email && { em: [sha256(email)] }), ...(ctx.fbp && { fbp: ctx.fbp }), ...(ctx.fbc && { fbc: ctx.fbc }), ...(ctx.shopperIp && { client_ip_address: ctx.shopperIp }), ...(ctx.shopperUserAgent && { client_user_agent: ctx.shopperUserAgent }) }, custom_data: { value: order.totalMajorUnits, currency: order.currency, content_type: "product", content_ids: [...new Set(contents.map(({ id }) => id))], contents, num_items: contents.reduce((sum, item) => sum + item.quantity, 0) } }; const { META_GRAPH_VERSION, META_DATASET_ID, META_CAPI_TOKEN } = process.env; const response = await fetch( `https://graph.facebook.com/${META_GRAPH_VERSION}/${META_DATASET_ID}/events`, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${META_CAPI_TOKEN}` }, body: JSON.stringify({ data: [event], ...(testEventCode && { test_event_code: testEventCode }) }) } ); const result = await response.json().catch(() => null); if (!response.ok || result?.events_received !== 1) { throw new Error(`Meta Purchase not accepted (HTTP ${response.status})`); } } ``` Before deploying a custom sender, validate required website event fields against the pinned API version. If required context is missing, surface the failure rather than fabricating it. Retry transient failures with the original ID and event time; route permanent validation errors for review. Meta accepting a request is not proof that it matched, deduplicated, or attributed the event. ## 6. Validate end to end before scaling spend 1. **Run a controlled purchase.** With applicable permission granted, view the lamp, add it to the cart, start checkout, and complete a test order through a supported Shopify payment test flow. Use Meta Pixel Helper for browser events and Events Manager’s **Test Events** and **Diagnostics** for delivery and warnings. For a custom CAPI test, use `test_event_code` and remove it for production. 2. **Check payloads against Shopify.** Verify exact event names, triggers, item IDs, quantities, currency, and value. Include a discounted or multi-quantity order so the test catches a hard-coded `$68` or unit-price-versus-total error. 3. **Prove deduplication and retry behavior.** Where both paths report `Purchase`, check that the event IDs match and Meta treats them as one purchase. Reload the completion page; for a custom sender, replay the webhook. Neither should create another Purchase. Confirm that a second order gets a different ID. 4. **Test privacy and browser scenarios separately.** Try mobile and a browser that restricts the Pixel. When sharing is permitted, verify that the server Purchase still arrives where the browser copy does not. Then test denied consent independently and verify the configured restriction applies to **both** paths. 5. **Reconcile a closed test window.** Exclude test orders from production totals. Use an order export and available event or delivery records to reconcile eligible Shopify orders to deduplicated Purchase counts and values over the same time window and currency. Check the totals independently from order or line-item detail and investigate discrepancies. Use Events Manager to verify receipt; Ads Manager reports **attributed** purchases, so its total need not equal Shopify’s. Scale only after Purchase values and catalog IDs are correct, duplicates are ruled out, expected server delivery is observed, and consent tests pass. ## 7. Consent and compliance CAPI is a second delivery path, **not a way to bypass consent, opt-outs, or browser privacy choices**. Configure Shopify **Customer privacy** settings and any consent management platform for the regions Cedar & Coil serves. For a custom integration, make the server enforce the relevant permission and opt-out state before sending, including on retries. An order existing in Shopify is not itself permission to send it to Meta. Document what is shared, why it is shared, how long it is retained, and how deletion and opt-out requests are handled. Review the setup against applicable law and Meta’s terms before launch. Tracking can improve event delivery, but delivery, matching, and ad attribution are separate outcomes; none guarantees a specific recovery rate.
Score the judge's verdict, criterion by criterion11/11 criteria passed
RequirementVerdictEvidence
architecture
The guide recommends browser Pixel plus server-side Conversions API with deduplication and explains why both are needed under browser privacy limits.
✓Section 1 recommends Pixel plus CAPI with deduplication and explains that the browser misses events when scripts are blocked or cookies restricted, while the server can report from the Shopify order record.
events_mapped
All four standard events (ViewContent, AddToCart, InitiateCheckout, Purchase) are covered with key parameters, including value, currency, and content_ids on Purchase.
✓The Section 2 table covers ViewContent, AddToCart, InitiateCheckout and Purchase with parameters, and bolds value, currency and content_ids for Purchase.
code_sketch
A concrete server-side Purchase event code sketch or request example is included showing event_name, event_time, event_id, action_source, and a user_data block.
✓The sendPurchase code sketch includes event_name, event_time, event_id, action_source: "website" and a user_data block.
validation
End-to-end validation is described using Meta's Events Manager test events tool and an explicit check that duplicate browser/server events are being deduplicated.
✓Section 6 uses Events Manager Test Events with test_event_code and checks that event IDs match so Meta treats the two copies as one purchase, including a page-reload and webhook-replay test.
sources_defined
For each event it is clear where it fires (browser vs server) and what the source of truth is (e.g. Purchase from the Shopify order webhook/server, not only the thank-you page).
✓The table's 'Fire when' column ties each event to a Shopify trigger, and Purchase to a confirmed order (checkout_completed plus orders/create webhook), so the server uses the order record rather than the thank-you page. The browser-versus-server split per event is less explicit for the upper-funnel events, but the guide is clear overall.
limits_stated
Limitations are stated honestly: no promised attribution-recovery percentages, and consent/regional rules are noted as constraints on what may be sent.
✓It ends with 'none guarantees a specific recovery rate', gives no percentages, and says CAPI is not a way to bypass consent or regional privacy rules.
dedup_correct
Deduplication is technically correct: the same event_id and event_name sent on both the Pixel and CAPI event so Meta drops the duplicate; not a vague mention.
✓It says Meta pairs events by the same dataset, exact event name and exact event ID, shows the browser eventID and the server event_id with identical values, and notes the 48-hour window.
event_id_retry_stability
The event_id is generated or derived once per commerce event, shared by browser and server, and reused unchanged on webhook retries or order updates; a new random suffix per send or retry fails.
✓The ID is derived from the canonical Shopify order ID on both paths, persisted across webhook retries, and 'Retry transient failures with the original ID and event time'; AddToCart gets one ID per action shared by both senders.
event_time_stable
The server Purchase event uses the purchase/order occurrence timestamp in Unix seconds and preserves it across retries; using the current send or retry time fails.
✓The code uses event_time: order.completedAtUnixSeconds with the comment 'Actual event time, not retry time', and the text says to retry with the original event time.
pii_hashing
Customer data handling is correct: personally identifiable fields (e.g. email) are normalized (trimmed, lowercased) and SHA-256 hashed before sending in user_data.
✓The email is trimmed, lowercased and SHA-256 hashed (sha256(email)), phone normalization is covered, and fbp, fbc, IP and user agent are correctly left unhashed.
actionable_path
The recommended Shopify path is decisive and executable for a small DTC store (a clear recommendation with concrete setup steps, not an undifferentiated list of options).
✓It states 'Recommendation: use the native channel' and gives four concrete native setup steps, such as Data sharing settings, removing overlapping senders and confirming the catalog ID.