Connecting Magento to Amazon Ads
Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. Amazon Ads spans two entirely different situations, and most guidance discusses them as though they were one. The join between them succeeds or fails on one thing: whether a click identifier only for off-Amazon destinations reaches the Magento order before the conversion happens, because Amazon Ads can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Magento and Amazon Ads: your store orders vs Amazon's checkout
Sales Amazon ads drive to your Amazon listing close in Amazon's checkout and never reach Magento, so per-order attribution of those is impossible. For Amazon DSP traffic to your storefront, capture the DSP identifier at landing into the quote, copy it to the order, and fire from the placement observer with grand total and currency.
Many Magento merchants also sell the same catalog on Amazon, and that is where the confusion starts. Sponsored ads and Amazon Attribution campaigns that send shoppers to your Amazon listing close the sale in Amazon's checkout. Your Magento sales_order table never sees it, and no observer you write can. If the goal is per-order attribution of Amazon-completed sales, stop here.
The buildable case is Amazon DSP driving traffic to the Magento storefront. Capture the identifier your DSP setup appends at landing, before full-page cache matters, store it on the quote, copy it onto the order when it is placed, and fire the conversion from the order placement observer with the grand total and order currency. Check whether your Amazon account takes a server-side upload for off-Amazon conversions or only a tag; if only a tag, the success page is cached and the tag must not depend on server-rendered order data.
Halo effects run both ways. DSP spend lifts Amazon listing sales and Amazon presence lifts branded search to Magento. Neither shows up per order. Compare Magento revenue against Amazon Attribution's aggregated sales for the same weeks rather than trying to merge them.
Magento → Amazon Ads · what breaks
Why this join usually fails — Magento → Amazon Ads
- 01
A click identifier only for off-Amazon destinations never reaches Magento
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
- 02
Full-page cache between the visitor and your code
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
- 03
Per-order attribution promised on Amazon-completed sales
It does not exist and cannot be built. Amazon owns the checkout and does not release the join. Any proposal offering per-order attribution on sales completing inside Amazon is describing something unavailable.
- 04
Nothing reconciles afterwards
For off-Amazon conversions, reconcile normally against your own records. For on-Amazon sales, Amazon Attribution is aggregated and delayed by construction — it cannot be reconciled per order and is not meant to be.
Magento → Amazon Ads · the fix
What working looks like — Magento → Amazon Ads
A click identifier only for off-Amazon destinations on every order
Conversions arriving in Amazon Ads
Off-Amazon conversions appear against the campaign. On-Amazon sales appear in Amazon's aggregated attribution reporting, delayed.
Reconciled against the source
Magento → Amazon Ads · architecture
How Magento and Amazon Ads actually connect
- 1
Magento holds the truth
You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.
- 2
Amazon Ads needs a click to match
For off-Amazon destinations, an event with a value and the click identifier. For on-Amazon conversions, nothing — the measurement is not yours to do and Amazon Attribution provides aggregated reporting instead.
- 3
The identifier is the bridge
A click identifier only for off-Amazon destinations, captured at the visit and carried into the Magento order.
- 4
The event source decides reliability
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
- 5
Deduplication at the destination
Only relevant for off-Amazon conversions where both a tag and a server event exist. For on-Amazon purchases the question does not arise, because you are not measuring the conversion at all.
Magento → Amazon Ads · normal or broken
Working vs. broken, side by side — Magento → Amazon Ads
Normal, not a fault
A click identifier only for off-Amazon destinations present on the order
Sent from the Magento order placement observer
Deduplicated correctly
Only relevant for off-Amazon conversions where both a tag and a server event exist. For on-Amazon purchases the question does not arise, because you are not measuring the conversion at all.
Reconciles with the source
Actually broken
A click identifier only for off-Amazon destinations missing on most records
Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.
Sent from the browser
The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.
Counted twice, or not at all
It does not exist and cannot be built. Amazon owns the checkout and does not release the join. Any proposal offering per-order attribution on sales completing inside Amazon is describing something unavailable.
Nobody has reconciled it
Magento → Amazon Ads · diagnose
Diagnostic order — Magento → Amazon Ads
- 01
Count orders carrying a click identifier only for off-Amazon destinations
- 02
Follow one real conversion end to end
- 03
Place a test order as an anonymous visitor through cache
Not as an admin, which bypasses it. If the order data is missing on the cached path, caching is your cause.
- 04
Establish which Amazon product and which destination you are running
On-Amazon and off-Amazon are different measurement problems, and conflating them wastes the entire engagement.
- 05
Read the match rate, not the success message
For off-Amazon conversions, reconcile normally against your own records. For on-Amazon sales, Amazon Attribution is aggregated and delayed by construction — it cannot be reconciled per order and is not meant to be.
Magento → Amazon Ads · prove
How it gets proven — Magento → Amazon Ads
Source of truth
Magento's sales order records in your own database, for the same window and order status set.
- A click identifier only for off-Amazon destinations confirmed present on a live order.
- The ad product and destination confirmed in writing before any build, so the right measurement question is being answered.
- Order data confirmed populated on an order placed through a fully warmed cache.
Magento → Amazon Ads · free audit
What we check in the free audit
- Count orders carrying a click identifier only for off-Amazon destinations
- Follow one real conversion end to end
- Place a test order as an anonymous visitor through cache
- Establish which Amazon product and which destination you are running
- Read the match rate, not the success message
Checked against
Magento's sales order records in your own database, for the same window and order status set.
Free30 minutesNo obligation
Magento → Amazon Ads · when not to buy
When you don't need this — Magento → Amazon Ads
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry a click identifier only for off-Amazon destinations.
- If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
- If all your Amazon spend drives to Amazon listings, there is no conversion tracking build here — only a reporting exercise in Amazon's own tools.
Magento → Amazon Ads · what we deliver
What gets built — Magento → Amazon Ads
Identifier capture into Magento
Capture the identifier and persist it as order data through an observer on order placement, server-side, so it never depends on what the cache served.
Event source: the Magento order placement observer
Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
Dispatch to Amazon Ads
Conversion upload for off-Amazon destinations. For on-Amazon sales, Amazon's own attribution reporting is the only view.
Reversals where they exist
Credit memos are recorded against the original order and should reduce the reported figure.
Written guarantee
95%+ tracking accuracy
Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Magento → Amazon Ads questions, answered
No. Amazon Attribution measures ads that send shoppers to Amazon listings. Magento orders from Amazon DSP traffic need off-Amazon conversion tracking instead.
From the order placement observer, server-side, if your account supports upload. A success-page tag behind full-page cache can silently miss orders.
Almost always because a click identifier only for off-Amazon destinations never reached the Magento order. Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one. Measure coverage before debugging the dispatch.
This is the distinction that decides everything. Sponsored formats driving to an Amazon listing produce conversions inside Amazon's checkout — no click identifier reaches you and no per-order join is available to anyone. Amazon DSP driving to your own site is an ordinary integration where a click identifier lands on your page and can be captured like any other network's. Establish which you are running before anything else.
The Magento order placement observer. Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.
For off-Amazon conversions, reconcile normally against your own records. For on-Amazon sales, Amazon Attribution is aggregated and delayed by construction — it cannot be reconciled per order and is not meant to be.
More on Magento → Amazon Ads
- Amazon Ads · Lead → booked callHow to track lead to booked call for Amazon Ads
- Amazon Ads · Booked call → closed wonHow to track booked call to closed won for Amazon Ads
- Amazon Ads · Free trial → paidHow to track free trial to paid for Amazon Ads
RELATED GUIDES
Where Magento → Amazon Ads fits in the rest of your tracking
- Amazon Ads · BeautyAmazon Ads conversion tracking for beauty brands
- Amazon Ads · Furniture ecommerceAmazon Ads conversion tracking for furniture ecommerce brands
- Amazon Ads × Ecommerce OrdersHow to reconcile Amazon Ads against your store's order table
- Amazon Ads · Add to cart → purchaseHow to track add to cart to purchase for Amazon Ads
- Braintree → Amazon AdsConnecting Braintree to Amazon Ads
- Magento → Google AdsConnecting Magento to Google Ads
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Shopify POS → Amazon AdsConnecting Shopify POS to Amazon Ads
Free · 30 min
Get Magento and Amazon Ads joined properly
Free30 minutesNo obligation
