Guide · Tracking and data

Google Ads dynamic remarketing for Shopify: events and setup

How Google Ads dynamic remarketing works for a Shopify store: the product feed, the events and item ids it needs, the setup and tips for the campaign.

Updated · 8 min read

By the ROASaurus team

The short answer
  • Dynamic remarketing shows past visitors ads with the products they viewed or added to cart, built from your Merchant Center feed.
  • It needs three things: a product feed in Merchant Center, remarketing events (view_item, add_to_cart, purchase and others) with item ids, and a campaign that uses the feed.
  • Every event's item id must match the id in the feed exactly, with google_business_vertical set to retail; otherwise Google cannot show the product.
  • On Shopify, the feed ids often look like shopify_NL_1234_5678 (country, product id, variant id); your events must use the same format per market.
  • Segment visitors by how far they got (viewed, carted, bought), exclude recent buyers and judge the campaign on profit, not only on ROAS.

Most visitors leave a store without buying. Dynamic remarketing brings them back with ads that show the exact products they looked at, with current prices and images from your feed. This guide explains how it works in Google Ads, which events and ids a Shopify store must send, the setup step by step, and how to run the campaign so it earns its spend.

What dynamic remarketing is

Remarketing in Google Ads shows ads to people who visited your site before. Standard remarketing shows them the same ad, whatever they did. Dynamic remarketing builds each ad from your product feed, using the products the person viewed, added to cart or bought, and related products Google picks from the feed.

Standard remarketingDynamic remarketing
What the ad showsA general message or offerThe products the person viewed, plus related ones
What it needsA remarketing tag and an audienceThe tag with item ids, a Merchant Center feed and an audience
Where it runsDisplay, YouTube, Search listsDisplay, YouTube, Gmail and Discover inventory through Performance Max or Display campaigns with a feed
Creative workOne ad per messageTemplates; Google fills in products

Swipe the table sideways to see every column.

Google's names for the network change, but the idea stays: feed plus events plus audience, and Google assembles the ad.

How it works

FeedMerchant Center holds your products with ids, titles, prices and images.
EventsThe Google tag sends view_item, add_to_cart and purchase with the item ids.
AudiencesGoogle Ads groups visitors by event: viewers, cart abandoners, buyers.
AdsGoogle matches each person's item ids to the feed and builds the ad.
If the ids in the events do not exist in the feed, the chain stops at the last step: no product, no dynamic ad.

What you need before you start

  • A Google Merchant Center account with an approved product feed, linked to your Google Ads account.
  • The Google tag on every page, with consent handled through Consent Mode for visitors from the EEA, the UK and Switzerland.
  • Remarketing events with item ids that match the feed, sent from product, cart, checkout and purchase.
  • GA4 linked to Google Ads if you want to use GA4 audiences as well.
  • A check of Google's personalised advertising policy: some categories (health, for example) cannot be targeted with remarketing.

The events and parameters

For retail, Google reads the items array of standard ecommerce events. Each item needs an id that equals the feed's id and google_business_vertical: 'retail'. Add a value where Google can use it.

EventPageBuilds the audience
view_item_listCollection and search pagesCategory browsers
view_search_resultsSearch resultsSearchers
view_itemProduct pageProduct viewers
add_to_cartCart additionsCart abandoners
begin_checkoutCheckout startCheckout abandoners
purchaseOrder completedPast buyers (for exclusion or cross-sell)

Swipe the table sideways to see every column.

A retail remarketing event with the Google tag
gtag('event', 'view_item', {
  send_to: 'AW-123456789',
  value: 40.00,
  items: [{ id: 'shopify_NL_8123456789_44123456789', google_business_vertical: 'retail' }],
});

Item ids on Shopify

Which id format to use depends on how your feed is built. Shopify's Google & YouTube app creates feed ids in the form shopify_ plus the country code, the product id and the variant id, for example shopify_NL_8123456789_44123456789. Other feed apps use the SKU or the variant id. Look up a product in Merchant Center, copy its id, and make sure your events send exactly that. With Shopify Markets and one feed per country, the country part changes per market, so the events must use the country of the market the shopper is in.

Id check for one product, ROASaurus Demo StoreSample data
Merchant Center id (Netherlands feed)shopify_NL_8123456789_44123456789
Id sent by a theme snippet44123456789
MatchNo: the product cannot appear in the ad
Id sent after fixing the templateshopify_NL_8123456789_44123456789
MatchYes
Example data for a fictional product. Google Ads shows the share of events whose ids match the feed in the tag diagnostics of your remarketing data source.

Key steps to set up dynamic remarketing

  1. Set up your product feed

    Create or sync the feed in Merchant Center, fix disapprovals, and link Merchant Center to Google Ads.

  2. Install the remarketing events

    Send the events above with item ids and google_business_vertical from every product, cart and checkout page and from the purchase. On Shopify, use the Google & YouTube app, a data layer with Google Tag Manager, or a tracking app; use one source so events are not doubled.

  3. Check the data source

    In Google Ads, open Tools › Audience manager › Your data sources. Confirm the Google tag collects remarketing data and that the dynamic remarketing parameters are received.

  4. Create audience segments

    Google creates some lists automatically (all visitors, viewers, shopping cart abandoners, past buyers). Add your own with membership durations that fit your buying cycle.

  5. Create the campaign

    Use Performance Max with your feed and audience signals, or a Display campaign with the feed attached and the remarketing segments targeted.

  6. Build the ads

    Upload logos, images, headlines and descriptions. Google combines them with feed products into responsive display ads.

  7. Set budget and bidding

    Start with a budget you can judge after a few weeks and a bidding strategy based on conversion value.

Audience segments to create

A single "all visitors" list mixes people who glanced at one product with people who left a full cart at the payment step. Split them, so each gets its own message and bid. The durations are starting points; match them to how long your customers take to decide.

SegmentRuleMembershipUse
Cart and checkout abandonersadd_to_cart or begin_checkout, no purchase7 to 14 daysHighest bids; a reminder of the products, delivery and returns
Product viewersview_item, no add_to_cart14 to 30 daysThe viewed products and similar ones
Category browsersview_item_list only30 daysBestsellers from the categories they browsed
Recent buyerspurchase7 to 30 daysExclusion, unless you sell consumables
Past buyerspurchase180 to 540 daysCross-sell and replenishment, with a separate budget
Google needs a minimum number of active people in a list before it serves ads to it; small stores may need longer durations or fewer, broader segments.

Swipe the table sideways to see every column.

Tips for a successful dynamic remarketing campaign

  1. Write specific ad copy

    Speak to people who already know you: returns policy, delivery time, the reason to finish the order. Avoid generic slogans.

  2. Segment by intent

    Cart and checkout abandoners are closer to buying than product viewers. Separate them so you can bid and message differently.

  3. Exclude recent buyers

    Exclude people who bought in the last days, unless you sell consumables or want cross-sell.

  4. Cap the frequency

    Where the campaign type allows it, limit impressions per person so ads do not follow shoppers for weeks.

  5. Keep the feed fresh

    Out-of-stock products and old prices in ads cost clicks and trust. Sync the feed at least daily.

  6. Use good product images

    The image is most of the ad. Clean, consistent images on a plain background work across sizes.

  7. Test offers carefully

    A discount for cart abandoners can teach regular buyers to wait. Test it on one segment and compare margin, not only conversion rate.

  8. Measure incrementally

    Remarketing reaches people who might have bought anyway. Compare with a holdout or a lift test before you scale.

Measure it on profit

Remarketing campaigns often show high ROAS, because they reach people close to buying. Part of those sales would have come anyway, and remarketing orders can be heavy on discounts. Look at the profit of the orders the campaign gets credit for, and test incrementality with a holdout group or a geo test. Our glossary on ROI and CTR and the guide to ecommerce metrics cover the numbers to read.

Dynamic remarketing with ROASaurus

When you add Google Ads as a destination, the ROASaurus storefront script sends the dynamic remarketing events from the same script that tracks your conversions, so you do not need a second source for them. The option Send dynamic remarketing events from the storefront is on unless you untick it, and events go only to visitors whose consent allows tracking.

WhereWhat goes to Google Ads
Storefrontpage_view, view_item, view_item_list (collection and search result pages), view_search_results, add_to_cart and view_cart, with value, currency and items carrying the Merchant Center id and google_business_vertical: 'retail'
CheckoutThe purchase conversion with its items in the same id format, plus a begin checkout conversion if you add its label
Optional conversion labelsSecondary actions for page views, product views and cart adds, fired by the storefront
Optional Merchant Center IDConversions with cart data: the purchase also carries aw_merchant_id, the feed country and language, the discount and the items, so Google Ads can report gross profit per product from the feed's cost_of_goods_sold

The default item id is the Shopify Google & YouTube format, shopify_ plus country, product id and variant id. On the storefront the country is the market the shopper is in, so one feed per country matches; the purchase from the checkout uses the store's own country. If your feed uses SKUs, variant ids or product ids, set the item id template. Shopify's checkout runs outside the theme, so begin_checkout does not go to Google Ads as a remarketing event: checkout abandoners are the cart viewers and cart adders who did not buy.

In ROASaurusConnections › Tracking & destinations
  1. Add the Google Ads destination with the conversion id and purchase label.
  2. Leave "Send dynamic remarketing events from the storefront" ticked.
  3. Check the item id template: the default is the Merchant Center format; change it if your feed uses other ids.
  4. Optionally add the page view, product view and add-to-cart conversion labels, and your Merchant Center ID for conversions with cart data.
  5. In Google Ads, open Tools › Audience manager › Your data sources and check that the dynamic remarketing parameters arrive and match the feed. Check Data quality › Deliveries for Google Ads purchases.

Start freeOpen the live demo14-day trial of every feature, no credit card.

Sources

  1. Google Ads Help: Dynamic remarketing events and parameters
  2. Google Ads Help: Tag your website for dynamic remarketing
  3. Google for Developers: Dynamic remarketing
  4. Google for Developers: Consent mode

More guides on tracking and data · All guides

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is Google Ads dynamic remarketing?

A form of remarketing that shows past visitors ads built from your product feed, featuring the products they viewed or added to cart and related products.

What is the difference between standard and dynamic remarketing?

Standard remarketing shows the same ad to everyone on a list. Dynamic remarketing personalises each ad with products from your feed based on what the person did on your site.

What do I need to set up dynamic remarketing?

A Merchant Center feed linked to Google Ads, the Google tag sending ecommerce events with item ids and google_business_vertical, audience segments, and a Performance Max or Display campaign that uses the feed.

Which events does dynamic remarketing need?

For retail: view_item_list or view_search_results, view_item, add_to_cart, begin_checkout and purchase, each with an items array of ids that match the feed.

Why do my dynamic remarketing ads show no products?

Usually the item ids in the events do not match the feed ids, the feed is not linked or approved, or the audience is too small. Check the data source diagnostics in the audience manager.

How do I find the right item id on Shopify?

Open a product in Merchant Center and copy its id. Feeds from Shopify's Google & YouTube app use shopify_ plus country, product id and variant id; send exactly that from your events.

Is dynamic remarketing allowed under the GDPR?

It uses cookies and personal data for advertising, so in the EU it needs the visitor's consent. Pass the choice with Consent Mode and follow Google's personalised advertising policies.

How much does dynamic remarketing cost?

You pay per click or impression like other Google Ads campaigns; there is no fee for the feature. Judge it on the profit of incremental orders, not on the reported ROAS alone.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.