I'll verify current Meta and Shopify implementation details before writing the guide.# Meta Conversion Tracking Implementation Guide
### Cedar & Coil — Arc Clip Lamp ($68 USD) — Shopify → Meta Pixel + Conversions API
**Status:** Draft implementation plan. No campaign has launched and no performance data exists, so this document contains no benchmarks, forecasts, or claims about how much attribution any configuration will recover.
**Audience:** A technical marketer with Shopify admin access, Meta Business Manager admin access, and the ability to deploy a small server-side service (or to work with a developer who can).
---
## 1. Recommended Architecture
### 1.1 The shape of it
```
┌─────────────────────────────┐
Shopper's │ Shopify storefront + │
browser ───▶ │ Checkout (Web Pixel / │──▶ Meta Pixel (browser)
│ custom pixel sandbox) │ event_id: purchase_5541
└─────────────┬───────────────┘ │
│ ├──▶ Meta
│ order created/paid │ Events
┌─────────────▼───────────────┐ │ Manager
Shopify ─────▶│ Your server (webhook │──▶ CAPI ────┘ (dedupe by
webhook │ consumer + hashing + CAPI) │ /events event_name
└─────────────────────────────┘ event_id: + event_id)
purchase_5541
```
Two independent transports send the **same logical event**, tagged with the **same identifier**, and Meta collapses them into one.
### 1.2 Why both are needed
**The browser Pixel alone is fragile.** It depends on third-party-adjacent cookies, JavaScript execution, and the page actually loading long enough to fire. It is degraded or blocked by Safari ITP and Firefox ETP cookie lifetime caps, iOS App Tracking Transparency, content blockers and privacy extensions, ad-blocking DNS, network flakiness on mobile, and users who close the tab before the confirmation page finishes rendering. The loss is not random — it skews toward privacy-conscious and mobile-heavy segments, which for a renters/students/makers audience is likely a meaningful slice.
**The Conversions API alone is also insufficient.** Server events originate from your infrastructure, so they carry no browser context unless you deliberately pass it. Without the `_fbp` browser cookie and the `_fbc` click identifier, match quality degrades and the server event can be harder to tie back to an ad click. The server also has no visibility into pre-purchase browsing behavior unless you instrument it, and it cannot observe a session that never reaches your backend.
**Together they are complementary:**
| | Browser Pixel | Conversions API |
|---|---|---|
| Rich browser identifiers (`_fbp`, `_fbc`, user agent, referrer) | Native | Only if you pass them through |
| Survives ad blockers / ITP / tab closure | No | Yes |
| Sees anonymous top-of-funnel browsing | Yes | Requires instrumentation |
| Has verified purchase data (real order total, payment captured) | Approximate | Authoritative |
| Can send late/corrected data (refunds, fraud cancellations) | No | Yes |
The Pixel supplies identity and top-of-funnel signal; the server supplies reliability and truth about money. Deduplication is what keeps you from double-counting the overlap.
### 1.3 Non-negotiables before you build
- **One Meta dataset (Pixel ID) for the store.** Multiple pixels firing on the same pages is the single most common cause of unexplainable event counts.
- **Domain verification** for `cedarandcoil.com` in Business Manager Brand Safety settings.
- **Aggregated Event Measurement:** configure and prioritize your 8 web events, with `Purchase` at priority 1. This governs what is measurable for iOS users who opted out of tracking.
- **A system user access token**, not a personal one. Personal tokens die when the person leaves the business portfolio. Generate the CAPI token from a Business Manager system user with access to the dataset.
- **The token lives in server environment variables only.** Never in theme code, never in a custom pixel, never in a repo.
---
## 2. Event Plan and Parameters
Send four standard events. Resist the urge to add custom events before these four are clean — Meta's optimization and the AEM event prioritization both work best on standard events.
### 2.1 Parameters every event carries (browser and server)
| Parameter | Notes |
|---|---|
| `event_name` | Exact standard casing: `ViewContent`, `AddToCart`, `InitiateCheckout`, `Purchase` |
| `event_id` | Your deduplication key. See §3. Must be identical across Pixel and CAPI. |
| `event_time` | Unix seconds. Server events must be within 7 days of now; aim for under a few minutes. |
| `event_source_url` | The page URL where it happened. Must be on your verified domain. |
| `action_source` | `"website"` for all four of these events |
| `user_data.fbp` | The `_fbp` cookie value, sent raw (not hashed) |
| `user_data.fbc` | Derived from the `fbclid` URL parameter or the `_fbc` cookie, sent raw |
| `user_data.client_ip_address` | Server-side only, raw |
| `user_data.client_user_agent` | Server-side only, raw. Must be the *shopper's* UA, not your server's. |
| `user_data.external_id` | Hashed stable customer or anonymous ID |
### 2.2 Event-by-event
**ViewContent** — fires on the Arc Clip Lamp product page.
```
content_type: "product"
content_ids: ["<variant_id>"] // must match your catalog IDs
content_name: "Arc Clip Lamp"
value: 68.00
currency: "USD"
```
Include `value` and `currency` even though nothing has been purchased; it lets Meta learn the economic weight of the view. Fire once per product page view, not on scroll or re-render.
**AddToCart** — fires on successful add-to-cart, after the cart mutation returns, not on button click.
```
content_type: "product"
content_ids: ["<variant_id>"]
contents: [{ id: "<variant_id>", quantity: 1, item_price: 68.00 }]
value: 68.00 // quantity × item price
currency: "USD"
```
**InitiateCheckout** — fires when the shopper enters checkout.
```
content_type: "product"
content_ids: ["<variant_id>", ...]
contents: [{ id: "<variant_id>", quantity: 1, item_price: 68.00 }]
num_items: 1
value: 68.00 // cart subtotal
currency: "USD"
```
**Purchase** — the event that funds your bidding. Send it from **both** transports.
```
content_type: "product"
content_ids: ["<variant_id>", ...] // REQUIRED for catalog/DPA matching
contents: [{ id: "<variant_id>", quantity: 1, item_price: 68.00 }]
value: 68.00 // REQUIRED
currency: "USD" // REQUIRED
num_items: 1
order_id: "5541" // Shopify order id — secondary dedupe signal
```
### 2.3 Rules that prevent silent breakage
- **`value` is a number, not a string, and carries no currency symbol.** `68.00`, never `"$68.00"`.
- **`currency` is a three-letter ISO 4217 code.** `"USD"`. If Cedar & Coil ever sells in multiple currencies, send the currency the customer was actually charged in — do not normalize to USD on your side.
- **Decide once what `value` means on Purchase** — product subtotal, or subtotal plus shipping and tax — and apply it identically in Pixel and CAPI. A mismatch between the two transports is a classic cause of inflated revenue in Ads Manager. For a single-SKU DTC store, the cleanest definition is the net product revenue excluding shipping and tax.
- **`content_ids` must match the IDs in your Meta product catalog exactly.** If the Shopify catalog feed publishes IDs like `shopify_US_8123456_44987654`, your events must send that string, not the bare variant ID. Mismatched IDs break dynamic ads and catalog attribution while still showing a "healthy" event count — which is why this fails quietly. Verify in Commerce Manager → Catalog → Diagnostics.
- **Purchase fires once per order.** Confirmation pages get refreshed and bookmarked. Deterministic `event_id` (§3) protects you from this.
---
## 3. How Deduplication Actually Works
### 3.1 The mechanism
Meta deduplicates when two received events share **both**:
1. the same `event_name`, and
2. the same `event_id`
When that pair matches, Meta keeps one copy and discards the other. The retained event is generally the one that arrived first; the discarded one does not double-count in reporting, attribution, or optimization.
Deduplication operates within a matching window — Meta documents roughly **48 hours** — so browser and server copies of the same event should be sent as close together as possible, ideally seconds apart. A server event delivered days later against a browser event will not reliably collapse.
### 3.2 Generating `event_id` correctly
The critical constraint: **the browser and the server must independently arrive at the same string.** A random UUID generated in the browser is useless to your webhook consumer unless you deliberately transport it. Two workable patterns:
**Pattern A — deterministic ID from a shared key (recommended for Purchase).**
Derive the ID from something both sides already know: the Shopify order ID.
```
event_id = "purchase_" + order.id // e.g. "purchase_5541"
```
The browser reads the order ID on the confirmation page; the webhook receives it in the payload. No transport needed, both sides compute the same value, and repeated confirmation-page loads produce the same ID — so refreshes deduplicate against the original instead of inflating counts.
**Pattern B — generate in browser, carry to server (for pre-purchase events).**
Generate a UUID in the custom pixel, and persist it where the server can retrieve it — a cart attribute, a checkout note attribute, or a lightweight endpoint of your own. Use this for `InitiateCheckout` if you send it server-side; for `ViewContent` and `AddToCart` the pragmatic choice is browser-only, which sidesteps the problem entirely.
### 3.3 What not to do
- **Do not send different `event_id` values and expect Meta to figure it out.** There is no fuzzy dedupe fallback you should rely on. `order_id` on Purchase provides an additional signal, but treat `event_id` parity as the mechanism and `order_id` as a backstop.
- **Do not send only the server event "to be safe."** You lose browser identifiers and top-of-funnel signal.
- **Do not suppress the Pixel when the server event succeeds.** Redundancy plus dedupe is the entire design; conditional firing recreates the fragility you are trying to remove.
- **Do not reuse an `event_id` across different `event_name` values.** `purchase_5541` and `initiatecheckout_5541` are different strings for a reason.
### 3.4 A minimum-viable split
| Event | Browser Pixel | Conversions API |
|---|---|---|
| ViewContent | ✅ | Optional |
| AddToCart | ✅ | Optional |
| InitiateCheckout | ✅ | Recommended |
| **Purchase** | ✅ | **✅ Required** |
Purchase is where server-side delivery matters most and where dedupe must be exactly right. Get Purchase correct first; extend upward afterward.
---
## 4. Preparing Customer Information for Server-Side Sending
Server events carry no identity unless you attach it. Meta matches on hashed identifiers in `user_data`, and the quality of that preparation determines whether your events are attributable at all.
### 4.1 Hash these — SHA-256, hex-encoded, lowercase output
| Field | Normalize before hashing |
|---|---|
| `em` (email) | Trim whitespace, lowercase. `Sam@Example.COM ` → `sam@example.com` |
| `ph` (phone) | Digits only, include country code, strip `+`, spaces, dashes, parentheses. `(361) 234-5678` US → `13612345678` |
| `fn` / `ln` | Trim, lowercase, remove punctuation. UTF-8 encoding. |
| `ct` (city) | Lowercase, remove spaces and punctuation. `San Diego` → `sandiego` |
| `st` (state) | Two-letter lowercase code. `California` → `ca` |
| `zp` (zip) | Lowercase, first 5 digits for US; strip spaces for other formats |
| `country` | Two-letter lowercase ISO 3166-1 alpha-2. `us` |
| `db` (date of birth) | `YYYYMMDD`. Cedar & Coil has no reason to collect this — skip it. |
| `external_id` | Your Shopify customer ID or a stable anonymous ID, hashed |
### 4.2 Do NOT hash these — send raw
`fbp`, `fbc`, `client_ip_address`, `client_user_agent`, `subscription_id`, `lead_id`, `order_id`, and all event-level parameters (`value`, `currency`, `content_ids`, `contents`).
Hashing a field that should be raw is a silent failure: the request returns HTTP 200 and the event is accepted, but the identifier never matches.
### 4.3 The rules that break implementations
1. **Normalize *then* hash. Always in that order.** `"Sam@Example.com "` and `"sam@example.com"` produce completely different hashes. A trailing space from a form field will quietly destroy match quality for that customer.
2. **Never send raw PII to the endpoint.** Hashing must happen on your server before the request is built. If you can read an email address in the outbound JSON, stop and fix it.
3. **Hash exactly once.** Double-hashing is a real and common bug in pipelines with multiple transformation layers.
4. **Omit empty fields; do not send hashes of empty strings.** A hash of `""` is a valid-looking 64-character string that matches nothing and can drag down your Event Match Quality.
5. **Capture `fbp` and `fbc` at the browser and carry them to the server.** This is the highest-leverage step for server-side match quality, because your backend cannot see cookies. Practical route on Shopify: read `_fbp` and `_fbc` in your custom pixel and write them into cart attributes so they arrive in the order payload. If a `fbclid` is present in the landing URL and no `_fbc` cookie exists yet, construct it as `fb.1.<timestamp_ms>.<fbclid>`.
6. **Pass the shopper's IP and user agent, not your server's.** If your webhook consumer sits behind a proxy or the data comes from a Shopify webhook, source these from the original browser context (captured client-side and carried through) rather than from the inbound webhook request.
7. **More identifiers is better than fewer — but only real ones.** Never synthesize, guess, or infer identity fields to raise a match-quality score.
### 4.4 What to send for the Arc Clip Lamp order flow
Shopify's order payload gives you email, phone (if collected), billing/shipping name, city, province code, zip, country code, and customer ID. That is a strong `user_data` object. Add `fbp` and `fbc` from cart attributes, and `client_ip_address` / `client_user_agent` from the browser capture. Send `external_id` for both logged-in and guest checkouts (hash the Shopify customer ID for the former, a stable first-party cookie ID for the latter).
---
## 5. Concrete Shopify Setup Path
### 5.1 Option A — Native "Facebook & Instagram by Meta" sales channel
Shopify's first-party Meta channel handles Pixel injection, server-side event forwarding, and catalog sync. Setup path:
1. Shopify admin → **Settings → Apps and sales channels → Shopify App Store** → add **Facebook & Instagram by Meta**.
2. Open the channel → **Settings → Data sharing**. Connect the correct Business portfolio, Page, Ad account, and Pixel/dataset.
3. Set **Customer data sharing** to **Maximum**. This is the level that turns on server-side event forwarding (Conversions API) in addition to browser events. "Standard" is browser-only.
4. Connect the product catalog so `content_ids` and catalog IDs align by construction.
5. **Remove any hardcoded Pixel snippet from `theme.liquid`, any legacy tracking app, and any duplicate custom pixel.** This is the step people skip, and it produces doubled events that will not deduplicate because the two sources generate different `event_id` values.
**Strengths:** deduplication, hashing, normalization, and catalog ID alignment are handled by Shopify and Meta jointly. It survives Shopify checkout changes. It respects Shopify's Customer Privacy API automatically. Zero infrastructure and zero maintenance.
**Limits:** you get the standard event set with standard parameters. You cannot easily add custom parameters, cannot send events from non-Shopify surfaces, cannot enrich with data from your CRM or subscription system, and you have limited visibility into the exact payloads being transmitted. Refund and cancellation handling is not under your control.
### 5.2 Option B — Custom implementation
A Shopify **custom pixel** (in the pixel sandbox) for browser events, plus your own server consuming `orders/paid` webhooks and calling the Conversions API directly.
**Strengths:** total control over payloads, `event_id` strategy, identity enrichment, and error handling. Extensible to future surfaces.
**Costs:** you own a production service with a secret, webhook HMAC verification, retries, idempotency, monitoring, and ongoing compatibility with Meta's Graph API versioning. You also own every hashing bug you introduce.
### 5.3 Recommendation for Cedar & Coil
**Start with Option A — the native Meta sales channel with Customer data sharing set to Maximum.**
The reasoning for a small single-SKU DTC store: the native channel gets Pixel + CAPI + deduplication + catalog alignment working correctly with essentially no engineering surface area, and the failure modes it eliminates (bad hashing, mismatched `event_id`, misaligned catalog IDs, missing consent handling) are precisely the ones that cost the most time to diagnose. Cedar & Coil has one product, one currency, and no pre-launch performance data — there is nothing yet that requires custom payloads.
**Adopt a hybrid later, when a specific need appears.** Concrete triggers to revisit: you need custom parameters for a segmentation strategy; you add subscriptions or a second sales surface; you need to send refunds or cancellations as negative signals; you need CRM-enriched identity. At that point, run the native channel for browser events and add your own server-side layer with deterministic `event_id` parity — or move fully custom.
**If you do run both, discipline is mandatory:** every custom event you add must share `event_name` and `event_id` with its native counterpart, or you will double-count.
### 5.4 Code sketch — server-side Purchase (custom implementation)
Illustrative Node/Express. Not production-hardened; treat as a structural reference.
```js
import express from "express";
import crypto from "crypto";
const app = express();
const PIXEL_ID = process.env.META_PIXEL_ID;
const ACCESS_TOKEN = process.env.META_CAPI_TOKEN; // system user token, server-side only
const API_VERSION = "v21.0";
const SHOPIFY_SECRET = process.env.SHOPIFY_WEBHOOK_SECRET;
// --- normalize, then hash. Omit empties entirely. ---
const sha256 = (v) => crypto.createHash("sha256").update(v, "utf8").digest("hex");
const hashEmail = (v) => v ? sha256(String(v).trim().toLowerCase()) : undefined;
const hashText = (v) => v ? sha256(String(v).trim().toLowerCase().replace(/[^\p{L}\p{N}]/gu, "")) : undefined;
const hashPhone = (v) => {
const digits = String(v || "").replace(/\D/g, ""); // country code included, no '+'
return digits ? sha256(digits) : undefined;
};
const hashZip = (v) => v ? sha256(String(v).trim().toLowerCase().replace(/\s/g, "").slice(0, 5)) : undefined;
const prune = (o) => Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined && v !== null && v !== ""));
// --- Shopify webhook HMAC verification ---
function verifyShopify(req, res, buf) {
const sent = req.get("X-Shopify-Hmac-Sha256") || "";
const calc = crypto.createHmac("sha256", SHOPIFY_SECRET).update(buf).digest("base64");
const a = Buffer.from(sent), b = Buffer.from(calc);
if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) throw new Error("bad hmac");
}
app.post("/webhooks/orders-paid",
express.raw({ type: "application/json", verify: verifyShopify }),
async (req, res) => {
res.sendStatus(200); // ack fast; Shopify retries on timeout
const order = JSON.parse(req.body.toString("utf8"));
// fbp / fbc / IP / UA captured by the custom pixel and written to cart attributes
const attrs = Object.fromEntries((order.note_attributes || []).map(a => [a.name, a.value]));
const ship = order.shipping_address || order.billing_address || {};
const user_data = prune({
em: hashEmail(order.email),
ph: hashPhone(order.phone || ship.phone),
fn: hashText(ship.first_name),
ln: hashText(ship.last_name),
ct: hashText(ship.city),
st: hashText(ship.province_code),
zp: hashZip(ship.zip),
country: hashText(ship.country_code),
external_id: order.customer?.id ? sha256(String(order.customer.id)) : undefined,
fbp: attrs._fbp, // RAW — never hashed
fbc: attrs._fbc, // RAW
client_ip_address: attrs._client_ip, // RAW, shopper's IP
client_user_agent: attrs._client_ua // RAW, shopper's UA
});
const contents = order.line_items.map(li => ({
id: String(li.variant_id), // MUST match catalog IDs
quantity: li.quantity,
item_price: Number(li.price)
}));
const payload = {
data: [{
event_name: "Purchase",
// Deterministic: the custom pixel computes the identical string on the
// confirmation page, so Meta collapses the browser and server copies.
event_id: `purchase_${order.id}`,
event_time: Math.floor(new Date(order.created_at).getTime() / 1000),
event_source_url: attrs._event_source_url || "https://cedarandcoil.com/checkout/thank-you",
action_source: "website",
user_data,
custom_data: {
currency: order.currency, // "USD"
value: Number(order.current_subtotal_price), // one definition, both transports
content_type: "product",
content_ids: contents.map(c => c.id),
contents,
num_items: contents.reduce((n, c) => n + c.quantity, 0),
order_id: String(order.id)
}
// opt_out: true // set when marketing consent was not granted (see §7)
}]
// test_event_code: "TEST12345" // ONLY while validating; remove before launch
};
const url = `https://graph.facebook.com/${API_VERSION}/${PIXEL_ID}/events`
+ `?access_token=${encodeURIComponent(ACCESS_TOKEN)}`;
const r = await fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)
});
const body = await r.json();
if (!r.ok) console.error("CAPI error", r.status, body); // queue for retry with backoff
else console.log("CAPI ok", body); // { events_received, messages, fbtrace_id }
});
app.listen(3000);
```
**Operational notes on this sketch**
- **Idempotency:** Shopify retries webhooks. Key on `order.id` in a short-lived store so you do not re-POST. Deterministic `event_id` protects reporting even if you do, but a resend is still wasted work.
- **Retries:** treat 5xx and network errors as retryable with exponential backoff; treat 4xx as a payload bug to fix, not to retry.
- **Never log the raw order payload** — it contains PII. Log hashes, IDs, and `fbtrace_id`.
- **Graph API versions expire.** Pin the version, and put a calendar reminder to review it.
- **Refunds:** send a `Purchase` with a negative `value` and the *original* `order_id`, using a distinct `event_id`, if you decide to feed refund signal back to Meta.
---
## 6. End-to-End Validation Before Scaling Spend
Work through these gates in order. Do not increase budget past a small test until gates 1–6 pass.
**Gate 1 — Test Events (browser).**
Events Manager → your dataset → **Test Events**. Open the store in a clean browser profile with the test code appended. Walk the Arc Clip Lamp funnel: product page → add to cart → checkout → complete a real order using Shopify's Bogus Gateway or a test-mode payment. Confirm `ViewContent`, `AddToCart`, `InitiateCheckout`, `Purchase` each appear exactly once with the expected parameters.
**Gate 2 — Test Events (server).**
Confirm the same Purchase appears with source **Server**. If it does not, check webhook delivery in Shopify admin → Notifications → Webhooks, and check your server logs for the CAPI response body — `events_received: 1` with warnings in `messages` is a partial success worth reading carefully.
**Gate 3 — Deduplication confirmed.**
In Test Events, the browser and server Purchase should appear as one event showing both connection methods, or the server copy should be flagged as deduplicated. After 24–48 hours of live traffic, check the dataset **Overview → Purchase → Connection method / deduplication** indicator. If Meta reports duplicates rather than deduplication, your `event_id` strings are not matching — log both values side by side and compare them literally, character for character.
**Gate 4 — Parameter and value integrity.**
Verify on a real test order:
- `value` is numeric and matches your chosen definition on **both** transports
- `currency` is `USD`
- `content_ids` are present on Purchase and identical to your catalog IDs
- No raw email, phone, or name appears anywhere in the outbound payload
- No hash of an empty string is being sent
**Gate 5 — Catalog alignment.**
Commerce Manager → Catalog → **Diagnostics**. Look specifically for content ID mismatch warnings. This can fail while every event count looks perfectly healthy.
**Gate 6 — Event Match Quality and diagnostics.**
Events Manager → dataset → **Diagnostics** tab. Resolve every error and every warning; several are severe but easy to miss (missing `event_source_url`, unverified domain, invalid parameter format, server event missing user data). Then check **Event Match Quality** per event. Treat EMQ as a diagnostic of your identifier pipeline, not as a performance metric and not as a target to game. If Purchase EMQ is low, the usual causes are missing `fbp`/`fbc`, a hashing normalization bug, or omitted email.
**Gate 7 — Volume reconciliation.**
After 3–7 days of live traffic, compare Shopify's order count for a fixed window against Meta's Purchase count for the same window (using Ads Manager with a matching date range and the dataset view, not attributed conversions). They will not match exactly — attribution windows, consent-denied events, and dedupe timing all create legitimate gaps. What you are looking for is a *stable, explainable* relationship, not a moving one. A Meta count materially **above** Shopify's order count is an alarm: it almost always means double-firing.
**Gate 8 — Ongoing monitoring.** Set up, before you scale:
- A weekly Diagnostics review
- An alert on your server for CAPI non-200 rates
- An alert if daily server Purchase count drops sharply or diverges from Shopify order count
- A re-validation checklist to run after **any** theme change, app install, or Shopify checkout update — these are the events that silently break pixels
**Also verify explicitly:** that no duplicate Pixel is firing (search the rendered page source for your Pixel ID and for `fbevents.js`; the Meta Pixel Helper extension will flag multiples), and that events still behave correctly in Safari with cross-site tracking prevention on and in a browser with an ad blocker enabled — the second case is exactly where your server events must carry the load.
---
## 7. Consent and Compliance
**Consent gates collection; it is not something you retrofit.** Hashing is not consent. Server-side delivery is not a way around a user's choice — sending a hashed email from your backend after a shopper declined marketing cookies is still processing their personal data, and regulators treat it that way.
**Use Shopify's Customer Privacy API as the single source of truth.** Shopify exposes consent state to pixels via `init.customerPrivacy` and the `visitorConsentCollected` event, with flags including `marketingAllowed`, `analyticsProcessingAllowed`, `preferencesProcessingAllowed`, and `saleOfDataAllowed`. Your custom pixel should read this state and gate firing on it, and your server-side path must receive the same signal — pass the consent state through cart attributes alongside `fbp`/`fbc` so the webhook consumer knows what it is allowed to do.
**When marketing consent is absent or denied:** do not send identifying `user_data`. If you send the event at all for aggregate measurement, set `opt_out: true` on the payload, which tells Meta not to use it for ad personalization or retargeting. For US state privacy laws, use Meta's Limited Data Use via the `data_processing_options` fields (`["LDU"]`) rather than inventing your own suppression logic.
**Deploy a consent management platform if Cedar & Coil serves the EU/UK.** Shopify's built-in banner can work for basic cases, but GDPR/ePrivacy generally require prior opt-in for advertising cookies, granular purposes, and equally easy withdrawal. Verify the CMP actually writes to Shopify's Customer Privacy API rather than only blocking scripts cosmetically.
**Contractual and policy obligations.** Using the Conversions API means accepting Meta's Business Tools Terms and, where applicable, the Customer Data Terms — including representations that you have a lawful basis to share the data. Update Cedar & Coil's privacy policy to disclose advertising measurement, the categories of data shared, and the recipients, and provide a working opt-out and data-deletion path. If you have or need a DPA with Meta, get it in place before launch, not after.
**Never send restricted or sensitive data.** Meta's terms prohibit health, financial account, sexual orientation, precise government identifiers, and similar special categories — including in hashed form, including in custom parameters. Nothing in the Arc Clip Lamp funnel should ever produce such data, so a simple allowlist of permitted `user_data` fields in your server code is cheap insurance.
**Data minimization and retention.** Send the identifiers you actually need for matching, and nothing else. Do not persist raw PII in your CAPI service; hash in memory and discard. Do not log payloads containing personal data. Set short retention on webhook queues and logs.
**Children and audience.** The stated audience is renters, students, and makers — confirm your targeting and any lookalike sourcing do not reach minors, and that no audience is built from a source lacking consent.
**Cross-border transfers.** If EU/UK personal data is involved, confirm the transfer mechanism in your Meta agreements is current, and document it.
---
## Rollout Sequence
1. Consolidate to one Pixel ID; remove legacy snippets and duplicate apps.
2. Verify the domain; configure AEM with Purchase at priority 1.
3. Deploy the CMP and confirm it writes real consent state to Shopify's Customer Privacy API.
4. Install the Meta sales channel; set Customer data sharing to **Maximum**; connect the catalog.
5. Run Gates 1–6 with test orders.
6. Launch a small test budget. Run Gates 7–8 for a week.
7. Only then scale, and re-run the checklist after any theme, app, or checkout change.
---
**Two closing cautions.** First, this guide deliberately makes no claim about how many conversions any configuration will recover, because that depends on your traffic mix, consent rates, and browser distribution — and Cedar & Coil has no campaign data to reason from. Measure your own baseline before and after. Second, verify each configuration step against Meta's current Conversions API documentation and Shopify's Web Pixels API documentation at implementation time; both platforms change their requirements, parameter sets, and API versions on their own schedule.