For Shopify
Consentry: consent-gated server-side tracking for Shopify
Shopify conversion events go to Meta CAPI and GA4 from the server, and only to the destinations the shopper consented to. Every decision is logged, and the database sits under Cloudflare's EU jurisdiction.
Consent decided per destination, on the server
A cookie banner collects the shopper's choice. Server-side tracking sends conversion events to Meta and GA4. In many stores nothing ties the two together. Consentry puts one check between them. A small pixel passes each event to the Consentry relay together with the shopper's consent at that moment. The relay asks one question per destination: does the consent include the category you tied to Meta, and the one you tied to GA4? Only a yes sends the event. Every answer, yes or no, is written to a log you can open in the Shopify admin.
How it works
- 1
The shopper makes a choice in a cookie banner that records consent through Shopify's Customer Privacy API, for example Shopify's own banner.
- 2
The Consentry pixel picks up product views, add to cart, checkout start and completed checkout, and posts each one with the current consent to the Consentry relay on Cloudflare.
- 3
The relay checks consent separately for Meta and for GA4, skips anything already sent, and forwards the rest to the Meta Conversions API and the GA4 Measurement Protocol.
- 4
Each decision lands in the audit log with its status, and the Activity box in the app counts forwarded and blocked events.
What you get
- A consent check per destination, with the category for Meta and for GA4 chosen by you (marketing and analytics by default).
- Four events: view_item, add_to_cart, begin_checkout and purchase, sent to Meta as ViewContent, AddToCart, InitiateCheckout and Purchase.
- A second purchase path through Shopify's orders/create webhook, gated on the consent captured at checkout.
- Your Meta CAPI token and GA4 API secret encrypted at rest with AES-GCM and never shown again in the admin.
- An audit log with one row per event and destination, plus Shopify's data request, customer deletion and shop deletion webhooks.
Screens



The four events it sends
Consentry listens to four Shopify customer events: product_viewed, product_added_to_cart, checkout_started and checkout_completed. They become view_item, add_to_cart, begin_checkout and purchase, the names GA4 uses for its recommended ecommerce events, so nothing needs renaming on the GA4 side. Meta gets its own standard names: ViewContent, AddToCart, InitiateCheckout and Purchase. Each event carries the value, the currency and the products with ID, name, quantity and price. Checkout events also carry the shopper's email, phone and billing details, which are hashed before they go to Meta. Page views, searches and other customer events are not sent.
Which consent opens which destination
In the app you pick, for each destination, the consent category it needs: marketing, analytics, preferences or sale_of_data. The defaults are marketing for Meta and analytics for GA4. The pixel itself runs only after the shopper allows analytics. If they decline analytics, Shopify does not start the pixel, so nothing about that visit reaches Consentry and there is no row for it in the log. If they allow analytics but not marketing, the event reaches the relay, goes to GA4 and is logged as blocked for Meta.
What the log shows for each event
Every event creates one row per destination, so a single add to cart gives two rows: one for Meta and one for GA4. Each row holds the time, the event name, the event ID, the destination, whether analytics and marketing consent were given, and one status. sent means the destination accepted the event. blocked_no_consent means the consent did not include the required category. not_configured means you have not entered credentials for that destination. duplicate means the same event ID already went there. no_consent_record means an order arrived but no consent was captured at checkout. error keeps the destination's reply, for example a rejected token. The admin shows the twelve latest decisions and totals for forwarded and blocked events.
Purchases when the browser beacon is lost
An ad blocker or a closed tab can stop the purchase beacon from the browser. For that case Consentry also listens to Shopify's orders/create webhook, which comes from Shopify's servers. When checkout starts, the relay stores the shopper's consent and browser IDs under the checkout token. When the order is created, the webhook looks up that record and applies the same consent, so the order is forwarded only if the shopper allowed it at checkout. If there is no record, for example because the shopper declined analytics and the pixel never ran, nothing is sent and the log says no_consent_record. Both paths use the checkout token as the event ID, so one purchase goes out once.
Sent once per destination
Before forwarding, the relay checks the log for an earlier sent row with the same event ID and destination. If it finds one, the new copy is logged as duplicate and not sent. Meta also receives the event ID with every event. GA4 does not: the Measurement Protocol call carries the event name, value, currency and items, but no event ID. If your store also sends the same ecommerce events to GA4 from the browser, GA4 will see both, so choose one source for those events.
What Meta and GA4 receive
Meta gets the event name, time, event ID, page address, value, currency and product contents. For matching it gets email, phone, first and last name, city, country and postcode, each trimmed, lower-cased and hashed with SHA-256, plus the _fbp and _fbc cookies when they exist and, for events from the browser, the shopper's IP address and user agent. GA4 gets the event with value, currency and items, keyed by the client ID from the _ga cookie, or by Shopify's own browser ID when the store has no _ga cookie. GA4 receives no email or other contact details.
Data sale opt-outs outside Europe
Shopify reports a separate sale of data signal. Outside the EU, Norway, Iceland, Liechtenstein, the UK and Switzerland, a shopper who opted out of the sale of their data also loses marketing consent in Consentry, so Meta is blocked for them even if the banner allowed marketing. Inside those countries the signal is off by default and carries no opt-out meaning, so Consentry ignores it there. The country is the one Cloudflare sees for the request, and the check happens before anything is stored or forwarded, so the order webhook inherits it too.
What is stored, and for how long
The audit log rows described above, with a SHA-256 hash of the shopper's email instead of the email itself, are kept for 90 days. The checkout consent record with the GA4 client ID and Meta browser IDs is kept for 30 days. Results of customer data requests are kept for 90 days, and the log of access to stored data for 365 days. A cleanup removes older rows while the app is in use: on a share of incoming events and every time you open the app. The database is Cloudflare D1, created under Cloudflare's EU jurisdiction; requests are handled at the Cloudflare location nearest the shopper. Your Meta CAPI token and GA4 API secret are encrypted with AES-GCM before they are saved.
Customer data requests and deletion
Consentry handles the three privacy webhooks every Shopify app has to support. When Shopify forwards a customer's data request, Consentry collects every log row tied to that customer's email hash and shows it in the app under Customer data requests, ready for you to pass on. A customer deletion request removes that customer's log rows. When you uninstall, forwarding stops at once and your settings stay in place in case you reinstall. Shopify's shop deletion request, sent 48 hours after the uninstall, then removes everything stored for the store: settings, log, checkout records, data request results and access log entries.
A record of who touched the data
Every authorised call that reads or changes stored data, from the Consentry app or from a Shopify webhook, adds a row to an access log with the time, the method, the path and the store. The log is kept for 365 days. It is an internal record: the app has no screen for it.
Setup in the Shopify admin
Installing the app adds the Consentry pixel to your store; you will find it under Settings > Customer events. In the app you fill in two sections and press Save. Under Meta Conversions API: the Meta Pixel ID, the CAPI access token and the consent category Meta needs. Under GA4 Measurement Protocol: the GA4 Measurement ID, the API secret and the consent category GA4 needs. A destination with saved credentials shows a Configured badge, and its secret field stays empty with a hint to leave it blank to keep the current value. You can set up just one destination; the other is then logged as not_configured. No theme edits and no tag manager container are needed.
Who it is for
Shopify stores that advertise on Meta or measure with GA4, have shoppers who make a consent choice, and want server-side events to follow that choice. It fits a store that already uses Shopify's cookie banner or another banner that records consent through Shopify's Customer Privacy API.
One plan, billed by Shopify
Consentry costs 49 USD a month with a 14-day free trial, billed through your Shopify invoice. The plan page is Shopify's own: a store without an active plan is sent there when it opens the app. If the subscription is cancelled, expires or is frozen, the relay stops forwarding for that store until the plan is active again.
What it does not do
Consentry has no cookie banner of its own: it reads the choice your banner records in Shopify. It sends to Meta and GA4 only, not to other ad or analytics platforms. It sends four events, not page views or searches. A shopper who allows marketing but declines analytics sends nothing, because the pixel needs analytics consent to run. The relay accepts up to 600 events per minute per store and turns away the rest. The app admin is in English.
See it on a test store
A recording from a Shopify test store. The shopper allows analytics but declines marketing, views a product and adds it to the cart. In the Consentry admin the two events show up as sent to GA4 and blocked for Meta.
Frequently asked
- How is this different from a cookie banner?
- A banner collects the choice in the browser. Consentry applies that choice on the server, separately for Meta and for GA4, before an event reaches either of them, and logs the decision.
- Will it double-count my conversions?
- Consentry never sends the same event ID to the same destination twice, and the browser purchase and the webhook purchase share one ID. Meta receives that ID with each event. GA4 does not, so do not also send the same ecommerce events to GA4 from the browser.
- What happens when a shopper declines everything?
- Shopify does not start the Consentry pixel, so nothing from that visit is sent or stored. If that shopper still places an order, the order webhook finds no consent record, sends nothing and logs no_consent_record.
- Can the pixel break my storefront?
- It runs in Shopify's strict sandbox for app pixels, and a failed send is dropped quietly, so the shopper never sees an error.