Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 1.29 KB

GA - Product Array Mapper/Builder

Build a GA Enhanced or Standard Ecommerce product array variable using any site's product object by mapping the original object's key value into each value of your new properly formatted object.

Author

Michael Ulrich (https://www.wpromote.com/).

Release Notes

Date Notes
01 November 2019 First version of the variable released.

Description

Using any website's data object or dataLayer you can create a new properly formatted GA product object variable to place in any dataLayer you push inside GTM. You can build either a Standard or Enhanced Ecommerce product object using this variable.

Once you locate the product object you intend to use for mapping, type each keys name from the original product object into its proper key name inside the variable template. Doing this builds a new product array variable that will be formatted so GA reads the data properly.

Example: Mapping a product objects key names into the template Mapping Key Values

Example: Successful creation of a new product data object in the test Successful Test

You can’t perform that action at this time.