WooCommerce9 min read5 views

WooCommerce Google Ads view_item_list tracking with GTM

Track WooCommerce category views in Google Ads with GTM4WP, correct GTM triggers, feed-matched remarketing items and Preview checks.

Watch on YouTube

Jump to the code

The short answer

Track WooCommerce category views in Google Ads by using GTM4WP's view_item_list data-layer event to trigger the right tag. Google warns against conversion-action labels on remarketing tagssupport.google.com. This guide is for store owners and implementers who need to check event data before choosing remarketing or separate conversion reporting.

  • If GTM4WP already provides the event, reuse it rather than adding a second data-layer script.
  • Use view_item_list as the exact GTM Custom Event name.
  • Keep the remarketing label separate from a conversion-action label.
  • Steps and settings checked against Google and GTM4WP documentation on 25 October 2026.

Ask an assistant

ChatGPTClaudePerplexity

FREE CALL

30 MIN

Meta stopped counting your leads? Get them counted again.

  1. Pick a time
  2. Check your Meta account with Hassan
  3. See what to do next

On a free 30-minute call, Hassan checks your Meta account with you and shows you what to do next.

Book my free recovery callFree 30-minute call with Hassan.

Not ready to talk? Run a free check

How do I track WooCommerce category views in Google Ads?

Check each list event separately: GTM4WP's list-event code can split products into batches and supplies no event-level list valueraw.githubusercontent.com. Compare the items in each batch with the category page before configuring the tag. A label such as View Item List in the interface is not a substitute for the actual data-layer event name.

The video shows the older plugin and tag setup; use the current written steps below for event names, data fields and tag settings.

What access do I need for this setup?

You or whoever manages the store needs access to WordPress plugin settings, the intended GTM workspace and the Google Ads tag details.

1. Identify the test store and existing senders

  1. Use a staging store and test GTM container for these changes.
  2. Record any plugin or tag that already sends the same action.

Done when you can open the plugin settings and GTM workspace and identify the destination Ads account.

How do I connect WooCommerce to GTM4WP?

Use GTM4WP by Thomas Geigerwordpress.org to load the web container and expose WooCommerce events.

2. Configure the plugin

  1. Install and activate GTM4WP on the staging store if it is not already installed.
  2. In its settings, enter the test container ID.
  3. Enable container output.
  4. In the WooCommerce section, turn on Track e-commerce, as described in GTM4WP's setup guidegtm4wp.com.
  5. Save the settings.

Done when the saved settings contain the intended container ID and ecommerce tracking is enabled.

Connect the staging URL through GTM Previewsupport.google.com. Preview runs the draft workspace without publishing it.

3. Connect a Preview session

  1. Open Preview.
  2. Enter the staging-store URL and connect.
  3. Exercise the consent banner using the store's existing consent implementation.

Done when Tag Assistant shows the intended container and the consent state matches your choice.

Where does GTM4WP put view_item_list data?

Inspect the event's ecommerce object in Preview. GTM4WP's list-event coderaw.githubusercontent.com pushes view_item_list with items and currency; this call does not add an event-level value.

4. Inspect the actual event payload

  1. Open a category page with several products.
  2. Inspect each view_item_list event and its item list; the plugin can split a list into batches, as shown in its list-event coderaw.githubusercontent.com.

Do not assume a fixed batch size of 20.

Done when the event name and products match your action, with no stale items from the previous page.

Check id and google_business_vertical on each product. GTM4WP's product builderraw.githubusercontent.com includes a separate remarketing identifier based on its settings. Do not replace it blindly with item_id, a SKU or a parent ID; compare the actual output with the Merchant Center feed.

Should I count category views as conversions?

Only create a conversion action if you deliberately want this action in conversion reporting. The remarketing path does not require one.

A remarketing tag sends audience datasupport.google.com; a conversion tag records a separately configured conversion actionsupport.google.com. Google makes the remarketing label optionalsupport.google.com and warns that a conversion-action label in that field inflates conversion counts.

5. Decide whether to add a conversion action

  1. For optional conversion reporting, create a manual Website conversion action in Google Ads.
  2. Obtain its Conversion ID and Label from Use Google Tag Manager, following Google's conversion setupsupport.google.com.
  3. For an observation-only setup, select Secondary.
  4. Keep the action out of custom goals: Google says custom goals use even secondary actions for biddingsupport.google.com.

Done when the action's name, ID, label and optimization setting match your intended use.

How do I configure the view_item_list tags in GTM?

Create the data variables first, then keep the remarketing and optional conversion tags separate.

  1. Use the intended account's Conversion ID from its Google Ads tag setupsupport.google.com.
  2. Add or reuse the associated Google tag: select Tags > New > Google tag.
  3. Enter its Tag ID.
  4. Choose Initialization - All Pages, following Google's setup instructionssupport.google.com.

Google says a separate Conversion Linker is unnecessarysupport.google.com when that destination's Google tag loads on every page.

Done when the saved Google tag has the intended Tag ID and trigger, with your consent defaults and updates configured.

Create the variables and item filter

A Data Layer Variable reads a named value from the data layer, the event data your site gives GTM.

  1. Create each variable below in Variables > New, following Google's variable referencesupport.google.com.
  2. Select Data Layer Variable as the type.
  3. Select Version 2 for nested paths.

DLV - Items

Data layer variable name
ecommerce.items
Use
Source items for the filter below

DLV - Currency

Data layer variable name
ecommerce.currency
Use
Compare with the displayed amount
Read values from the event that will fire the tag.
  1. Create a Custom JavaScript variable named CJS - Remarketing items with this function.
javascript11 lines
function() {  var items = {{DLV - Items}};  if (!Array.isArray(items)) return [];  return items.filter(function(item) {    return item && item.id != null &&      String(item.id).trim() !== "" &&      item.google_business_vertical === "retail";

4 more lines of JavaScript

  • Copy and download
  • Emailed to you

Unlock this snippet

Two details, and the full code is yours

No account needed. Unlock once and every snippet on the blog opens.

We email you a copy.

It keeps existing retail IDs and drops blank ones; it does not guess a feed ID.

  1. Create another Custom JavaScript variable named CJS - Has remarketing items with the function below.
javascript
function() {
  return {{CJS - Remarketing items}}.length > 0;
}

Done when the saved paths match the table, the saved CJS - Remarketing items code references DLV - Items, and CJS - Has remarketing items returns false for an empty item list and true for a list with a valid retail ID.

Save the trigger and remarketing tag

A trigger tells GTM when to run a tag.

  1. Create a Custom Event trigger named for view_item_list.
  2. Enter view_item_list as its event name.
  3. Leave regular-expression matching off.
  4. Select Some Custom Events.
  5. Require CJS - Has remarketing items equals true.
  6. Create a Google Ads Remarketing tag.
  7. Enter the intended Conversion ID.
  8. Leave Conversion Label blank.
  9. Enable Send dynamic remarketing event data.
  10. Set Event Name to view_item_list.
  11. Set Event Items to CJS - Remarketing items.
  12. Leave the optional Event Value empty for this list-view setup.
  13. Attach the trigger above.
  14. Save the tag.

These are the fields in Google's GTM configuration examplesupport.google.com.

Done when the saved trigger has both the exact event name and item condition, and reopening the tag shows these settings.

Keep ecommerce.currency available for the amount check. Google's dynamic-tag examplesupport.google.com maps Event Name, Event Value and Event Items; it does not map currency. The separate conversion tag has a Currency Code fieldsupport.google.com. Do not assume that a currency stored in the data layer was sent by a tag.

Add the optional conversion tag

Google's conversion tagsupport.google.com accepts Conversion Value and Currency Code.

  1. If you created the conversion action, add a Google Ads Conversion Tracking tag.
  2. Enter that action's ID and Label.
  3. Leave Conversion Value empty for this category-view action.
  4. Map Currency Code to DLV - Currency.
  5. Create a separate Custom Event trigger for view_item_list without the remarketing item condition.
  6. Apply the store's existing consent implementation to these tags using Google's consent-mode guidancedevelopers.google.com.

Google documents that an empty or undefined Conversion Value is sent as zerosupport.google.com; this is an intentional no-value view action, not measured revenue. Do not invent a transaction ID for a view event.

Done when the conversion tag has the action's label, the remarketing tag remains label-free, and the documented consent defaults and updates match the choices you test.

How do I test WooCommerce category views?

Use GTM Previewsupport.google.com to inspect the event and tags on the staging store before any release.

6. Compare the event with the outgoing requests

  1. Visit a category page.
  2. Compare the products in each event with that page.
  3. Check that each item has the expected feed ID and retail vertical, and that separate list batches are accounted for.
  4. Select view_item_list in Tag Assistant.
  5. Check that the remarketing tag appears under Tags Fired only with a nonempty filtered item list, and the optional conversion tag fires only if you configured it.
  6. Inspect each tag's resolved variables and outgoing Google Ads request.
  7. Compare the account ID, event or conversion label, and available amount and currency with the test data.
  8. Check that the remarketing request contains feed-matched items.
  9. Repeat with the consent choices your store offers.

Tag firing in Preview is not proof of an attributed Ads conversion or audience eligibility.

Done when every check above matches, and your notes record the observed behavior for both consent choices and explain any missing request.

No. Google's Preview modesupport.google.com tests a workspace before it is published. Save the checks and take the tested setup through your normal release process; these instructions do not call for publishing a live-store container.

Why are my WooCommerce category-view tags wrong?

Check the source event before changing the tag. This guide is the wrong fix if the event never appears; repair the plugin integration first.

  • Using a display name instead of view_item_list prevents the Custom Event trigger from matching. Copy the event name from Preview.
  • Guessing the Merchant Center ID can make the tag send an unmatched product. Compare a real feed entry and correct the plugin mapping before using dynamic remarketing.
  • Using an absent list value as revenue invents a monetary meaning. Leave Event Value unset for the list-view remarketing tag.

If the container still does not connect, use the WooCommerce GTM setup guide. For completed orders, follow the purchase data checks instead of treating a view as a sale.

What changed in this guide

  • 25 October 2026: Corrected the view_item_list trigger and GTM4WP field mappings, separated remarketing labels from conversion labels, added filtered retail items and Preview checks, and removed live-container publishing. Removed the assumed list-event value and fixed impression count. Replaced the repeated opening with sourced list-batch and absent-value distinctions.

Sources

14 sources
  1. 1Google warns against conversion-action labels on remarketing tags↩
  2. 2GTM4WP's list-event code can split products into batches and supplies no event-level list value↩
  3. 3GTM4WP by Thomas Geiger↩
  4. 4GTM4WP's setup guide↩
  5. 5GTM Preview↩
  6. 6Google requires each retail id to match the Merchant Center feed↩
  7. 7GTM4WP's product builder↩
  8. 8conversion tag records a separately configured conversion action↩
  9. 9Google says custom goals use even secondary actions for bidding↩
  10. 10Google's setup instructions↩
  11. 11Google says a separate Conversion Linker is unnecessary↩
  12. 12Google's variable reference↩
  13. 13Google's GTM configuration example↩
  14. 14Google's consent-mode guidance↩