Skip to content
Facebook Twitter Github RSS
Google Tag Manager for WordPress
  • Home
  • FeaturesExpand
    • Basic features of GTM4WP

      You can use many post or page attribute in you Google Tag Manager setup even for custom post types and taxonomies.

      Basic data

      Page / post attributes

      Site search

      User data

      Multisite data

      3rd party data

      Browser attributes

      Device attributes

      Operating system attributes

      Weather conditions

  • SetupExpand
    • Setup advanced GTM4WP features

      Integrate your measurement with WooCommerce, setup Google Analytics 4, Google Ads remarketing or conversion tracking maximizing capabilities.

      WooCommerce related

      Google Analytics 4

      Google Ads – Dynamic Remarketing

      Google Ads – Conversion tracking

      Google Ads – Enhanced Conversions

      Other setup articles

      Exclude WordPress admins

      Embedded media players

  • DevelopersExpand
    • Information for developers and WP managers

      There are several tools in GTM4WP to support your special needs and to adjust plugin behavior to your website or WooCommerce shop.

      Do you want to contribute with a bugfix or a new feature? Visit the GTM4WP’s GitHub page!

      For Developers

      Actions and filters

      WP themes + Proper ecommerce tracking

      For WP managers

      Setup GTM Environments

      Hard code GTM parameters

  • Blog
  • GDPR
Download
Google Tag Manager for WordPress
Home / Google Tag Manager for WooCommerce / Google Analytics 3 / Universal Analytics – Enhanced Ecommerce tracking – How to setup?

Google Analytics 3 / Universal Analytics – Enhanced Ecommerce tracking – How to setup?

WARNING!

Universal Analytics was turned down by Google. It is not recommended to setup this ecommerce tracking on new WooCommerce sites. Setup Google Analytics 4 ecommerce tracking instead. If you are on Google Analytics 360 and wants to keep using Universal Analytics tags in Google Tag Manager, this page will give you the steps to setup ecommerce tracking with Universal Analytics as long as it collects data for you.

This guide does not take into account weather you are using a Consent Management Platform (CMP) or how you would like to implement Google Consent Mode within your Google Tag Manager container. The steps to also make your measurement setup also privacy safe is usually dependent on your CMP. Consult with the support team of your CMP.

  • Step 1 – Setup GA4 ecommerce tracking
  • Step 2 – Create a Google Analytics Settings variable
  • Step 3 – Make sure you have page view tracking setup
  • Step 4 – Setup ecommerce tracking

Step 1 – Setup GA4 ecommerce tracking

Setup your Google Analytics 4 ecommerce tracking witch will be the basement to create your Universal Analytics ecommerce tracking.

Step 2 – Create a Google Analytics Settings variable

If you did not set this up earlier, create a new variable with the type Google Analytics Settings:

gtm4wp universal analytics settings variable setup

Set your Tracking ID either by selecting another variable or by entering your UA-88888-8 property ID manually.

Set your tracking options in Fields to set depending on your measurement and reporting needs also taking into consideration user privacy protection.

Do NOT enable ecommerce tracking related features in this variable!

Step 3 – Make sure you have page view tracking setup

Make sure to create a Universal Analytics tag to collect the page view interaction (this tag might be already in your GTM container):

Universal Analytics - Track generic page view interaction

Set Track type to Page View and select the previously created Google Analytics Settings variable.

If you need, override some settings but do not enable ecommerce tracking in this tag!

It is usually a good idea to fire this tag on the Initialization – All pages trigger to make sure page view tracking happens as early as possible but this will not guarantee that the page view data will arrive at Google before any other event.

Step 4 – Setup ecommerce tracking

Create a new Universal Analytics tag to setup ecommerce tracking:

Universal Analytics - Track ecommerce actions

Set the Track Type to Event, then enter any value into the category and action parameters. It is not relevant what you type in here as event reports will be not used to analyze ecommerce data, it will be just sort of the messenger that will also store ecommerce specific data for the ecommerce specific reports.

Select the Google Analytics Settings variable you created in Step 2 and check the Enable overriding settings in this tag checkbox. Open More settings > Ecommerce and set Enable Ecommerce Ecommerce Features to true. Turn on checkboxes Use Data Layer and Use GA4 schema.

Select the ecommerce trigger created for Google Analytics 4 ecommerce tracking and save the tag.

Publish your changes and you are done!

© 2025 Google Tag Manager for WordPress - Privacy policy

  • WordPress.org plugin page
  • Plugin support
  • Plugin reviews
  • Home
  • Features
    • Basic features of GTM4WP

      You can use many post or page attribute in you Google Tag Manager setup even for custom post types and taxonomies.

      Basic data

      Page / post attributes

      Site search

      User data

      Multisite data

      3rd party data

      Browser attributes

      Device attributes

      Operating system attributes

      Weather conditions

  • Setup
    • Setup advanced GTM4WP features

      Integrate your measurement with WooCommerce, setup Google Analytics 4, Google Ads remarketing or conversion tracking maximizing capabilities.

      WooCommerce related

      Google Analytics 4

      Google Ads – Dynamic Remarketing

      Google Ads – Conversion tracking

      Google Ads – Enhanced Conversions

      Other setup articles

      Exclude WordPress admins

      Embedded media players

  • Developers
    • Information for developers and WP managers

      There are several tools in GTM4WP to support your special needs and to adjust plugin behavior to your website or WooCommerce shop.

      Do you want to contribute with a bugfix or a new feature? Visit the GTM4WP’s GitHub page!

      For Developers

      Actions and filters

      WP themes + Proper ecommerce tracking

      For WP managers

      Setup GTM Environments

      Hard code GTM parameters

  • Blog
  • GDPR
Search