JotForm UTM tracking via iframe embed

Copy paste the embed code from JotForm to your WordPress

Then, place the followin snippet in your page

<script>
setTimeout(() => {
	if (typeof(utms_js) == 'object'){
		var iframeParams = [];
		iframeParams.push( jQuery.param(utms_js) )
		var src = ifr.src;
		ifr.src = src + "?" + iframeParams.join('&');
	}
}, "500");
</script>

Revision #1
Created Tue, Jun 13, 2023 8:11 PM by Leman
Updated Tue, Nov 7, 2023 1:54 AM by Leman