Skip to content

matteo-zambon-gtm/GA4-items-to-Array-Object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GA4-items-to-Array-Object

Do you use Items object of Google Analytics 4 in your dataLayer?

Well, this variable is a smart way to convert GA4 items into Array Object.

So, if you need to get all item_name or item_id you can do it easily.

Guide step by step:

Import the custom variable from the gallery

Go to the GTM gallery variable and search "GA4 Items to Array Object"

The configuration:

Create a new variable an choose GA4 Items to Array Object

select GA4 Items to Array Object Converter

You have to choose the type of parameters that you need to converter:

  • item_name
  • item_id
  • price
  • item_brand
  • item_category
  • item_category2
  • item_category3
  • item_category4
  • item_variant
  • item_list_name
  • item_list_id
  • index
  • quantity
  • promotion_id
  • promotion_name
  • creative_name
  • creative_slot
  • location_id

Let me know if it is helpful for you

Buon Tag :)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages