Adding Buy on Amazon buttons to a Shopify store
Written by The Pixamp Team
You want a Buy on Amazon button on your Shopify product pages. The button is trivial. The hard part is keeping the conversion signal alive after the shopper leaves for Amazon.
Why add a Buy on Amazon button to a Shopify store?
Plenty of shoppers trust Amazon's checkout, Prime shipping, and returns more than a store they have never bought from. Give them the retailer they already prefer and conversion rises. Amazon's Brand Referral Bonus averages about 10% on sales you send in, which sweetens the math.
Now for the catch. A raw link to an Amazon listing is a one-way door. The click leaves Shopify, the sale happens on Amazon, and your Meta pixel records a click followed by silence. This is the same blind spot behind off-site ROAS: you know the ad spend to the cent, Amazon knows the revenue, and nothing joins them.
So you have two jobs at once. Send the shopper to Amazon, and capture the buyer-intent signal before they go.
Where should the button go on the product page?
Placement decides whether the button gets used at all. Put it where the decision happens, next to the price and the add-to-cart control, not buried below the fold.
A few patterns work well:
- Primary retailer, single button. If most demand goes to Amazon, make Buy on Amazon the main CTA and keep add-to-cart as the secondary option.
- Dual buttons. Offer both, with clear labels: Add to cart and Buy on Amazon side by side.
- Retailer picker. For brands selling on several retailers, show Buy on Amazon, Buy on Walmart, and Buy on Target as a small row. The same pattern covers all three.
- Out-of-stock fallback. When your own inventory runs dry, swap the disabled add-to-cart for a live retailer button so the visit still converts somewhere.
That last case matters more than it sounds. A page that would otherwise bounce keeps selling when your website can't deliver in time, because the shopper lands on a listing that is in stock.
Styling the button to match your theme
A button that looks bolted on gets ignored. Match your Shopify theme's existing CTA: the same radius, height, font, and color tokens your add-to-cart already uses.
Two rules keep it clean. First, inherit the theme's button class instead of hard-coding pixel values, so the button tracks any future theme change. Second, label the destination plainly. "Buy on Amazon" outperforms a generic "Buy now" because the shopper knows exactly where the tap leads and why they would want it.
Here is the shape of a themed button that inherits Dawn's styling and carries a data attribute for tracking:
<a
href="https://www.amazon.com/dp/B0EXAMPLE"
class="button button--primary"
data-retailer="amazon"
data-product-id="{{ product.id }}"
rel="nofollow"
>
Buy on Amazon
</a>Keep rel="nofollow" on outbound retailer links. There is no reason to leak page authority to a listing you do not control.
What happens to tracking when the shopper leaves?
This is where a plain link fails. The moment the browser navigates to Amazon, Shopify's session ends and Meta's pixel loses the thread. Nothing on Amazon's side reports the purchase back to your ad account.
Amazon Attribution can tag the click, but it reports inside Amazon's console on its own delay, and it does not feed Meta's delivery. The signal Meta needs is a server-side event fired at the click-through, sent through the Conversions API before the shopper is gone. That event is the buyer-intent signal the algorithm uses to find more people who head to a retail checkout, not people who only click.
The comparison below is blunt.
| Plain Amazon link | UTM on the link | Server-side click event | |
|---|---|---|---|
| Sends shopper to Amazon | Yes | Yes | Yes |
| Survives the navigation | No | Partial | Yes |
| Reaches Meta's Conversions API | No | No | Yes |
| Feeds Meta's delivery | No | No | Yes |
| Works for Walmart and Target too | Yes | Yes | Yes |
A UTM tells your analytics a click happened. It never reaches Meta as a conversion, so delivery keeps chasing clickers.
Adding the button without a checkout rebuild
You do not need to re-platform or touch your Shopify checkout. The button is an addition to the product template, and the tracking rides along with it.
Pixamp sends your Meta ad traffic to retailers like Amazon and Walmart, then returns the buyer-intent signals to Meta so campaigns keep learning even when the sale happens off-site. On Shopify, you connect Meta Business Manager with one OAuth click, drop a retailer button on any product page styled to match your theme, and run ads as usual. Mobile shoppers land inside the Amazon app, already signed in, one tap from checkout.
Each click-through fires a server-side event to your existing pixel through the Conversions API, so the signal survives iOS privacy settings and ad blockers. Setup is three steps and you can be live in under an hour. Signals start flowing back within 48 hours, after which Meta steers delivery toward retail buyers. The first 1,000 clicks are free.
Where to start
- Website: www.pixamp.io. What Pixamp does, pricing, and the FAQ. First 1,000 clicks free, no card required.
- How it works: www.pixamp.io/#how-it-works. The three-step setup: connect Meta Business Manager, add a retailer button, launch. Live in under an hour.
- Book a demo: www.pixamp.io/#contact. A 20-minute walkthrough on a real Shopify product page, with the founding team.
The button is the easy part. Keeping the signal is what makes the traffic pay off, and on Shopify that is an afternoon of setup.
