The goal is to configure GTM so it will send Analytics events based on the Potions Events pushed in the DataLayer
Create a new trigger named Potions - potions
Tick “Use regex matching”
Create all the following variables
- action_id
- experience_id
- experience_name
- item_id
- item_ids
- debug_mode
Create a new tag named Potions - Event GA4 - potions
Create and add all the following event parameters with the previously created variables :
- action_id
- experience_id
- experience_name
- item_id
- item_ids
- debug_mode
Where each variable is defined this way