How to Set Up Google Tag Manager and Track View Item Conversion Actions on Your WooCommerce Store
Learn how to configure Google Tag Manager on your WooCommerce store to track view item conversion actions. This guide covers setting up Google Tag Manager, adding the necessary data layers, and ensuring accurate event tracking for better Google Ads targeting.
Shahzada Ali Hassan
3 min read0 views
Check your site's tracking
Enter your website to see how good its tracking is, and whether Meta is likely restricting it.
Run a free auditIn this guide, we'll show you how to set up tracking for the "View Item" event on your WooCommerce store using Google Tag Manager (GTM) and Google Ads. This will help you understand which users view your products and which products they view.
Introduction
By the end of this guide, you will be able to track the "View Item" event on your Google Ads account for your WooCommerce store using Google Tag Manager. This event helps you see which users open a product page and which product they viewed.
Checking Admin Access
- WordPress:
- Go to the back end of your WordPress site.
- Click on "Users" and find your email address.
- Ensure you have administrator access.
- Google Tag Manager:
- Open your GTM container.
- Click on "Admin," then "User Management."
- Ensure your email has publish access to the container.
- Google Ads:
- Go to your Google Ads account.
- Navigate to "Admin" and click on "Access and Security."
- Verify you have either standard or admin access.
Installing GTM Plugin on WordPress
- Add GTM Plugin:
- Go to your WordPress backend, click on "Plugins," then "Add New."
- Search for "GTM for WP" by Thomas Geiger.
- Install and activate the plugin.
- Configure GTM Plugin:
- Navigate to the plugin settings.
- Enter your GTM container ID (found in GTM under "Admin").
- Save changes. Ensure the container code is on and save again if needed.
Verifying GTM Installation
- Use GTM Preview Mode:
- Go to your GTM account, click on "Workspaces," then "Preview."
- Connect the debug session to your website to check if tags are firing correctly.
- Google Tag Assistant Chrome Extension:
- Install the extension and check if the GTM container is firing properly.
Adding Data Layer Event for View Item
- Enable WooCommerce Events:
- In your WordPress backend, go to the GTM plugin settings.
- Click on the "Integration" tab, then "WooCommerce."
- Enable "Track e-commerce events" and "Clear e-commerce objects before new event."
- Save changes.
- Test the Event:
- Open a product page on your WooCommerce store.
- In the GTM debug window, verify that the "View Item" event is firing.
Creating Conversion Action in Google Ads
- Create Conversion Action:
- Go to your Google Ads account, click on "Goals," then "Summary."
- Click the plus button to create a new conversion action.
- Select "Website" and enter your website URL.
- Configure Conversion Action:
- Create a manual action named "View Item."
- Set it to track dynamic values and save.
Configuring Conversion Tracking Tags
- Add Conversion Linker Tag:
- In GTM, go to "Tags," click on "New," and select "Conversion Linker."
- Set it to fire on all pages and save.
- Create Custom Event Trigger:
- Create a new trigger with a custom event named "View Item."
- Configure the necessary variables: value, currency, and items array.
- Set Up Conversion Tracking Tag:
- Create a new tag for Google Ads Conversion Tracking.
- Use the conversion ID and label from your Google Ads account.
- Configure the tag to fire on the "View Item" event.
- Add Remarketing Tag:
- Create a new tag for Google Ads Remarketing.
- Configure it with the conversion ID and label, and set it to fire on the "View Item" event.
Testing and Verifying Tags
- Use GTM Preview Mode:
- Open the debug window and test the "View Item" event on your WooCommerce site.
- Verify that the conversion tracking and remarketing tags are firing correctly.
- Check Tag Assistant:
- Ensure the Google Ads tag is firing and the event data is accurate.
Publishing the Container
- Submit GTM Container:
- In GTM, click on "Submit" to publish your changes.
- Name the version and describe the changes made.
Conclusion
By following these steps, you'll have successfully configured the "View Item" event tracking for your WooCommerce store using GTM and Google Ads. This setup will help you track important conversion actions and optimize your ad campaigns effectively. If you want to learn how to configure the "Begin Checkout" event, click here.


