A GTM custom template tag I have developed to be used to push an object to the dataLayer. It can include the desired key-value pairs. An 'event' parameter can also be pushed to the the dataLayer with it's value.
- Download the .tpl file you will find in this repository
- Browse to the templates section in your Google Tag Manager container.
- Click on the 'New' button within the 'Tag Templates' section.
- Click on the three dots on the top right corner of the screen and import the .tpl file.