Skip to main content

Append UTMs to the CTA (Button)

You can add to Tracking Code section in the page...

setTimeout(
	function(){

		handlj('[aria-label="utm-out"]').parent().each( (i,t) => {
			handl_utm = HandL.getAll()
			var merged = handlj.extend( {}, handl_utm, HandL.getSearchParams(this.href) )
			if (t.href !== undefined){
				var href = t.href.split("?")[0];
				if ( !$.isEmptyObject(merged) )
					t.href = href+"?"+$.param(merged)
			}
		})
	}, 1000
)