Skip to main content

Triggering Zapier on Thank you Page - HandL UTM Grabber Guide

UTM attribution overview

This guide explains Triggering Zapier on Thank you Page - HandL UTM Grabber Guide. It helps you send UTM and click ID data into automations, webhooks, reports, and connected tools and keep the marketing context needed for accurate reporting across forms, bookings, signups, and sales.

Simply add the following snippet on your thank you page.

The following script will merge the query argument with the handl utm grabber cookies and trigger your webhook with all the data.

This is especially useful, when prospects redirected from webinar optin signup where the optin data appended to the thank you page URL as query arguments.

Don't forget to change the Zapier URL below with your own Webhook URL.

<script>
var qvars = {};
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {qvars[key] = value;});
qvars = Object.assign(handl_utm,qvars)
setTimeout(function(){

	var data = new URLSearchParams(qvars).toString()
	console.log(data)
	var xmlHttp = new XMLHttpRequest();
	xmlHttp.open( "GET", 'https://hooks.zapier.com/hooks/catch/5711357/b5af0ju/?'+data, false ); // false for synchronous request
	xmlHttp.send( null );

}, 1000);
</script>

Never lose any UTMs ever 💪

Get HandL UTM Grabber V3