EEC Products -> GA4 Items

Community variable by gtm-templates-simo-ahava

What is EEC Products -> GA4 Items?

Converts Universal Analytics Enhanced Ecommerce products/impressions/promotions dataLayers to the format required by GA4's items array.

EEC Products -> GA4 Items variable is created by gtm-templates-simo-ahava. Once you set up server side tagging with MetricsGate, you can use this variable with Google Tag Manager to enhance your data analytics.

This variable template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. Refactored code to be more error-resilient.
  2. You can now type custom parameter names for the custom dimensions and metrics instead of using the index numbers.
  3. Fix item quantity to not send NaN if source is not a number.
  4. Fixed item_categoryN to not have the second underscore.
  5. Convert quantity to integer to prevent breakage.
  6. Prevent error if no ecommerce object found.
  7. Added table for mapping custom dimensions and metrics.
  8. Initial release.

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now