EEC Products -> GA4 Elements – Custom Variable Model

The EEC Products -> GA4 Elements The custom variant form is a variant form of the Google Tag Manager community form gallery.
Describe
This template contains four main options.
- Set the e-commerce object automatically – Template searches in a file the most recent
ecommerce
push the body inwarddataLayer
, and takes its product group, impressions or promotions (whichever is present). Returns the array set in the desired format by a fileitems
The parameter in e-commerce is GA4. - Map product range – Select a variant from the drop-down menu showing a valid Enhanced E-Commerce
products
matrix array. The variable will be set in the desired format byitems
Labs. - Map impressions collection – Select a variant from the drop-down menu showing a valid Enhanced E-Commerce
impressions
matrix array. The variable will be set in the desired format byitems
Labs. - group promotions map – Select a variant from the drop-down menu showing a valid Enhanced E-Commerce
promotions
matrix array. The variable will be set in the desired format byitems
Labs.
The elements are mapped as closely as possible using the following pairs:
EEC parameter | GA4 parameter | Describe |
---|---|---|
id |
item_id or promotion_id |
The identifier of the product, impression, or promotion. |
name |
item_name or promotion_name |
Product name, impression or promotion. |
brand |
item_brand |
The product’s brand or impression. |
variant |
item_variant |
Product shape or impression. |
category |
item_category([2-5]) |
The product category or appearance is automatically split into item_category to me item_category5 . |
price |
price |
Product price or impression. |
quantity |
quantity |
Product quantity or impression. |
list |
item_list_name |
Product listing for product or impression – taken from the product/impression object if available, or from actionField If it is there. |
position |
index or creative_slot |
Index impression or promotion slot. |
creative |
creative_name |
Promotional design name. |
Additionally, you can a map Product-wide custom dimensions and metrics for appropriate item parameter names. To create a mapping, you need to provide a file index number Custom dimension or scale (eg 1
in a dimension1
) in the first field, then File Item parameter name per second. To set a custom scale in the index 13
to a parameter named element quantity_in_stock
, you can create the mapping as follows:
All custom dimensions and gauges Not The mapping will be added to the element object with their original names (so dimension17
And metric23
for example).
Release Notes
date | set of changes |
---|---|
December 9, 2020 | Repair quantity do not send NaN If the source is not a valid number. |
November 28, 2020 | Repair item_categoryX For the absence of the second underscore. The official documentation is wrong. |
November 23, 2020 | Automatically convert quantity to an integer, as any other numeric format cuts the item returns. |
October 21, 2020 | Added option to set custom dimensions and metrics for appropriate item parameter names. |
October 17, 2020 | The initial release. |