Connecting Drupal Commerce to Apple Search 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. Apple Search Ads sells App Store placement, which means it lives entirely inside Apple's privacy framework and behaves unlike every other destination here. The join between them succeeds or fails on one thing: whether no user-level click identifier reaches the Drupal Commerce order before the conversion happens, because Apple Search 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 Apple Search Ads: only if there is an app
This applies only if your Drupal Commerce backend also serves an iOS app. Apple Search Ads attributes installs in the app, with post-install purchases reported through your mobile measurement partner, not Drupal. Drupal should flag app-originated orders with an order field. Never send web orders to Apple Search Ads.
Apple Search Ads sells App Store placement. A Drupal Commerce store that only exists on the web has nothing to advertise there and nothing to send, and no amount of server-side work changes that. Read this pair as relevant only if the same store also ships an iOS app.
That does happen with Drupal: the commerce backend stays in Drupal and a native app talks to it through Drupal's APIs, so orders placed in the app become commerce_order records like web orders do. In that setup, Apple Search Ads attribution happens inside the app at install, through Apple's attribution token, and post-install purchases are reported through your mobile measurement partner, not from Drupal directly. What Drupal should do is mark which orders came from the app, as an order field set by the API call, so web and app revenue can be separated in reconciliation.
Do not try to send web orders to Apple Search Ads or to join a web customer to an install. Apple gives you no per-user identifier to join on, results are aggregated and delayed, and a web order placed after an App Store visit is not something Apple reports. Budget Apple Search Ads on campaign-level install and in-app results, and keep Drupal web orders in their own column.
Drupal Commerce → Apple Search Ads · what breaks
Why this join usually fails — Drupal Commerce → Apple Search Ads
- 01
No user-level click identifier 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
Expecting per-user attribution that does not exist
Teams arrive expecting a click ID to join against and there is not one. Apple's framework is aggregate by design, with thresholds and delays, and no vendor can engineer around it.
- 04
Nothing reconciles afterwards
Apple Search Ads reports at campaign level with built-in delay and privacy thresholds. Reconciling it per user against your own records is not possible by design; compare install and post-install volumes at aggregate level over a settled window instead.
Drupal Commerce → Apple Search Ads · the fix
What working looks like — Drupal Commerce → Apple Search Ads
No user-level click identifier on every order
Conversions arriving in Apple Search Ads
Results appear in Apple Search Ads reporting at campaign or keyword level, aggregated and delayed by design rather than by fault.
Reconciled against the source
Drupal Commerce → Apple Search Ads · architecture
How Drupal Commerce and Apple Search 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
Apple Search Ads needs a click to match
Apple Search Ads needs the install and post-install events reported through its supported attribution path. There is no offline conversion upload in the sense the other platforms mean it, and expecting one is the usual source of wasted effort.
- 3
The identifier is the bridge
No user-level click identifier, 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
Deduplication is largely not your problem here, because you are not sending duplicate user-level events — Apple aggregates. What matters instead is not double-counting an install across your own MMP and Apple's reporting.
Drupal Commerce → Apple Search Ads · normal or broken
Working vs. broken, side by side — Drupal Commerce → Apple Search Ads
Normal, not a fault
No user-level click identifier present on the order
Sent from the Drupal Commerce order placement hook
Deduplicated correctly
Deduplication is largely not your problem here, because you are not sending duplicate user-level events — Apple aggregates. What matters instead is not double-counting an install across your own MMP and Apple's reporting.
Reconciles with the source
Actually broken
No user-level click identifier 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
Teams arrive expecting a click ID to join against and there is not one. Apple's framework is aggregate by design, with thresholds and delays, and no vendor can engineer around it.
Nobody has reconciled it
Drupal Commerce → Apple Search Ads · diagnose
Diagnostic order — Drupal Commerce → Apple Search Ads
- 01
Count orders carrying no user-level click identifier
- 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
Check whether your reporting expectations match Apple's framework
If someone has promised per-user joins on App Store installs, that is the problem — not the implementation.
- 05
Read the match rate, not the success message
Apple Search Ads reports at campaign level with built-in delay and privacy thresholds. Reconciling it per user against your own records is not possible by design; compare install and post-install volumes at aggregate level over a settled window instead.
Drupal Commerce → Apple Search Ads · prove
How it gets proven — Drupal Commerce → Apple Search Ads
Source of truth
Drupal's commerce_order records in your own database, filtered to completed states.
- No user-level click identifier confirmed present on a live order.
- Aggregate install and post-install volumes reconciled over a settled window, with the framework's delay stated.
- Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.
Drupal Commerce → Apple Search Ads · free audit
What we check in the free audit
- Count orders carrying no user-level click identifier
- Follow one real conversion end to end
- List the order states in use and agree which count as revenue
- Check whether your reporting expectations match Apple's framework
- 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 → Apple Search Ads · when not to buy
When you don't need this — Drupal Commerce → Apple Search Ads
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry no user-level click identifier.
- If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
- If you have no iOS app, this destination does not apply at all — and if you do, budget for aggregate reporting rather than the per-order joins the rest of this library describes.
Drupal Commerce → Apple Search Ads · what we deliver
What gets built — Drupal Commerce → Apple Search 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 Apple Search Ads
Attribution through Apple's own APIs, with post-install events reported through your mobile measurement partner where you use one.
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 → Apple Search Ads questions, answered
No. Apple Search Ads attributes app installs and in-app activity through Apple's own framework, not web purchases.
Through the app and your mobile measurement partner, not from Drupal. Have Drupal mark app-placed orders with a field so you can reconcile them separately.
Almost always because no user-level click identifier 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.
This is the important difference and most guidance glosses it. Apple does not hand you a per-user click identifier to join against. Attribution runs through Apple's own APIs and privacy frameworks, which return campaign-level and aggregated results with deliberate delay and thresholds. You get an attribution token at install and campaign-level reporting afterwards — not a click ID you can put on a customer record.
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.
Apple Search Ads reports at campaign level with built-in delay and privacy thresholds. Reconciling it per user against your own records is not possible by design; compare install and post-install volumes at aggregate level over a settled window instead.
More on Drupal Commerce → Apple Search Ads
- Squarespace → Apple Search AdsConnecting Squarespace Commerce to Apple Search Ads
- Flow → Apple Search AdsConnecting Flow Commerce to Apple Search Ads
- Stripe → Apple Search AdsConnecting Stripe to Apple Search Ads
RELATED GUIDES
Where Drupal Commerce → Apple Search Ads fits in the rest of your tracking
- Craft → Apple Search AdsConnecting Craft CMS to Apple Search Ads
- Sanity → Apple Search AdsConnecting Sanity to Apple Search Ads
- AEM → Apple Search AdsConnecting Adobe Experience Manager to Apple Search Ads
- Drupal Commerce → LinkedInConnecting Drupal Commerce to LinkedIn Ads
- Drupal Commerce → SnapchatConnecting Drupal Commerce to Snapchat
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Umbraco → Apple Search AdsConnecting Umbraco to Apple Search Ads
- Webflow → Apple Search AdsConnecting Webflow to Apple Search Ads
Free · 30 min
Get Drupal Commerce and Apple Search Ads joined properly
Free30 minutesNo obligation
