Shopify guideGuide10 min read

Retargeting Ads for Shopify: The Complete Guide

Retargeting ads bring back shoppers who already looked at your products. Here is how to set them up on Shopify with Meta and Google, how much to spend, and what your store needs so the second visit ends in a sale.

Retargeting card: pixel plus server events, buyers excluded and exact product shown, with two pixels on one store marked as a mistake
Clean tracking, separate audiences and a product page worth returning to are what make retargeting pay.

Key takeaways

  • Retargeting ads show your products again to people who already visited your store, added to cart or bought. On Shopify, the audiences come from the Meta pixel, the Google tag and the TikTok pixel that the official sales channel apps install.
  • Turn on Enhanced or Maximum data sharing in the Facebook & Instagram app so Shopify sends events through Meta's Conversions API as well as the pixel. Ad blockers can stop the pixel but not the server events.
  • Abandoned checkout emails come first and cost nothing. Shopify only counts a checkout as abandoned once the shopper has given an email, so retargeting ads are the only way to reach cart abandoners who never got that far.
  • Retargeting can't fix the page it sends people back to. If the product page, shipping cost or checkout made them leave once, the ad will bring them back to the same problem.
Who it is for
Shopify stores with steady traffic
Time needed
An afternoon to set up, a month to judge
What you need
Official ad apps and admin access

Someone taps an ad, looks at a $68 jacket, adds it to the cart and closes the tab when the bus arrives. Two days later the same jacket appears in their Instagram feed with a line about free returns. That second ad is retargeting, and for most Shopify stores it is the cheapest paid traffic they will ever buy, because the shopper has already chosen the product.

I don't run ad accounts. I work on the other side of the click: the product pages, offers, tracking and checkout that decide whether a returning shopper buys. This guide covers both halves, the setup inside Shopify and the ad platforms and what your store needs so the second visit converts. Platform steps were checked against Shopify, Meta and Google documentation on 7 November 2026.

What retargeting ads are

A retargeting ad is shown only to people who have already interacted with your business. The ad platform recognizes them because a tag on your store reported what they did: viewed a product, added to cart, started checkout or bought. Those events build an audience list, and you choose which list sees which ad.

The terms vary by platform. Meta calls the lists custom audiences and the product-level version Advantage+ catalog ads. Google used to call it remarketing and now groups these lists under "your data" segments. TikTok and Pinterest use their own pixels in the same way. The idea is identical everywhere: a smaller, warmer audience that already knows your products.

Two things limit retargeting. The first is size: you can only retarget as many people as visit your store, so retargeting budgets are small by nature. The second is consent. In the EEA and UK, Shopify's cookie banner only allows marketing pixels after a visitor agrees, so part of your traffic never joins a retargeting list.

Examples of retargeting ads that work

Each audience is at a different stage, so each needs a different message. These are the audiences I'd set up first on a Shopify store, with the ad that fits each one.

AudienceWho is in itWhat to show
Product viewersViewed a product, didn't add to cartThe exact product, plus reviews or a use case
Cart abandonersAdded to cart, didn't buyThe product in the cart, shipping and returns terms
Checkout abandonersStarted checkout, didn't payA reminder after your email, payment options
Past buyersBought in the last 30 to 180 daysRefills, accessories or the next product
Social engagersWatched your videos or engaged on InstagramA bestseller and your strongest proof
Email subscribersUploaded customer or subscriber listNew arrivals, launches, early access

The most effective format for product viewers and cart abandoners is usually the dynamic one, where the platform pulls the exact product from your catalog: Advantage+ catalog ads on Meta and dynamic remarketing on Google. You build one ad and each shopper sees what they looked at.

Set up tracking on Shopify first

Every retargeting audience depends on clean events. Most broken setups I see in store reviews have the same cause: an old pixel pasted into the theme years ago, firing next to the one the app installed, so every event counts twice. Fix tracking before you spend anything.

  1. Remove hard-coded pixels. Check theme.liquid and your old preferences for Meta, Google or TikTok code added by hand. Shopify's own Meta pixel guide says to remove a theme pixel before connecting the app, to avoid duplicate data.
  2. Install the official channels. Add Facebook & Instagram, Google & YouTube and, if you use it, TikTok from the Shopify App Store. Each one installs its pixel through Shopify's Web Pixels system.
  3. Turn on Meta data sharing. Go to Sales channels > Facebook & Instagram > Settings, open the data sharing settings, turn on customer data sharing and choose a level. Standard uses only the pixel. Enhanced and Maximum add the Conversions API, which sends events from server to server.
  4. Connect Google conversion tracking. In the Google & YouTube app, connect your Google Ads account. Google says the app maps Shopify events such as purchase, add_to_cart and begin_checkout to Google Ads conversion actions.
  5. Check the pixels. Open Settings > Customer events. Each app pixel has a Test option that opens the Shopify Pixel Helper, so you can browse, add to cart and watch the events fire.
  6. Set up consent. Go to Settings > Customer privacy and turn on the cookie banner for the regions where you need consent. Pixels then wait for consent before collecting marketing data.
Why both pixel and server events: Meta's developer documentation recommends running the Conversions API alongside the pixel. When both send the same event with the same event ID within 48 hours, Meta counts it once. Shopify's integration handles this for you, which is one more reason not to add a second pixel by hand. For the consent side, see my guide to cookie consent on Shopify.

Retargeting ads on Facebook and Instagram

Meta has two ways to retarget, and most stores need both.

Custom audiences. In Ads Manager, create a website custom audience from your pixel, using events such as AddToCart or Purchase and a time window. Meta's API allows a retention window of 1 to 180 days. Short windows (7 to 14 days) for cart abandoners keep the audience fresh. Longer windows work for past buyers of products people reorder.

Advantage+ catalog ads. These use your synced Shopify catalog. Meta matches the product IDs in your pixel events to the IDs in your catalog, then shows each person the items they viewed or added. Meta's own example audience is people who added to cart or viewed a product in the last day, excluding anyone who bought in the last two days. The Facebook & Instagram app keeps the catalog and the event IDs aligned, which is why it beats a feed built by hand for most stores.

A catch with Meta's newer campaigns: when Advantage+ audience is on, Meta treats your audiences as suggestions and can show ads to people outside them. That is fine for prospecting, but it is not retargeting. Meta's developer guide says that to keep spend on existing customers separate in new Advantage+ campaigns, you create one ad set for your existing-customer audience with audience expansion off, and a second ad set that excludes it. My guide to Meta ads for Shopify covers the full campaign setup.

Retargeting ads with Google

Google retargeting runs on the same Google tag the Google & YouTube app installs. There are three main routes:

  • Dynamic remarketing. Your Merchant Center feed supplies the products, and the tag links each visitor to the product IDs they viewed. Google's recommendation engine then builds display ads around those products.
  • Your data segments in Search and YouTube. You can bid differently, or show different ads, when a past visitor searches again or watches YouTube.
  • Performance Max audience signals. Your visitor and customer lists guide Performance Max, but they are signals, not limits. Google's setup guide suggests lists with more than 100 active users in the last 30 days.

For most Shopify stores, a well-fed Performance Max campaign already covers a lot of retargeting, because it serves across Search, YouTube, Display and Gmail with your product feed. My guides to setting up Performance Max and to Merchant Center explain the feed and campaign setup.

Abandoned cart retargeting, step by step

Abandoned cart retargeting works best as the second layer behind email. Shopify treats a checkout as abandoned when it stays incomplete for more than ten minutes after the customer has entered an email address. Those people can get your recovery email. Anyone who added to cart and left before checkout has no email on file, so ads are your only way back to them.

  1. Turn on abandoned checkout emails. Go to Apps > Messaging, open Automations and edit "Abandoned checkout emails by Shopify". Set when it sends and who receives it.
  2. Build a cart audience. On Meta, people who added to cart in the last 7 days, excluding purchasers. On Google, the equivalent data segment.
  3. Show the product they left. Use the catalog format so the ad shows the exact item and current price.
  4. Answer the reason they left. The usual reasons are cost, delivery time and doubt. Put shipping cost, delivery estimate and returns terms in the ad text.
  5. Cap the window. Most cart intent fades quickly. After 7 to 14 days, move people into a general product-viewer audience with a softer message.
  6. Exclude buyers fast. Purchase events must reach the platform, or customers keep seeing ads for what they already bought.

Be careful with discount codes in retargeting. If every cart abandoner gets 10% off, shoppers learn to abandon carts. If you do offer one, set it up as an automatic discount or a code that works first time, using my guide to Shopify discount codes.

How much to spend on retargeting

Retargeting budgets are capped by audience size, so start small and work from your margin, not from a benchmark. Here is a worked example with simple numbers.

Break-even retargeting budget for an example store

  • Average order$60Typical basket for this example store.
  • Profit before ads$33After product cost, shipping and payment fees (55%).
  • Monthly budget$450$15 a day for 30 days.
  • Orders to break even14$450 divided by $33, rounded up.
Illustrative numbers, not a benchmark. Your break-even ROAS is 1 divided by your margin: at 55%, about 1.8. Work out your own margin with the profit margin calculator.

If the campaign brings fewer than 14 orders it attributes to ads in a month, it is losing money on paper. Before you cut it, check two things: whether those shoppers would have bought anyway (test by pausing for a week), and whether the store is losing them on the way back.

What your store needs so retargeting converts

Retargeting brings back people who already said no once. The ad can remind them, but only the store can change their answer. These are the fixes I look for first:

  • Land on the exact product and variant. Catalog ads do this by default. Hand-built ads often link to the home page, which throws away the intent.
  • Show the full cost early. Unexpected shipping at checkout is a classic reason to leave. Put the delivery cost or free-shipping threshold on the product page.
  • Put reviews near the buy button. Returning shoppers are often comparing. Photos from real buyers answer more doubts than a star rating alone.
  • Keep prices and stock in step. An ad showing a sold-out size or an old price breaks trust. The official apps sync this, so check for sync errors after big catalog changes.
  • Make checkout fast. Shop Pay, Apple Pay and Google Pay let a returning shopper pay without typing card details on a phone. My checkout optimization guide covers the settings.
  • Check mobile speed. Most retargeting impressions are on phones in social apps. A slow product page wastes the click.

Common retargeting mistakes

  1. Two pixels on one store. Duplicate events inflate conversions and confuse the algorithm.
  2. No purchase exclusion. Buyers see ads for the product they just bought, which wastes budget and annoys customers.
  3. One audience, one ad. A viewer and a checkout abandoner need different messages.
  4. Calling an Advantage+ audience retargeting. With expansion on, much of the spend may reach new people.
  5. Retargeting without fixing the page. If the conversion problem is on the site, more retargeting only repeats it.
  6. Ignoring frequency. A small audience shown the same ad many times a week burns out. Refresh creative and keep windows short.

Retargeting checklist for Shopify

  • Old theme pixels removed, official apps installed.
  • Meta data sharing set to Enhanced or Maximum.
  • Google Ads conversion tracking connected in the Google & YouTube app.
  • Events tested in Settings > Customer events.
  • Cookie banner on for regions that need consent.
  • Abandoned checkout emails switched on.
  • Separate audiences for viewers, carts, checkouts and buyers.
  • Purchasers excluded from cart and viewer ads.
  • Catalog ads linking to the exact product and variant.
  • Shipping cost, returns and reviews visible on product pages.

Next steps

Start with tracking: one pixel per platform, server events on, purchases excluded. Then set up the four core audiences and one catalog ad for each. Give it a month before judging, and compare attributed orders with the break-even number from your own margin.

If returning shoppers still aren't buying, the problem is usually on the store, not in the ad account. Run through my Shopify CRO audit checklist, or send me your store and I'll look at the product pages and checkout your retargeting traffic lands on. CRO work starts from $500, and the first review is free.

Free tools

Check your own store

Free, no sign-up. Each one runs a part of this guide for you.

Frequently asked questions

What are retargeting ads?

Retargeting ads are shown only to people who already interacted with your business, such as visiting a product page, adding to cart or buying. A pixel or tag on your store records those actions and builds audience lists in the ad platform. You then show each list an ad that fits what they did.

How do I set up retargeting ads on Shopify?

Install the official Facebook & Instagram, Google & YouTube and TikTok apps, which add each platform pixel through Shopify. Turn on Enhanced or Maximum data sharing for Meta, connect Google Ads conversion tracking, and test events in Settings > Customer events. Then build audiences and campaigns in each ad platform.

Do retargeting ads on Facebook still work with privacy changes?

Yes, but audiences are smaller than they used to be. Consent rules and ad blockers stop some browser events, which is why Shopify can send events through the Conversions API as well as the pixel. Meta recommends running both together.

What is abandoned cart retargeting?

It means showing ads to people who added a product to the cart but did not buy. Shopify can email people who abandoned checkout after entering an email address. Ads are the only way to reach shoppers who left before giving one.

How long should a retargeting window be?

Short windows of 7 to 14 days suit cart and checkout abandoners, because intent fades quickly. Product viewers can stay in a list for around 30 days. Meta allows website audiences of up to 180 days, which suits past buyers of products people reorder.

Is retargeting the same as remarketing?

In practice, yes. Meta uses the words custom audiences and retargeting, while Google used to call it remarketing and now calls these lists your data segments. Both mean showing ads to people who already know your business.

Sources

  1. Meta data-sharing, Shopify Help Center
  2. App pixels, Shopify Help Center
  3. Abandoned checkouts, Shopify Help Center
  4. Deduplicate pixel and server events, Meta for Developers
  5. Dynamic audiences, Meta for Developers
  6. About dynamic remarketing for retail, Google Ads Help
Ashraf Siddik

Written by Ashraf Siddik

I'm a Shopify developer and CRO specialist. I have built and improved Shopify stores since 2018, completed more than 1,000 projects, and hold a 4.96 average rating across 719 client reviews.

About me · Client reviews

Free 3‑point store review

  1. 1
    Send your storeTakes about a minute
  2. 2
    I review it by handOn mobile and desktop, not by a tool
  3. 3
    Get three ranked fixesBy email, free, with no obligation

“Very professional and deep understanding of the Shopify ecosystem. Friendly and proactive communication. Delivered on time with good quality”

Verified client, United Kingdom
4.96 from 719 client reviews

Get your free review

Takes about a minute. No obligation.

Your email is used only to reply about your store. No newsletter, never sold. Privacy note