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:
Go to the GTM gallery variable and search "GA4 Items to Array Object"
Create a new variable an choose GA4 Items to Array Object
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 :)