← Run 20261118-011124-ac8b5d38
Shopify to Meta ads conversion tracking implementation
task shopify-meta-capiNov 18, 2026Models on marketing tasks Model only

Answers & verdicts

GPT-6.2 Sol high effort

Task failed
Task the exact prompt the model was given — assignment and source material
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.
✓ Attempt 1
Answer · attempt 1 the model's full response$0.18 · 77.0s · 5.2k tok
# Cedar & Coil: Shopify-to-Meta conversion tracking guide **Draft implementation plan.** Start with Shopify’s **Facebook & Instagram by Meta** sales channel, use one Meta dataset for the browser Pixel and Conversions API, and verify that one Arc Clip Lamp order produces one deduplicated `Purchase` before running ads. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai)) ## 1. Recommended architecture: Meta Pixel + Conversions API - **Browser — Meta Pixel:** Captures what shoppers do on the storefront and in checkout, along with browser context and Meta click or browser identifiers when available and permitted. Browser restrictions, blockers, or a confirmation page that never loads can interrupt this path. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai)) - **Server — Conversions API (CAPI):** Sends eligible conversions from Shopify’s server-side order flow to the same Meta dataset. A server-originated `Purchase` can arrive even when the browser copy does not. CAPI improves delivery resilience; it does not guarantee that Meta can match the event to a person or attribute it to an ad. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai)) Use the Pixel for all four funnel events below and prioritize server redundancy for `Purchase`. Shopify explicitly documents server-side `Purchase` for its native integration; don’t assume the other three events are sent server-side. If you mirror any of them in a custom setup, deduplicate each browser/server pair. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai)) ## 2. Standard events and parameters Use these exact Meta event names. The Shopify triggers below are the mapping for a custom build; with the native channel, verify what the integration actually emits. ([developers.facebook.com](https://developers.facebook.com/documentation/meta-pixel/reference)) | Meta event | When to fire | Key parameters | |---|---|---| | `ViewContent` | Arc Clip Lamp product detail view (`product_viewed`), not a generic page view | `content_ids`, `content_type`; if sending price, use the displayed item price as `value` with its `currency`. | | `AddToCart` | A successful add (`product_added_to_cart`), not merely a button click | `content_ids`, `content_type`, `value` for the quantity added, and `currency`. Use `contents` if sending line-item quantities. | | `InitiateCheckout` | The shopper enters checkout (`checkout_started`) | `content_ids`, `content_type`, checkout `value`, `currency`, and `num_items` as the total quantity. | | `Purchase` | A completed order, once per order (`checkout_completed` on the browser side) | **`value`** as the actual Shopify order total, **`currency`** as the order’s three-letter ISO code, and **`content_ids`** as the purchased catalog item IDs. Include `content_type`. | Use the exact IDs in the connected Meta catalog: don’t assume a Shopify variant ID, SKU, or product handle is the catalog ID. Set `content_type: "product"` for item IDs, or `"product_group"` if you intentionally send group IDs. Send `value` as a number in the corresponding currency’s major units. The lamp’s $68 list price is not a hardcoded `Purchase` value: use the final order total and make both paths agree after discounts, shipping, and taxes. On CAPI, these commerce fields go in `custom_data`. ([developers.facebook.com](https://developers.facebook.com/documentation/meta-pixel/reference)) ## 3. Exactly how deduplication works Meta pairs the browser and server copies when they go to the **same Pixel ID**, have the **same event name** (`Purchase`), and carry the **same event ID**. The browser sends `eventID` in the fourth argument to `fbq`; CAPI sends `event_id` at the top level of the event object, not inside `custom_data`. The second copy must arrive within **48 hours of the first**. Meta generally keeps the first copy when the payloads are materially alike; its server-event reference says it favors the browser copy when the two arrive within about five minutes. Don’t rely on one copy to fill in missing commerce fields on the other. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events)) ```js // Browser: example ID for one Shopify order fbq("track", "Purchase", purchaseData, { eventID: "cc:purchase:123456789" }); // CAPI: event_name: "Purchase", event_id: "cc:purchase:123456789" ``` In a custom build, derive the ID from the same canonical Shopify order ID on both paths. Normalize a GraphQL order ID and a numeric order ID to the same string if your sources differ. Reuse that ID and the original event time on retries; use a new ID for a new order. For other mirrored events, generate one ID per action and pass it to both senders. Email hashes and click IDs help Meta match users; use the explicit event ID for deduplication. Also make your webhook processing idempotent so duplicate deliveries don’t create extra send jobs. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events)) ## 4. Prepare customer information before sending it server-side Put permitted match fields in `user_data`. For a direct API call, normalize the fields that require hashing, then apply **unsalted SHA-256 once** and send the hex digest. Trim and lowercase email (`em`). For phone (`ph`), include the country calling code and remove punctuation and any leading dialing zeros before hashing. If sending names or location fields, follow Meta’s field-specific rules. Meta recommends hashing a stable `external_id` if you use one. If an SDK hashes for you, don’t double-hash. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters)) **Do not hash** `fbp`, `fbc`, `client_ip_address`, or `client_user_agent`. Pass genuine `_fbp` and `_fbc` cookie values when present and permitted; only derive `fbc` from a real `fbclid` using Meta’s format. Use the shopper’s IP and user agent, not those of the webhook request or your server. Omit unavailable optional fields rather than inventing values. Meta requires the shopper’s user agent and an event source URL for website CAPI events. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters)) ## 5. Shopify setup: native channel vs. custom **Recommended for Cedar & Coil: use the native channel.** It manages the Pixel and server-side Purchase integration without a custom webhook service, token rotation, or event-ID plumbing. A custom build is worth considering only if you need control over event triggers, catalog mapping, or server coverage that the native integration doesn’t provide. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai)) 1. In Shopify admin, go to **Settings → Sales channels → Shopify App Store**. Find **Facebook & Instagram by Meta**, add the channel, and connect the intended Meta business assets, ad account, and catalog as applicable. ([help.shopify.com](https://help.shopify.com/en/manual/online-sales-channels/social-commerce/facebook-instagram-by-meta/setup?utm_source=openai)) 2. Go to **Sales channels → Facebook & Instagram → Settings → Data sharing settings**. Enable customer data sharing, select **Maximum** if approved under your privacy setup, and connect the Pixel the ad account will use. Shopify currently documents server-side `Purchase` at both **Enhanced** and **Maximum**; **Standard** is browser Pixel only. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai)) 3. Remove any overlapping Meta senders from theme code, tag managers, custom pixels, or other apps. Don’t deploy the sketch below on top of the native `Purchase` integration. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-pixel/?utm_source=openai)) **Custom alternative:** Use Shopify Customer Events/Web Pixels for browser events and a verified Shopify order webhook for server `Purchase`. For a paid-order definition, use `orders/paid` and only emit the browser copy when checkout confirms the same purchase. For delayed payment, use server-only `Purchase` if the browser can’t confirm payment. Capture permitted browser context and privacy state before checkout completes and associate it with the order, so the server send doesn’t depend on the thank-you page. Verify the webhook signature, queue sends durably, and key the queue by shop and order. ([shopify.dev](https://shopify.dev/docs/api/web-pixels-api?utm_source=openai)) **Server-side Purchase request sketch (Node.js).** `p` is a validated record from the order and checkout context. The worker checks current sharing eligibility before sending, including on retry. Keep the token in a server-side secret store and pin a supported Graph API version. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) ```js import { createHash } from "node:crypto"; async function sendPurchase(p, testEventCode) { if (p.metaSharingAllowed !== true) return; if (!p.userAgent || !p.safeEventSourceUrl) { throw new Error("Missing required website event context"); } const email = p.email?.trim().toLowerCase(); const user_data = { client_user_agent: p.userAgent }; if (email) { user_data.em = [createHash("sha256").update(email, "utf8").digest("hex")]; } if (p.clientIp) user_data.client_ip_address = p.clientIp; if (p.fbp) user_data.fbp = p.fbp; if (p.fbc) user_data.fbc = p.fbc; const event = { event_name: "Purchase", event_id: `cc:purchase:${p.canonicalOrderId}`, event_time: p.occurredAtUnixSeconds, // Original conversion time, not retry time action_source: "website", event_source_url: p.safeEventSourceUrl, user_data, custom_data: { value: p.orderTotal, // Number in major currency units currency: p.currency, // E.g. "USD" content_ids: p.catalogItemIds, // Exact Meta catalog item IDs content_type: "product" } }; const { META_API_VERSION, META_PIXEL_ID, META_CAPI_TOKEN } = process.env; const body = new FormData(); body.set("access_token", META_CAPI_TOKEN); body.set("data", JSON.stringify([event])); if (testEventCode) body.set("test_event_code", testEventCode); const response = await fetch( `https://graph.facebook.com/${META_API_VERSION}/${META_PIXEL_ID}/events`, { method: "POST", body } ); const result = await response.json(); if (!response.ok || result.events_received !== 1) { throw new Error(`Meta did not acknowledge Purchase (HTTP ${response.status})`); } return { eventsReceived: result.events_received, traceId: result.fbtrace_id }; } ``` Retry transient failures with backoff and the same ID; alert on configuration or payload errors. Log delivery status and trace IDs, not tokens or customer payloads. An API acknowledgment confirms receipt, not attribution. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) ## 6. Validate end to end before scaling spend 1. **Walk the funnel with tracking allowed.** In **Meta Events Manager → Data Sources → your dataset → Test Events**, open the store and complete a Shopify test checkout. Use Meta Pixel Helper or browser network tools to check browser firing. Confirm the four events, then compare the `Purchase` value, currency, and catalog IDs with the Shopify order. Use a test environment rather than putting a live payment gateway into test mode. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) 2. **Prove deduplication.** Confirm browser and server `Purchase` on the same dataset, with the same name and ID. Two received copies are expected; they should represent one deduplicated purchase. Check **Overview → Purchase → Event Details → Event Deduplication** as data becomes available. For a custom sender, use `test_event_code` only during QA; it does **not** isolate events from measurement, so use a separate test dataset where practical. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/verifying-setup)) 3. **Test failure and privacy cases separately.** With sharing allowed, block only the browser’s Meta request and check that the eligible server `Purchase` still arrives. Then decline tracking or exercise an applicable opt-out and confirm neither path sends the disallowed event. Refresh the confirmation page and, for a custom build, replay the webhook: neither should create a new purchase. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai)) 4. **Set a release gate.** Resolve missing or duplicate purchases, bad values, and catalog mismatches. Review Events Manager Diagnostics and Event Match Quality, and reconcile delivered purchases against **eligible Shopify orders**. Use Shopify as the order ledger; don’t expect Meta Ads Manager’s attributed purchases to equal total Shopify orders. Keep the campaign in draft until the checks pass. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/verifying-setup)) ## 7. Consent and compliance Configure **Shopify Settings → Customer privacy**, or use a consent platform integrated with Shopify’s Customer Privacy API. Apply the relevant consent and opt-out rules to **both** Pixel and CAPI, including Global Privacy Control where applicable. A completed order or email-marketing opt-in is not permission to send an advertising event. For a custom sender, enforce the privacy decision on the server; if required permission cannot be established, don’t send. ([help.shopify.com](https://help.shopify.com/en/manual/privacy-and-security/privacy/customer-privacy-settings/privacy-settings?utm_source=openai)) Update the privacy notice to explain what is shared with Meta and why. Send only necessary fields, strip personal data and checkout tokens from URLs, and never send payment credentials or sensitive data. Treat hashed identifiers as personal data, not anonymous data. CAPI makes permitted events less dependent on the browser; it is not a way around a shopper’s privacy choice. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs&utm_source=openai))
Score · attempt 1 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 browser Pixel plus server-side CAPI to the same dataset, explains that browser restrictions, blockers, or an unloaded confirmation page interrupt the Pixel path while server Purchase can still arrive, and Section 3 covers deduplication.
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 key parameters, and Purchase explicitly includes value, currency and content_ids.
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 Node.js sketch builds an event with event_name "Purchase", event_id, event_time, 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 and a 'Prove deduplication' step that checks Event Details → Event Deduplication and same name and ID on browser and server copies.
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 guide says Pixel handles all four events, Purchase also goes server-side from a verified orders/paid webhook so it doesn't depend on the thank-you page, and it warns not to assume the other three are server-sent.
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 says CAPI "does not guarantee that Meta can match the event to a person or attribute it to an ad", promises no recovery percentages, and Section 7 says consent and opt-out rules gate what may be sent.
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 specifies the same Pixel ID, same event name and same event_id, with eventID in the fbq fourth argument and event_id at the top level of the CAPI event, and gives matching example IDs.
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 (`cc:purchase:${p.canonicalOrderId}`) on both paths, and the text says "Reuse that ID and the original event time on retries".
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: p.occurredAtUnixSeconds, // Original conversion time, not retry time`, and the text says to reuse the original event time on retries.
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.
✓Email is trimmed and lowercased then SHA-256 hashed in the code; the text covers phone normalization and says not to hash fbp, fbc, IP or user agent.
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 decisively recommends the native Facebook & Instagram by Meta channel with numbered setup steps, and describes the custom build only as a conditional alternative.
✗ Attempt 2
Answer · attempt 2 the model's full response$0.29 · 109.5s · 5.9k tok
# Cedar & Coil: Shopify-to-Meta conversion tracking guide **Draft only.** Start with Shopify’s **Facebook & Instagram by Meta** sales channel. Use it to send the four standard browser events and a server-side copy of `Purchase`. Verify that one Shopify order produces one deduplicated Meta purchase before publishing any ads. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) ## 1. Recommended architecture: Meta Pixel + Conversions API - **Browser Meta Pixel:** Captures actions where they happen: viewing the Arc Clip Lamp, adding it to cart, entering checkout, and completing a purchase. It can also provide browser and ad-click context when available and permitted. Browser restrictions or a confirmation page that never loads can prevent delivery. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) - **Server-side Conversions API (CAPI):** Sends the purchase from Shopify’s server or your own backend to Meta. A browser blocker cannot intercept that server-to-server request. The server can report an eligible order even when the browser copy is missing, but it cannot recreate missing click identifiers or guarantee that Meta attributes the sale to an ad. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) Send both copies to the **same Meta dataset/Pixel ID**. Prioritize redundancy for `Purchase`; don’t assume the native channel sends server copies of all four events. Shopify explicitly documents server-side delivery for `Purchase`. If you later send other events over both paths, deduplicate those pairs too. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) ## 2. Events and parameters Use this as the payload specification for a custom build and as a checklist when inspecting the native integration. Put commerce parameters in the Pixel event’s parameter object and in CAPI’s `custom_data`. ([developers.facebook.com](https://developers.facebook.com/documentation/meta-pixel/reference)) | Meta event | When to send | Key parameters | |---|---|---| | `ViewContent` | The Arc Clip Lamp product detail page is viewed (`product_viewed`). | `content_ids`, `content_type`, `value` = displayed unit price, `currency`. | | `AddToCart` | The lamp is successfully added (`product_added_to_cart`), not merely when the button is clicked. | `content_ids`, `content_type`, `contents` with ID and quantity, `value` = value of the units just added, `currency`. | | `InitiateCheckout` | The shopper enters checkout (`checkout_started`), not when they open the cart. | `content_ids`, `contents`, `num_items` = sum of quantities, `value` = checkout total at that point, `currency`. | | `Purchase` | Once per successful order. For a paid-order custom implementation, qualify both paths on payment. | **`value`, `currency`, `content_ids`**; also send `content_type` and `contents` with IDs and quantities. `order_id` is optional and does not replace the deduplication ID. | Meta requires `value` and `currency` for `Purchase`. Send a numeric amount in major units and the corresponding three-letter ISO currency code, such as `USD`. Read the actual Shopify order total and its checkout currency; don’t hard-code `68` or multiply it by quantity to calculate revenue. For a custom build, use the same total on both paths—for example, Shopify’s `totalPriceSet.presentmentMoney` for the original order total. Use the exact item IDs from the Meta catalog, not assumed SKUs or raw Shopify variant IDs. Set `content_type` to `product` for item IDs or `product_group` for group IDs. ([shopify.dev](https://shopify.dev/docs/api/web-pixels-api/standard-events?who=publisher&utm_source=openai)) ## 3. Exactly how deduplication works Meta compares the **event name and event ID on the same dataset**. For one order, the browser sends `Purchase` with `eventID` in the fourth `fbq` argument; CAPI sends `event_name: "Purchase"` with the identical string in `event_id`. Meta deduplicates matching copies received within **48 hours**. It generally keeps the first copy; its server-event reference says it favors the browser copy if both arrive within about five minutes. If only one copy arrives, there is nothing to deduplicate. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events)) ```js // Custom browser path; orderGid is the canonical Shopify order ID string. fbq('track', 'Purchase', purchaseData, { eventID: `purchase:${orderGid}` }); ``` Use that same `purchase:${orderGid}` on the server and on retries. Don’t generate IDs independently or use a customer or session ID for every purchase. For other events sent over both paths, generate one ID per action and pass it to both senders. Separately, make the webhook worker idempotent so repeated Shopify deliveries don’t create new purchase jobs. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/server-event)) ## 4. Prepare customer information before sending it Build an allowlisted `user_data` object from permitted first-party data. For direct API requests, **normalize first, then apply unsalted SHA-256 once** and send the hex digest. Trim and lowercase email (`em`). For phone (`ph`), parse a valid international number, then send only digits including the country calling code before hashing. If you use names or location fields, follow Meta’s field-specific rules—for example, lowercase two-letter country codes before hashing. Meta recommends hashing `external_id` if used. If your SDK handles hashing, don’t hash the same field twice. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters)) **Do not hash** `fbp`, `fbc`, `client_ip_address`, or `client_user_agent`. Use the actual shopper’s browser context, not the webhook sender’s IP or user agent. Pass genuine `_fbp` and `_fbc` values when permitted and available; construct `fbc` only from a real `fbclid` using Meta’s format. Omit missing optional fields rather than inventing values. Meta requires the shopper’s `client_user_agent` for website CAPI events. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters)) ## 5. Shopify setup: native first, custom only if needed **Native path — recommended for Cedar & Coil.** 1. In Shopify admin, go to **Settings → Sales channels → Shopify App Store**. Install **Facebook & Instagram by Meta**, start setup, and connect the brand’s Meta business portfolio, Page, ad account, and the intended dataset and catalog as applicable. ([help.shopify.com](https://help.shopify.com/en/manual/online-sales-channels/social-commerce/facebook-instagram-by-meta/setup?utm_source=openai)) 2. Go to **Sales channels → Facebook & Instagram → Settings → Data sharing settings**. Enable customer data sharing and connect the intended Pixel. Choose **Maximum** if it fits your privacy review. Shopify documents both **Enhanced** and **Maximum** as Pixel plus CAPI for `Purchase`; **Standard** is browser-only. Confirm that the draft ad set uses the same dataset. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) 3. Audit the theme, **Settings → Customer events**, tag managers, and other tracking apps for duplicate Meta senders. Disable overlapping implementations. Let the native integration own its browser/server pair; don’t run the sketch below alongside it for the same purchases. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-pixel/?utm_source=openai)) **Custom path — use only if you need control the native channel doesn’t offer**, such as a paid-order rule or custom event routing. Use Shopify Web Pixels for the browser events and an `orders/paid` webhook for server purchases. On `checkout_completed`, send the browser `Purchase` only if payment can be confirmed promptly; for delayed payments, let CAPI report the purchase when payment is confirmed. Verify the webhook HMAC against the raw request body, queue it durably, and enforce one job per shop/order. Obtain the necessary Shopify protected-data access. In Meta, generate the token under **Events Manager → dataset → Settings → Conversions API → Set up manually** and store it server-side. ([shopify.dev](https://shopify.dev/docs/apps/build/marketing/pixels?utm_source=openai)) **Server-side `Purchase` request sketch (Node.js).** The worker supplies a verified paid web order, a sanitized checkout URL, and consent-checked, prepared `userData` from section 4. Capture any permitted browser context before payment and link it to the checkout; don’t make the server job depend on the thank-you page loading. Pin a supported Graph API version in configuration. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/server-event)) ```js async function sendPurchase(order, userData, { allowed, testEventCode } = {}) { if (!allowed) return { skipped: true }; if (!userData.client_user_agent) { throw new Error("Missing shopper user agent"); } const { META_GRAPH_VERSION, META_PIXEL_ID, META_CAPI_TOKEN } = process.env; const event = { event_name: "Purchase", event_id: `purchase:${order.gid}`, // Same canonical ID as the browser event_time: order.paidAtUnixSeconds, // Actual payment time, not retry time action_source: "website", event_source_url: order.sanitizedCheckoutUrl, user_data: userData, custom_data: { value: order.totalAmount, // Validated number in checkout currency currency: order.currency, content_type: "product", content_ids: [...new Set(order.items.map(item => item.catalogId))], contents: order.items.map(item => ({ id: item.catalogId, quantity: item.quantity })) } }; const body = new FormData(); body.set("access_token", META_CAPI_TOKEN); body.set("data", JSON.stringify([event])); if (testEventCode) body.set("test_event_code", testEventCode); const res = await fetch( `https://graph.facebook.com/${META_GRAPH_VERSION}/${META_PIXEL_ID}/events`, { method: "POST", body } ); const result = await res.json(); return { ok: res.ok && result.events_received === 1, status: res.status, traceId: result.fbtrace_id, errorCode: result.error?.code }; } ``` Retry transient failures with backoff and the original event ID and timestamp. Alert on persistent rejections rather than retrying an invalid payload indefinitely. Log status and trace IDs, not tokens, raw customer data, or full payloads. API acceptance confirms receipt, not deduplication or attribution. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) ## 6. Validate end to end before scaling spend 1. **Run the full funnel.** In **Meta Events Manager → Data Sources → your dataset → Test Events**, view the lamp, add it to cart, start checkout, and complete a Shopify test order. Use Meta Pixel Helper for browser checks. For a custom sender, use the request-level `test_event_code` during testing only. Prefer a separate test dataset when possible: the code does not make events disposable. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) 2. **Prove one order counts once.** Inspect the browser and server `Purchase` copies for matching IDs, amount, currency, and catalog IDs. Check **Event Deduplication**, not just raw receipt counts. Reload the confirmation page and, for a custom build, replay the webhook; neither should create a second purchase. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/verifying-setup)) 3. **Test failure and privacy cases separately.** With advertising sharing permitted, block the Meta browser request and verify that an eligible server purchase still arrives. Then test declined payment, abandoned checkout, denied consent, and applicable opt-outs. Verify that no purchase is sent when the order or privacy state disqualifies it. Include any accelerated checkout options the store offers. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) 4. **Reconcile and monitor.** Compare eligible Shopify orders and their totals with deduplicated events. Review Events Manager diagnostics, freshness, and Event Match Quality. Keep Shopify as the order ledger: Ads Manager reports ad-attributed conversions, not every Shopify order. Keep the campaign in draft until the checks pass. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/verifying-setup)) ## 7. Consent and compliance **CAPI is a delivery fallback, not a consent override.** Configure **Shopify → Settings → Customer privacy** for the markets you serve, and connect any third-party consent manager to Shopify’s Customer Privacy API. Apply the same advertising permissions and applicable sale/sharing opt-outs, including Global Privacy Control where applicable, to both paths. For a custom worker, carry the checkout’s privacy state to the backend and check it again before sending queued events. An order webhook or an email-marketing opt-in is not permission to share the order with Meta. ([help.shopify.com](https://help.shopify.com/en/manual/privacy-and-security/privacy/customer-privacy-settings/privacy-settings?utm_source=openai)) Disclose Pixel and CAPI sharing in the privacy notice, review Meta’s Business Tools terms and applicable requirements, and send only what is needed. Never send payment credentials, sensitive data, free-text order notes, or URLs containing customer information or checkout secrets. Treat hashed identifiers as personal data, not anonymous data. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?r=ecm-bfs))
Score · attempt 2 the judge's verdict, criterion by criterion10/11 criteria passed · failed: sources_defined
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 the browser Pixel plus server-side CAPI sent to the same dataset, explains that a server-to-server request avoids browser blockers, and notes that deduplication is needed.
events_mapped
All four standard events (ViewContent, AddToCart, InitiateCheckout, Purchase) are covered with key parameters, including value, currency, and content_ids on Purchase.
✓The table covers ViewContent, AddToCart, InitiateCheckout and Purchase with key parameters, and Purchase bolds `value`, `currency` and `content_ids`.
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 Node.js `sendPurchase` sketch includes event_name, event_time, event_id, action_source 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 and says to check Event Deduplication and matching IDs for browser and server Purchase copies.
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).
✗Purchase is clearly server-triggered through the `orders/paid` webhook, but the guide does not state per event whether ViewContent, AddToCart and InitiateCheckout fire in the browser or on the server. It only says not to assume the native channel sends server copies of all four events.
limits_stated
Limitations are stated honestly: no promised attribution-recovery percentages, and consent/regional rules are noted as constraints on what may be sent.
✓The guide says the server "cannot recreate missing click identifiers or guarantee that Meta attributes the sale", gives no recovery percentages, and says "CAPI is a delivery fallback, not a consent override".
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 specifies the same event name and event ID on the same dataset, with `eventID` in the fourth `fbq` argument and `event_id` in CAPI using the identical `purchase:${orderGid}` string.
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 order GID, so it is stable; the guide says to use "that same `purchase:${orderGid}` on the server and on retries" and to retry with "the original event ID and timestamp".
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.paidAtUnixSeconds, // Actual payment time, not retry time`, and the guide says retries keep the original timestamp.
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.
✓Section 4 says to normalize first (trim and lowercase email), then apply unsalted SHA-256 once and send the hex digest, and not to hash fbp, fbc, IP or user agent.
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 decisively recommends the native Facebook & Instagram by Meta channel and gives numbered steps with menu paths, then describes the custom path as an alternative to use only if needed.
✗ Attempt 3
Answer · attempt 3 the model's full response$0.19 · 74.7s · 4.7k tok
# Cedar & Coil: Shopify-to-Meta conversion tracking guide **Recommendation:** Use Shopify’s **Facebook & Instagram by Meta** sales channel as the only Meta tracking integration. Enable **Maximum** data sharing if it fits Cedar & Coil’s privacy requirements, then verify that one eligible Arc Clip Lamp order produces **one deduplicated `Purchase`**. Keep the ads in draft while you test. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) ## 1. Recommended architecture: Meta Pixel + Conversions API - **Browser → Meta Pixel:** Send storefront and checkout events from the shopper’s browser. This captures actions such as viewing the lamp or adding it to the cart, along with browser and ad-click context when available and permitted. - **Shopify/server → Meta Conversions API (CAPI):** Send confirmed purchases from Shopify’s servers or your own backend. The server request does not depend on a Meta script loading or on the shopper reaching the thank-you page. It can still arrive when a browser blocker stops the Pixel, though missing identifiers can limit matching and attribution. - **Both → the same Meta dataset:** Send overlapping events with a shared event ID. The two paths provide redundancy, not two conversions. Start with server-side `Purchase`; verify which other events the integration actually sends server-side rather than assuming all four are mirrored. ([help.shopify.com](https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-data-sharing?utm_source=openai)) ## 2. Standard events and parameters Use the exact Meta event names below. For custom tracking, put the commerce parameters directly in the Pixel event and inside `custom_data` in CAPI. ([developers.facebook.com](https://developers.facebook.com/documentation/meta-pixel/reference)) | Meta event | Shopify trigger | Parameters to send | |---|---|---| | `ViewContent` | `product_viewed` on the Arc Clip Lamp product page | `content_ids`, `content_type`, displayed unit `value`, `currency`. | | `AddToCart` | `product_added_to_cart` after a successful cart add | `content_ids`, `content_type`, `contents` with ID and quantity added, `value` of the items just added, `currency`. Don’t send the entire cart value. | | `InitiateCheckout` | `checkout_started` when the shopper enters checkout | `content_ids`, `contents`, `num_items` as the sum of quantities, checkout `value` as known at that point, `currency`. | | `Purchase` | Completed order; use the same purchase definition on both paths | **`value`, `currency`, `content_ids`**, plus `content_type` and `contents` with purchased IDs and quantities. An optional `order_id` helps reconciliation but doesn’t replace `event_id`. | Use the **exact IDs in the connected Meta catalog**. Don’t assume the SKU or raw Shopify variant ID is the catalog ID. Use `content_type: "product"` for item IDs or `"product_group"` for group IDs. Send `value` as a number in major currency units, paired with the order’s three-letter currency code. For `Purchase`, use Shopify’s actual checkout total in the shopper’s currency, after discounts and including any shipping, taxes, or duties charged. Send `68` and `"USD"` only if the test order actually totals US$68. ([developers.facebook.com](https://developers.facebook.com/documentation/meta-pixel/reference)) ## 3. How deduplication works Meta pairs browser and server copies sent to the **same Pixel/dataset** when the **event name** and **event ID** match and the copies arrive within **48 hours** of each other. In the browser, pass `eventID` in the fourth argument: `fbq('track', 'Purchase', purchaseParams, {eventID: purchaseId})`. In CAPI, set `event_name: "Purchase"` and `event_id: purchaseId`. Meta generally prefers the first comparable copy it receives; its server-event reference says it favors the browser copy when the two arrive within about five minutes. Keep the commerce values consistent rather than relying on one copy to correct the other. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events)) For a custom build, derive `purchaseId` from the **same canonical Shopify order ID** on both paths, for example `purchase:123456789`. Reuse it on retries and never generate a fresh ID on a page reload. For other events sent on both paths, generate one ID per action and pass that same ID to both senders. Email, `_fbp`, and `_fbc` are not substitutes for this shared event ID. Keep your own order-level send record so webhook replays don’t depend on Meta’s deduplication window. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events)) ## 4. Prepare customer information before sending it server-side - **Normalize, then SHA-256 hash contact fields.** Trim and lowercase email (`em`). Parse phone (`ph`) to a valid international number, then use digits only, including the country code. Apply Meta’s field-specific normalization before hashing any names or location fields you choose to send. For direct API calls, hash once with no salt and send the hex digest. If your SDK handles hashing, don’t pre-hash and then hash again. - **Do not hash browser context.** Send the real shopper `client_user_agent` and, when available and permitted, `client_ip_address`, `fbp` (from `_fbp`), and `fbc` (from `_fbc` or formatted from a genuine `fbclid` per Meta’s specification). Never substitute your webhook server’s IP or user agent, or invent a click ID. - **Omit missing optional fields.** Don’t send blanks or placeholders. For website CAPI events, include the shopper’s user agent, `action_source: "website"`, and a sanitized `event_source_url`. Use the actual event time in Unix seconds, not the retry time. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters)) ## 5. Shopify setup: native vs. custom **Native sales channel — recommended for Cedar & Coil.** Install **Facebook & Instagram by Meta** from the Shopify App Store and connect the correct Meta business portfolio, ad account, and catalog if you use one. In Shopify admin, go to **Sales channels → Facebook & Instagram → Settings → Data sharing settings**. Enable customer data sharing, select **Maximum** if approved, and connect the Pixel/dataset you’ll use in Ads Manager. **Standard** is browser-only; Shopify documents server-side `Purchase` for both **Enhanced** and **Maximum**. Let the partner integration manage the browser/server pairing. Remove overlapping Meta senders from theme code, legacy checkout scripts, tag managers, custom pixels, and other apps. ([help.shopify.com](https://help.shopify.com/en/manual/online-sales-channels/social-commerce/facebook-instagram-by-meta/setup?utm_source=openai)) **Custom implementation — use only if you need control the native channel doesn’t provide.** Use Shopify’s Customer Events/Web Pixels for browser events and a verified Shopify order webhook for the server event. For an immediate-payment flow, pair a browser `checkout_completed` event that represents a paid order with the `orders/paid` webhook. If a payment can still be pending at checkout completion and the browser can’t verify payment, suppress browser `Purchase` for that flow and send it only on payment confirmation. Verify the webhook HMAC, queue the event once per shop and order, and join it to the permitted checkout context and privacy state independently of the Meta Pixel. A paid webhook by itself does not establish permission to send marketing data. Don’t run the custom sender alongside native tracking for the same events. ([shopify.dev](https://shopify.dev/docs/api/web-pixels-api/standard-events/checkout_completed?utm_source=openai)) **Server-side `Purchase` sketch (Node.js, custom path only).** The worker receives a validated order snapshot and a permission-checked checkout context. `order.id` is the canonical string used by the browser; `order.lines` already contains the mapped Meta catalog IDs. Keep the access token in a server-side secret store and pin a supported Graph API version. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) ```js import { createHash } from 'node:crypto'; const sha256 = s => createHash('sha256').update(s, 'utf8').digest('hex'); async function sendPurchase(order, ctx, testEventCode) { if (ctx.metaSharingAllowed !== true) return; const email = order.email?.trim().toLowerCase(); const user_data = { client_user_agent: ctx.userAgent }; if (email) user_data.em = [sha256(email)]; if (ctx.shopperIp) user_data.client_ip_address = ctx.shopperIp; if (ctx.fbp) user_data.fbp = ctx.fbp; if (ctx.fbc) user_data.fbc = ctx.fbc; const contents = order.lines.map(line => ({ id: line.metaCatalogId, quantity: line.quantity, })); const event = { event_name: 'Purchase', event_id: `purchase:${order.id}`, event_time: order.paidAtUnixSeconds, action_source: 'website', event_source_url: ctx.sanitizedCheckoutUrl, user_data, custom_data: { value: Number(order.totalInShopperCurrency), currency: order.shopperCurrency, content_type: 'product', content_ids: [...new Set(contents.map(item => item.id))], contents, }, }; const body = new FormData(); body.set('access_token', process.env.META_CAPI_TOKEN); body.set('data', JSON.stringify([event])); if (testEventCode) body.set('test_event_code', testEventCode); const { META_GRAPH_VERSION, META_PIXEL_ID } = process.env; const res = await fetch( `https://graph.facebook.com/${META_GRAPH_VERSION}/${META_PIXEL_ID}/events`, { method: 'POST', body }, ); const result = await res.json(); if (!res.ok || result.events_received !== 1) { throw new Error(`Meta did not acknowledge Purchase (${res.status})`); } return result.fbtrace_id; } ``` In production, validate required fields before enqueueing, retry transient failures promptly with the **original ID and timestamp**, and alert on persistent failures. Log delivery status and trace IDs, not tokens or customer payloads. API acknowledgment confirms receipt, not matching or ad attribution. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) ## 6. Validate end to end before scaling spend 1. **Test the normal path.** In **Meta Events Manager → Data Sources → your dataset → Test Events**, open the store and run product view → add to cart → checkout → purchase. Inspect the browser requests in DevTools. Check all four event names, the destination dataset, catalog IDs, quantities, and the final value and currency against the Shopify order. For custom CAPI testing, pass `test_event_code` at the request level and remove it in production. Use an isolated test dataset where possible: Meta says the code does not exclude events from measurement. For the native integration, check **Overview → Connection Method** if the server copy isn’t visible in Test Events. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api)) 2. **Prove deduplication and resilience separately.** On a permitted checkout, confirm that the browser and server copies share the `Purchase` ID and are deduplicated. Reloading the confirmation page or replaying a custom webhook must not create another purchase. Then test a separate permitted checkout with the Meta browser request blocked: the server purchase should still arrive. In a separate denial or opt-out test, verify that **neither** path sends data when advertising sharing is disallowed. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events)) 3. **Check data quality before increasing spend.** Review Diagnostics, deduplication, event freshness, and Event Match Quality. Reconcile eligible Shopify orders and their values against processed purchase events over the same period. Don’t compare Shopify’s total order count directly with Ads Manager’s attributed purchases, or treat raw browser-plus-server receipts as deduplicated totals. Investigate unexplained gaps or inflation before scaling. ([developers.facebook.com](https://developers.facebook.com/documentation/ads-commerce/conversions-api/verifying-setup)) ## 7. Consent and compliance Configure **Shopify admin → Settings → Customer privacy** for the markets you serve. If you use a third-party consent banner, sync it with Shopify’s Customer Privacy API and verify that the same choices govern both Pixel and CAPI, including applicable opt-outs. For a custom sender, don’t infer advertising permission from a purchase or an email-marketing checkbox; if you can’t establish that sharing is permitted, withhold the event. Disclose Meta sharing in the store privacy notice, minimize the fields sent, and keep payment details, sensitive information, and checkout secrets out of payloads and URLs. **Hashing is not anonymization, and server-side delivery is not a consent workaround.** ([help.shopify.com](https://help.shopify.com/en/manual/privacy-and-security/privacy/customer-privacy-settings/privacy-settings?utm_source=openai))
Score · attempt 3 the judge's verdict, criterion by criterion10/11 criteria passed · failed: sources_defined
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 a shared event ID and explains that the server path still arrives when a browser blocker stops the Pixel or the shopper never reaches the thank-you page.
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 Purchase explicitly lists value, currency and content_ids.
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 Node.js sketch builds an event with event_name 'Purchase', event_id, event_time, 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 and says to confirm the browser and server copies share the Purchase ID and are deduplicated.
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).
✗Purchase is sourced from the paid webhook, but section 1 says to 'verify which other events the integration actually sends server-side', so browser versus server firing and source of truth for ViewContent, AddToCart and InitiateCheckout are left unspecified.
limits_stated
Limitations are stated honestly: no promised attribution-recovery percentages, and consent/regional rules are noted as constraints on what may be sent.
✓The response promises no attribution-recovery percentages, says 'missing identifiers can limit matching and attribution', and states that 'server-side delivery is not a consent workaround' and that sharing must be permitted.
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 states that matching event name and event ID, on the same Pixel/dataset within 48 hours, are deduplicated, and shows fbq eventID alongside CAPI event_id.
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 event_id is derived from the canonical order ID ('purchase:123456789'), shared by both paths, and reused on retries ('original ID and timestamp'), never regenerated on reload.
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 sketch uses event_time: order.paidAtUnixSeconds and the text says 'Use the actual event time in Unix seconds, not the retry time' and to retry with the original timestamp.
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 and lowercased, then SHA-256 hashed in both the text and the code, while the browser context fields 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 decisively recommends the native Facebook & Instagram by Meta channel and gives concrete steps (install, connect the portfolio, Data sharing settings, Maximum, remove overlapping senders).