Connecting Drupal Commerce to Instacart Ads
Drupal Commerce is self-hosted commerce inside a CMS built for complex content, which means the store is one part of a much larger site you fully control. Instacart sits between a brand and a shopper who is buying from a grocer, which puts two intermediaries between your advertising and the purchase — and neither of them shares the customer with you. The join between them succeeds or fails on one thing: whether Instacart's internal basket match reaches the Drupal Commerce order before the conversion happens, because Instacart Ads can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Drupal Commerce and Instacart Ads: separate channels, shared catalog
There is no event to send: Instacart Ads measures grocery baskets inside Instacart. For brands with grocery distribution, the only link is the catalog, so keep a GTIN or UPC field on each Drupal product variation as the shared key. Report Instacart-attributed sales beside Drupal direct orders, never summed.
Instacart Ads measures grocery baskets inside Instacart, bought from retailers that stock your products. A Drupal Commerce store selling directly to consumers has no event to send it, and Instacart has no way to accept one. If you are not a brand with grocery distribution, this pair does not apply at all.
If you are, the only real link between the two is the product catalog. Brands that sell direct on Drupal and through grocers on Instacart often let product data drift: a pack size renamed on the website, a UPC missing from the product variation, a discontinued flavor still live in Instacart's catalog. Keeping a GTIN or UPC field on each Drupal product variation and treating it as the shared key makes it much easier to check that what you advertise on Instacart matches what you actually ship.
Measurement stays separate. Instacart reports attributed sales from its own data; Drupal reports your direct orders. A shopper who sees an Instacart ad and then buys on your site will not show up as an Instacart conversion, and that is fine. Report the two side by side, never added together, and judge Instacart on its own incremental sales rather than on any effect you think you see in Drupal revenue.
Drupal Commerce → Instacart Ads · what breaks
Why this join usually fails — Drupal Commerce → Instacart Ads
- 01
Instacart's internal basket match never reaches Drupal Commerce
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
- 02
Configurable workflow states nobody agreed on
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
- 03
Out-of-stock spend that still reports impressions
Retail media keeps serving while the item is unavailable at the retailer. The impressions are real, the clicks are real, and the sales cannot happen. Nothing in the ad platform surfaces this — it is visible only in retailer stock data.
- 04
Nothing reconciles afterwards
Instacart's reporting is the only source. Reconcile against retailer sell-through and stock data, which is where the real explanation for a weak week usually lives.
Drupal Commerce → Instacart Ads · the fix
What working looks like — Drupal Commerce → Instacart Ads
Instacart's internal basket match on every order
Conversions arriving in Instacart Ads
Attributed sales appear in Instacart's reporting under its own model and window.
Reconciled against the source
Drupal Commerce → Instacart Ads · architecture
How Drupal Commerce and Instacart Ads actually connect
- 1
Drupal Commerce holds the truth
You own the database, so the truth is exactly as good as the query. Pin down which order states count as revenue before comparing anything — Drupal's workflow states are configurable per install, so no two sites agree by default.
- 2
Instacart Ads needs a click to match
Correct product matching to Instacart's catalogue. If your items are mismapped or out of stock at the retailers your ads reach, spend continues and the attributed sales do not.
- 3
The identifier is the bridge
Instacart's internal basket match, captured at the visit and carried into the Drupal Commerce order.
- 4
The event source decides reliability
Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
- 5
Deduplication at the destination
Nothing on your side to deduplicate. The real hazard is double-counting across retail media networks that each claim the same household's grocery basket.
Drupal Commerce → Instacart Ads · normal or broken
Working vs. broken, side by side — Drupal Commerce → Instacart Ads
Normal, not a fault
Instacart's internal basket match present on the order
Sent from the Drupal Commerce order placement hook
Deduplicated correctly
Nothing on your side to deduplicate. The real hazard is double-counting across retail media networks that each claim the same household's grocery basket.
Reconciles with the source
Actually broken
Instacart's internal basket match missing on most records
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
Sent from the browser
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
Counted twice, or not at all
Retail media keeps serving while the item is unavailable at the retailer. The impressions are real, the clicks are real, and the sales cannot happen. Nothing in the ad platform surfaces this — it is visible only in retailer stock data.
Nobody has reconciled it
Drupal Commerce → Instacart Ads · diagnose
Diagnostic order — Drupal Commerce → Instacart Ads
- 01
Count orders carrying Instacart's internal basket match
- 02
Follow one real conversion end to end
- 03
List the order states in use and agree which count as revenue
Do this before any technical work — it resolves more Drupal Commerce disputes than any code change.
- 04
Cross-check ad delivery against in-stock rates by retailer
This is the most common and most expensive failure in retail media, and it is an operations problem rather than a bidding one.
- 05
Read the match rate, not the success message
Instacart's reporting is the only source. Reconcile against retailer sell-through and stock data, which is where the real explanation for a weak week usually lives.
Drupal Commerce → Instacart Ads · prove
How it gets proven — Drupal Commerce → Instacart Ads
Source of truth
Drupal's commerce_order records in your own database, filtered to completed states.
- Instacart's internal basket match confirmed present on a live order.
- Attributed sales reported separately, cross-checked against in-stock rates for the same period.
- Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.
Drupal Commerce → Instacart Ads · free audit
What we check in the free audit
- Count orders carrying Instacart's internal basket match
- Follow one real conversion end to end
- List the order states in use and agree which count as revenue
- Cross-check ad delivery against in-stock rates by retailer
- Read the match rate, not the success message
Checked against
Drupal's commerce_order records in your own database, filtered to completed states.
Free30 minutesNo obligation
Drupal Commerce → Instacart Ads · when not to buy
When you don't need this — Drupal Commerce → Instacart Ads
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry Instacart's internal basket match.
- If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
- Brands without grocery distribution have nothing to advertise here, and the catalogue work is the whole prerequisite.
Drupal Commerce → Instacart Ads · what we deliver
What gets built — Drupal Commerce → Instacart Ads
Identifier capture into Drupal Commerce
Capture the identifier and persist it as order field data through a hook on order placement, server-side, so it never depends on what the cache served.
Event source: the Drupal Commerce order placement hook
Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
Dispatch to Instacart Ads
No conversion dispatch. Like other retail media, the integration is catalogue accuracy plus a reporting discipline.
Reversals where they exist
Order state transitions to refunded or cancelled are recorded and can drive reversals.
Written guarantee
95%+ tracking accuracy
Measured against Drupal's commerce_order records in your own database, filtered to completed states.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Drupal Commerce → Instacart Ads questions, answered
No. Instacart Ads only measures purchases made inside Instacart from participating retailers.
Keep a GTIN or UPC on each Drupal product variation so the catalog matches Instacart's, and report Instacart sales in their own column.
Almost always because Instacart's internal basket match never reached the Drupal Commerce order. Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run. Measure coverage before debugging the dispatch.
Instacart attributes ad exposure to items added to a basket inside its own app. There is no identifier of yours anywhere in the chain, and the shopper's relationship is with Instacart and the retailer, not with you. You are buying visibility on a shelf you do not own.
The Drupal Commerce order placement hook. Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
Instacart's reporting is the only source. Reconcile against retailer sell-through and stock data, which is where the real explanation for a weak week usually lives.
More on Drupal Commerce → Instacart Ads
- Drupal Commerce → Google AdsConnecting Drupal Commerce to Google Ads
- Drupal Commerce → Microsoft AdsConnecting Drupal Commerce to Microsoft Ads
- Drupal Commerce → Apple Search AdsConnecting Drupal Commerce to Apple Search Ads
RELATED GUIDES
Where Drupal Commerce → Instacart Ads fits in the rest of your tracking
- Sanity → Instacart AdsConnecting Sanity to Instacart Ads
- Concrete CMS → Instacart AdsConnecting Concrete CMS to Instacart Ads
- Statamic → Instacart AdsConnecting Statamic to Instacart Ads
- Drupal Commerce → DV360Connecting Drupal Commerce to Display & Video 360
- Drupal Commerce → Walmart ConnectConnecting Drupal Commerce to Walmart Connect
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Sitecore → Instacart AdsConnecting Sitecore to Instacart Ads
- AEM → Instacart AdsConnecting Adobe Experience Manager to Instacart Ads
Free · 30 min
Get Drupal Commerce and Instacart Ads joined properly
Free30 minutesNo obligation
