Add a redirect after booking a Meeting

Status: Delivered

Status history

This feature is needed, and not ‘Delivered’ as claimed on the previous Idea here:
https://community.hubspot.com/t5/HubSpot-Ideas/Allow-for-conversion-tracking-with-Meetings-in-HubSpot/idi-p/8269
We need a URL redirect for the meetings embed so that we can track conversions in Google Ads and Facebook Ads using GTM the same way we do for everything else.
------------
For anybody who wants a work around now, here’s one from rollworks_abm as stated on the previous idea. Note, I haven’t tried this yet.
------------

Finally after spending couple of hours and thanks to the post from thomas_workpath, we figured out on adding conversion tracking code until Hubspot adds the TYP redirection-

You can create a new tag in GTM with ‘Custom HTML’ tag type, copy paste the below code snippet and set the trigger to fire at page view on all the pages where Hubspot meeting iframe is embeeded -

<script type="text/javascript">window.addEventListener('message', function receiveMessage(e) { if (e.origin.match(/YOURDOMAIN\.com/)) { if (e.data && e.data.meetingBookSucceeded) { if (e.data.meetingBookSucceeded == true) { try { // YOUR CONVERSION TRACKING CODE HERE LIKE __adroll.record_user({"adroll_segments": "XXXXX"}); } catch (err) {} } } }}, false);</script>

Find their original message here: https://community.hubspot.com/t5/HubSpot-Ideas/Allow-for-conversion-tracking-with-Meetings-in-HubSpot/idi-p/8269/page/4#comments