Passing UTM Param to TypeForm Embed


#1

I use TypeForm for a survey and have it embedded on my page. Works very well.

I need to pass UTM code into the TypeForm embed. The embed code they give is this:

<div class="typeform-widget" 
 data-url="https://philipmeese.typeform.com/to/tBv5mF" 
 style="width: 100%; height: 400px;"></div> 

<script> 
(function() { 
var qs,js,q,s,d=document, gi=d.getElementById, 
ce=d.createElement, gt=d.getElementsByTagName, 
id="typef_orm", b="https://embed.typeform.com/"; 

if(!gi.call(d,id)) 
{ js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; 
  q=gt.call(d,"script")[0]; 
  q.parentNode.insertBefore(js,q) 
 } 
  })() 

</script> 

So what I need to do is change the

 data-url="https://philipmeese.typeform.com/to/tBv5mF" 

to add a parameter and the value of that UTM that has been passed into my Unbounce page. So if my Unbounce page were called with:

 https://go.mydomain.com/page.html?utm_zone=Z98

it would read:

data-url="https://philipmeese.typeform.com/to/tBv5mF?utm_zone=Z98" 

I am not a hard core coder so I am clueless here. Any ideas?