I have a question about Google Tag Manager (GTM) and Data Layer:
Let's assume that the analytics team asks developers to push an event in Data Layer called "test" which has the following structure:
{ product_id : '1234', category: 'toys' } Let's assume I have a tag that needs to send those variables to a third party provider.
According to my understanding of the GTM workflow I have to create two separate data Layer variables, one for product_id and one for category.
This is quite a manual/long/error prone process for events with a lot of variables, and I also worry that there could be confusion if another variable is called ‘category’ from another event.
So my question is:
Can I define in GTM the 'parent' level variable called 'test' (the name of the event itself), and then create test.product_id and test.category variables?
Thanks