pinterest / ss-gtm-template

This is a repository to implement the Google Tag Manager server-side tag template for Pinterest Conversions API to be deployed into Google Community Template Gallery.
Apache License 2.0
5 stars 3 forks source link

Add custom string input to map event name #3

Open AlexGusew opened 9 months ago

AlexGusew commented 9 months ago

When adding server tag, custom event mapping might be required if client GTM sends events with non-matching naming (e.g. sign_in).

Some of names are resolved by default in EVENT_NAME_MAPPINGS but it doesn't extend easily for ocmpletely custom event names.

To address this, I added text input that maps event name with the one specified in the field (e.g. like Lookup table in the case from screenshot).

See the example below:

image