Skip to content

Custom Variable Template for for Google Tag Manager. Finds specific ecommerce push to dataLayer by ecom type (UA) or event name (GA4)

License

Notifications You must be signed in to change notification settings

mbaersch/ecommerce-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Selector

Custom Variable Template for Google Tag Manager

Finds specific ecommerce push to dataLayer by ecom type (UA) or event name (GA4)

Template Status Repo Size License


Usage

Define a UA ecommerce event type like "detail" or "add" to find the last push to the existing dataLayer. Optionally define an event name to specify the desired dataLayer push like "view_item" for a GA4 ecommerce event. Returns the "ecommerce" object if found.

Object Refinement

Optionally define a list of keys to delete from the result object. A second list allows to add new keys to the result or overwrite existing keys with new values.

About

Custom Variable Template for for Google Tag Manager. Finds specific ecommerce push to dataLayer by ecom type (UA) or event name (GA4)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages