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.
- 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 remarketing | Dynamic remarketing | |
|---|---|---|
| What the ad shows | A general message or offer | The products the person viewed, plus related ones |
| What it needs | A remarketing tag and an audience | The tag with item ids, a Merchant Center feed and an audience |
| Where it runs | Display, YouTube, Search lists | Display, YouTube, Gmail and Discover inventory through Performance Max or Display campaigns with a feed |
| Creative work | One ad per message | Templates; 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
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.
| Event | Page | Builds the audience |
|---|---|---|
view_item_list | Collection and search pages | Category browsers |
view_search_results | Search results | Searchers |
view_item | Product page | Product viewers |
add_to_cart | Cart additions | Cart abandoners |
begin_checkout | Checkout start | Checkout abandoners |
purchase | Order completed | Past buyers (for exclusion or cross-sell) |
Swipe the table sideways to see every column.
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.
| Merchant Center id (Netherlands feed) | shopify_NL_8123456789_44123456789 |
|---|---|
| Id sent by a theme snippet | 44123456789 |
| Match | No: the product cannot appear in the ad |
| Id sent after fixing the template | shopify_NL_8123456789_44123456789 |
| Match | Yes |
Key steps to set up dynamic remarketing
- Set up your product feed
Create or sync the feed in Merchant Center, fix disapprovals, and link Merchant Center to Google Ads.
- 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.
- 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.
- 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.
- 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.
- Build the ads
Upload logos, images, headlines and descriptions. Google combines them with feed products into responsive display ads.
- 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.
| Segment | Rule | Membership | Use |
|---|---|---|---|
| Cart and checkout abandoners | add_to_cart or begin_checkout, no purchase | 7 to 14 days | Highest bids; a reminder of the products, delivery and returns |
| Product viewers | view_item, no add_to_cart | 14 to 30 days | The viewed products and similar ones |
| Category browsers | view_item_list only | 30 days | Bestsellers from the categories they browsed |
| Recent buyers | purchase | 7 to 30 days | Exclusion, unless you sell consumables |
| Past buyers | purchase | 180 to 540 days | Cross-sell and replenishment, with a separate budget |
Swipe the table sideways to see every column.
Tips for a successful dynamic remarketing campaign
- Write specific ad copy
Speak to people who already know you: returns policy, delivery time, the reason to finish the order. Avoid generic slogans.
- Segment by intent
Cart and checkout abandoners are closer to buying than product viewers. Separate them so you can bid and message differently.
- Exclude recent buyers
Exclude people who bought in the last days, unless you sell consumables or want cross-sell.
- Cap the frequency
Where the campaign type allows it, limit impressions per person so ads do not follow shoppers for weeks.
- Keep the feed fresh
Out-of-stock products and old prices in ads cost clicks and trust. Sync the feed at least daily.
- Use good product images
The image is most of the ad. Clean, consistent images on a plain background work across sizes.
- 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.
- 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.
| Where | What goes to Google Ads |
|---|---|
| Storefront | page_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' |
| Checkout | The purchase conversion with its items in the same id format, plus a begin checkout conversion if you add its label |
| Optional conversion labels | Secondary actions for page views, product views and cart adds, fired by the storefront |
| Optional Merchant Center ID | Conversions 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.
Connections › Tracking & destinations- Add the Google Ads destination with the conversion id and purchase label.
- Leave "Send dynamic remarketing events from the storefront" ticked.
- Check the item id template: the default is the Merchant Center format; change it if your feed uses other ids.
- Optionally add the page view, product view and add-to-cart conversion labels, and your Merchant Center ID for conversions with cart data.
- 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
- Google Ads Help: Dynamic remarketing events and parameters
- Google Ads Help: Tag your website for dynamic remarketing
- Google for Developers: Dynamic remarketing
- Google for Developers: Consent mode