Hey everyone. Is there any Event Listener code ava...
# developers
i
Hey everyone. Is there any Event Listener code available that I can use in a custom HTML tag in Google Tag Manager? I'm trying to create a tag to track conversions (successful bookings). Any help is appreciated!
s
I am not sure about your use case. But have you consider using webhooks?
i
I'm going to run a Google Ads campaign and the conversion for that campaign will be booking an online video call. Therefore I'll need to create a GA4 event in GTM. And my GTM server container will pass the data to Google Ads. Basically I need to let Google Ads know when the campaign is successful. I did check the webhook option, but that's quite complicated, if possible at all.
I managed to find the event data in the data layer. I had to activate the History Change variable in GTM. I've now a Tag that sends a custom event to GA4 which also sends the event name and customer email address (beneficial for enhanced conversions in Google Ads and Facebook advanced matching). This data is extracted from the url parameters.
s
Hey Ivo, Unfortunately I am not aware about this. It seems like someone with knowledge on Google Ads will be able to help you out on this. I am aware about the webhooks though. If in case you change your mind about webhooks feel free to reach out.
i
Thanks Shivam! I already solved my issue as discribed in my message above. I'm happy to able to use GTM now. Thanks again for your offer to help with webhooks.