Dynamic remarketing allows you to show ads to people who have visited your website, featuring the exact products they viewed. Instead of
generic ads, users see personalized ads with:
- Product images they viewed
- Product names and prices
- "You recently viewed..." messaging
- Special offers on products they added to cart but didn't purchase
Benefits:
- 🎯 Higher click-through rates (2-3x standard remarketing)
- 💰 Better conversion rates (products they already showed interest in)
- 🤖 Automated - Google dynamically generates ads from your product feed
- 📊 Better ROI on ad spend
---
Prerequisites
✅ Before you start, ensure you have:
1. Google Ads Account with admin access
2. Google Tag Manager container with admin access
3. Google Ads Conversion Tracking assuming already set up
4. Product Feed uploaded to Google Merchant Center (for dynamic ads)
5. Updated tracking code deployed
---
Step 1: Create GTM Variables
You need to create 3 new GTM variables to capture the dynamic remarketing parameters.
1.1: Create "Remarketing - Page Type" Variable
1. In GTM, go to Variables → New
2. Click Variable Configuration
3. Select Data Layer Variable
4. Configure:
- Data Layer Variable Name: ecomm_pagetype
- Data Layer Version: Version 2
- Set Default Value: ☑️ (checked)
- Default Value: other
5. Name the variable: Remarketing - Page Type
6. Click Save
What this does: Tells Google Ads what type of page the user is on (product, cart, purchase, other)
---
1.2: Create "Remarketing - Product ID" Variable
1. In GTM, go to Variables → New
2. Click Variable Configuration
3. Select Data Layer Variable
4. Configure:
- Data Layer Variable Name: ecomm_prodid
- Data Layer Version: Version 2
- Set Default Value: ☐ (unchecked)
5. Name the variable: Remarketing - Product ID
6. Click Save
What this does: Captures which product(s) the user viewed/added to cart/purchased
---
1.3: Create "Remarketing - Total Value" Variable
1. In GTM, go to Variables → New
2. Click Variable Configuration
3. Select Data Layer Variable
4. Configure:
- Data Layer Variable Name: ecomm_totalvalue
- Data Layer Version: Version 2
- Set Default Value: ☐ (unchecked)
5. Name the variable: Remarketing - Total Value
6. Click Save
What this does: Captures the value of products viewed/added/purchased (used for bid optimization)
---
2.1: Create the Remarketing Tag
1. In GTM, go to Tags → New
2. Click Tag Configuration
3. Select Google Ads Remarketing
4. Configure the tag:
Example Conversion ID:
16XXXXXXX317
Custom Parameters:
Click + Add Row for each of these:
Parameter Name | Parameter Value (Variable) |
ecomm_pagetype | {{Remarketing - Page Type}} |
ecomm_prodid | {{Remarketing - Product ID}} |
ecomm_totalvalue | {{Remarketing - Total Value}} |
Advanced Settings:
- ☑️ Enable conversion linker
- ☐ Do NOT check "Enable dynamic remarketing" (we're doing it manually with custom parameters)
5. Name the tag: Google Ads - Dynamic Remarketing
---
2.2: Set Up the Trigger
1. Click Triggering
2. Click + to create a new trigger
3. Choose Trigger Type: All Pages
4. Name the trigger: All Pages
5. Click Save
Why All Pages? Dynamic remarketing tracks users across your entire site to build comprehensive audiences.
---
2.3: Save and Preview
1. Click Save on the tag
2. Click Preview in GTM
3. A new tab will open with GTM Debug mode active
---
Step 3: Test Your Setup
3.1: Test Product Detail Page (view_item)
1. Navigate to any product page (e.g., a bike product)
2. In GTM Debug panel, check:
- ✅ Google Ads - Dynamic Remarketing tag fired
- ✅ Event view_item appears in the Summary
3. Click on the view_item event
4. Look for these variables:
Remarketing - Page Type: "product"
Remarketing - Product ID: "12345" (actual product ID)
Remarketing - Total Value: 599.99 (actual price)
Expected Result: All three variables should have values.
---
3.2: Test Add to Cart (add_to_cart)
1. On the same product page, click "Add to Cart"
2. In GTM Debug panel, check:
- ✅ Google Ads - Dynamic Remarketing tag fired again
- ✅ Event add_to_cart appears
3. Check variables:
Remarketing - Page Type: "cart"
Remarketing - Product ID: "12345"
Remarketing - Total Value: 1199.98 (price × quantity)
Expected Result: Page type changes to "cart", value reflects quantity.
---
3.3: Test Purchase Page
1. Complete a test purchase (or visit success page with an existing order)
2. In GTM Debug panel, check:
- ✅ Google Ads - Dynamic Remarketing tag fired
- ✅ Event purchase appears
3. Check variables:
Remarketing - Page Type: "purchase"
Remarketing - Product ID: ["12345", "67890"] (array of IDs)
Remarketing - Total Value: 2599.97 (total order value)
Expected Result: Page type is "purchase", Product ID is an array (for multiple items).
---
3.4: Test Other Pages (Homepage, Category, etc.)
1. Visit homepage or category page
2. In GTM Debug panel, check:
- ✅ Google Ads - Dynamic Remarketing tag still fires
- ✅ No specific event (just pageview)
3. Check variables:
Remarketing - Page Type: "other"
Remarketing - Product ID: undefined (no product)
Remarketing - Total Value: undefined (no value)
Expected Result: Page type defaults to "other", product fields are undefined.
---
Step 4: Publish Your GTM Container
Once testing is successful:
1. Click Submit in GTM
2. Version Name: Added Google Ads Dynamic Remarketing
3. Description: Implemented ecomm_pagetype, ecomm_prodid, and ecomm_totalvalue parameters for dynamic remarketing
4. Click Publish
---
Step 5: Create Audiences in Google Ads
Now create remarketing audiences based on user behavior.
5.1: Access Audience Manager
1. Log into Google Ads
2. Click Tools & Settings (wrench icon)
3. Under Shared Library, click Audience Manager
4. Click + New Audience
5. Select Website visitors
---
5.2: Create "Product Viewers" Audience
Audience Name: Product Viewers - Last 30 Days
Rules:
- Users who visited a page where:
- ecomm_pagetype equals product
- In the last: 30 days
Why: Target users who viewed any product but didn't purchase.
---
5.3: Create "Cart Abandoners" Audience
Audience Name: Cart Abandoners - Last 7 Days
Rules:
- Users who visited a page where:
- ecomm_pagetype equals cart
- AND did NOT visit a page where:
- ecomm_pagetype equals purchase
- In the last: 7 days
Why: Target users who added to cart but didn't complete purchase (high intent!).
---
5.4: Create "Recent Purchasers" Audience (Exclusion)
Audience Name: Recent Purchasers - Last 7 Days
Rules:
- Users who visited a page where:
- ecomm_pagetype equals purchase
- In the last: 7 days
Why: Exclude recent buyers from seeing product ads (but keep for upsell campaigns).
---
5.5: Create "High-Value Viewers" Audience
Audience Name: High-Value Product Viewers - Last 30 Days
Rules:
- Users who visited a page where:
- ecomm_pagetype equals product
- ecomm_totalvalue greater than 1000 (£1000+ products)
- In the last: 30 days
Why: Target users interested in premium products (higher bid strategy).
---
5.6: Create "Specific Product Viewers" Audience (Example: E-bikes)
Audience Name: Electric Bike Viewers - Last 30 Days
Rules:
- Users who visited a page where:
- ecomm_pagetype equals product
- ecomm_prodid contains specific product IDs for e-bikes
- In the last: 30 days
Why: Show e-bike specific ads to users interested in that category.
---
6.1: Set Up Product Feed (If Not Done)
1. In Google Merchant Center, upload your product feed
2. Ensure feed includes:
- id (matches your ecomm_prodid values)
- title
- description
- image_link
- price
- availability
6.2: Create Display Campaign
1. In Google Ads, click + New Campaign
2. Goal: Sales
3. Campaign Type: Display
4. Campaign Subtype: Standard Display Campaign
5. Check ☑️ Use a data feed for personalized ads
6. Select your Merchant Center product feed
6.3: Configure Ad Group
1. Bidding: Target ROAS (Return on Ad Spend)
2. Budget: Start with £20-50/day
3. Audiences: Add your created audiences:
- Primary: Cart Abandoners - Last 7 Days (bid higher)
- Secondary: Product Viewers - Last 30 Days
- Exclude: Recent Purchasers - Last 7 Days
6.4: Create Dynamic Ads
1. Click Ads & extensions → Ads → +
2. Choose Responsive display ad
3. Enable Use a data feed
4. Google will automatically create ads using:
- Products from your feed
- Matching products users viewed (via ecomm_prodid)
Ad Customization:
- Headline: "You Recently Viewed..."
- Description: "Still interested? Get 10% off today!"
- Call to Action: "Shop Now"
---
7.1: Check Audience Growth
1. Go to Audience Manager
2. Check each audience is growing
3. Wait 24-48 hours for initial population
Expected Audience Sizes (varies by traffic):
- Product Viewers: 1,000 - 10,000+
- Cart Abandoners: 100 - 1,000+
- Recent Purchasers: 50 - 500+
---
7.2: Monitor Campaign Performance
Track these metrics in Google Ads:
| View-through conversions > Users who saw ad, didn't click, but converted later
| Click-through conversions > Direct conversions from clicking ads
| ROAS > Aim for 400%+ (£4 revenue per £1 spent)
| CPA > Compare to other campaigns
---
Troubleshooting
Problem: Audiences Not Populating
Solution:
1. Check GTM is published (not just in preview)
2. Verify tags are firing in GTM Debug
3. Wait 24-48 hours for Google to process data
4. Check Google Ads tag is linked to the correct account
---
Problem: Variables Show "undefined"
Solution:
1. Check variable names match exactly (case-sensitive):
- ecomm_pagetype (not ecommPagetype)
- ecomm_prodid (not ecommProdId)
2. Verify events are firing (view_item, add_to_cart, purchase)
3. Check browser console for JavaScript errors
---
Problem: Product IDs Don't Match Feed
Solution:
1. Check your Merchant Center product feed
2. Ensure id field in feed matches ecomm_prodid from tracking
3. Format must be identical (e.g., "12345" vs "SKU-12345")
---
Problem: Dynamic Ads Show Wrong Products
Solution:
1. Verify ecomm_prodid captures correct product IDs
2. Check product feed is approved in Merchant Center
3. Ensure products are in stock and available
4. Wait 24-48 hours for Google's algorithm to learn
---
Advanced: Audience Combinations
Create these advanced audiences for better targeting:
High-Intent Repeat Viewers
ecomm_pagetype = "product"
AND user visited same product 2+ times
In last 7 days
Bid: 150% of base bid
Cart Abandoners + High Value
ecomm_pagetype = "cart"
AND ecomm_totalvalue > 500
NOT ecomm_pagetype = "purchase"
In last 3 days
Bid: 200% of base bid (very high intent!)
Browse Abandoners (Category Viewers)
ecomm_pagetype = "other"
NOT ecomm_pagetype = "product"
NOT ecomm_pagetype = "purchase"
In last 14 days
Bid: 50% of base bid (lower intent, broader awareness)
---
Summary Checklist
✅ GTM Setup:
- Created 3 remarketing variables (pagetype, prodid, totalvalue)
- Created Google Ads Remarketing tag
- Set trigger to "All Pages"
- Tested in Preview mode
- Published GTM container
✅ Google Ads Setup:
- Created remarketing audiences (product viewers, cart abandoners, etc.)
- Set up Merchant Center product feed
- Created dynamic remarketing campaign
- Added audiences to ad groups
- Created responsive dynamic ads
✅ Monitoring:
- Checked audiences are populating (wait 24-48 hours)
- Verified tags firing correctly
- Monitoring ROAS and conversions
- Optimizing bids based on performance
---
Support
If you run into issues:
1. Check GTM Debug: Ensure tags fire and variables populate
2. Check Google Ads Tag Assistant: Verify remarketing tag loads
3. Check Merchant Center: Ensure product feed is approved
4. Wait 48 hours: Google needs time to process and populate audiences
---
Your dynamic remarketing is now ready to drive higher conversions and ROAS! 🚀