How to Set Up Google Tag Manager and Track View Item List Conversion Actions on Your WooCommerce Store
by ShahzadaAliHassan - 25th July 2024In this Blog Post, we will learn how to track the "View Item List" event on your Google Ads account using Google Tag Manager and a WooCommerce store. This will help you keep track of all the events users perform on your category pages. Follow these simple steps to set everything up.
Prerequisites
- Administrator access to your WordPress backend.
- Published access to the Google Tag Manager container.
- Standard or admin access to the Google Ads account.
Step 1: Ensure Proper Access
-
WordPress Backend Access:
- Go to the WordPress backend.
- Navigate to the Users tab.
- Check if your user has administrator access.
-
Google Tag Manager Access:
- Go to the Admin section in Google Tag Manager.
- Click on User Management.
- Ensure you have publish access. If not, ask your client to update your permissions.
-
Google Ads Account Access:
- Go to the Admin section in Google Ads.
- Navigate to Access and Security.
- Verify your email and check your access level.
Step 2: Set Up Google Tag Manager on WordPress
-
Install the GTM for WP Plugin:
- Go to the Plugins section in WordPress and click on "Add New."
- Search for "GTM for WP" and install the plugin by Thomas Greger.
- Activate the plugin.
-
Add the Google Tag Manager Container ID:
- Go to the settings of the GTM for WP plugin.
- Enter your Google Tag Manager Container ID.
- Save the changes.
-
Verify the Setup:
- Click on the Preview button in Google Tag Manager.
- Open a temporary debug session to check if the Google Tag Manager container is firing correctly on your website.
Step 3: Create Data Layer for the "View Item List" Event
-
Enable Data Layer on WooCommerce:
- Go to the plugin section in WordPress.
- Click on Integrations.
- Find the option for "Track e-commerce events" and select "Impressions to 20."
- Check the box "Clear the e-commerce object before pushing new events."
- Save the changes.
-
Test the Data Layer:
- Go to any category page on your WooCommerce site.
- Check the debug window to ensure the "View Item List" event is firing and contains parameters like item ID, item name, value, and currency.
Step 4: Create Conversion Actions in Google Ads Manager
-
Create a New Conversion Action:
- Go to the Goals section in Google Ads.
- Click on "Create new conversion action."
- Select "Website" as the conversion source.
- Name the conversion action "View Item List."
-
Configure Conversion Action:
- Use value and set other settings as needed.
- Save and continue.
- Get the Conversion ID and Conversion Label.
Step 5: Set Up Tags, Triggers, and Variables in Google Tag Manager
-
Create a Conversion Linker Tag:
- Go to Google Tag Manager and create a new tag.
- Select "Google Ads Conversion Linker" and set it to fire on all pages.
-
Create a Trigger for "View Item List" Event:
- Go to the Trigger section and create a custom event named "view_item_list."
-
Create Variables for e-commerce Data:
- Create data layer variables for currency, items array, and value using the Facebook parameter generator template.
-
Set Up Conversion Tracking Tag:
- Create a new tag for Google Ads conversion tracking.
- Use the Conversion ID, Conversion Label, and data layer variables.
-
Set Up Remarketing Tag:
- Create a new tag for Google Ads remarketing.
- Use the same triggers and variables as the conversion tracking tag.
Step 6: Test and Publish
-
Test the Setup:
- Use the preview mode in Google Tag Manager to test if the "View Item List" event fires correctly.
- Check if the event includes all required parameters and fires the Google Ads tags.
-
Publish the Container:
- Name the container "Tracking View Item List" and publish it.
By following these steps, you can successfully track the "View Item List" event on your Google Ads account using Google Tag Manager and WooCommerce. This will help you monitor user activities on your category pages and optimize your advertising strategies.