Improved Google Tag Manager Integration by changing pushed data layers.

 2 Requests
1 Comment
Status: Under Review
Sebastian W on Nov. 16, 2023:

I would like the following to be pushed to the datalayer:
When a user clicks on the book button of a specific item: event: "view_item" as well as a variable that contains the item name, preferably named item_name.
When a user clicks on a specific time slot in order to book the item, please push to the data layer: event "add_to_cart" swell as again a variable that contains the item name.
Please also include the item name variable in the "purchase" event.

This serves the purpose of actually being able to use GTM and GA4 individual functions beyond simple tracking of purchases, as it allows us to see who did and didn't buy what.

Thank you!

Want us to build this for you?