Datalayer for WooCommerce FREE


The Data Layer is an object that makes available in real time the information that is executed by users while browsing the WooCommerce Store.

With Datalayer for WooCommerce FREE enabled, you will have some actions available in an easily readable javascript object via Google Tag Manager or code and thus evaluate the following advanced eCommerce activities:

  1. Product Detail Impressions
  2. Purchases

Need all available events and all tags (UA, GA4, Ads, Facebook and Pinterest)?
Get the PRO version from the Official WooCommerce Store: Datalayer for WooCommerce PRO

Discover our demo store:
Demo Shop


  • Configurations screen plugin.
  • Tags Universal Analytics with Google Analytics 4 tags as a complement imported
  • Tags Google Analytics 4 imported


  1. Upload the plugin files to the /wp-content/plugins/datalayer-for-ecommerce-free directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the WooCommerce > Datalayer for WooCommerce -> screen to configure the plugin


Google Tag Manager ID -> Enter the GTM-XXXXXX ID to activate the Google Tag Manager code snippet
DataLayer for WooCommerce Enhanced Ecommerce -> Enable this option if you use Google Analytics UA with Google Analytics 4 (GA4) tags as a complement to UA
DataLayer for WooCommerce Ecommerce GA4 -> Enable this option if you use only Google Analytics 4 (GA4)

Import Google Tag Manager

  1. Download the file in WooCommerce > Datalayer for WooCommerce > Download import File GTM.
  2. Go to Google Tag Manager > Admin > Import Container
  3. Select the file you want to import:
    GTM-UA-with-GA4-complement-FREE.json -> If you want to use Analytics UA tags and variables, GA4 as a complement.
    GTM-GA4-FREE.json -> If you want to use only Analytics GA4 tags and variables.
  4. After selecting the file, import the tags.

Settings Universal Analytics with Google Analytics 4 tags as a complement

  1. In GTM, go to the variables menu and add your Google Analytics UA and click save.
  2. In GTM, go to the tag GA4 – Tag and add your measurement id and click save.

Settings Google Analytics 4

  1. In GTM, go to the Tags menu and select the tag GA4 – Tag, enter the id of your GA4 and click on save.




以下人員參與了開源軟體〈Datalayer for WooCommerce FREE〉的開發相關工作。


將〈Datalayer for WooCommerce FREE〉外掛本地化為台灣繁體中文版


任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄


2.0.2 – 21/09/2022

  • Support: WP 6.0.2 WC 6.9.3
  • Fix: Multisite full support check WooCommerce Active

2.0.0 – 22/06/2022

  • First Release