Re: How do I pass UTM parameters to an iframe?

Anonymous
Not applicable

How do I pass UTM parameters to an iframe?

Hi,

- i have a link google adword :

http://mysite.com?utm_campaign=Testcam&utm_medium=referral&utm_source=Blog&utm_content=blogers&utm_term=Test

- When visitor click the link above to navigate to mysite. And then he submit a Marketo form (non Marketo form for landing page on my site).
I follow this article to create Mkto form on my site: http://community.marketo.com/MarketoResource?id=kA650000000GsPJCA0 to make sure when it submit it will get values from url parameters.

- My  problem on here is : Normally, this form just submit to the server to handle register. Beside that, when this form submmited, i also need it submit to Marketo for tracking. That a reason, Marketo form will be submit via iframe.

<iframe id="mktoformhidden" name="mktoformhidden" style="display:none; visibility:hidden;">
</iframe>

When i submit marketo form, it will be target to this iframe.

So, i need pass the url parameter into iframe to make sure when submit form, hidden fields will automatic get values from url parameters. But on this iframe, as you can see, it haven't src. I had try to add this to iframe:

$("#mktoformhidden").src = window.location.href;

but it doesn't work well.

What's the iframe src should be on here?

 

Thanks,
 

 

Tags (1)
2 REPLIES 2
Kenny_Elkington
Marketo Employee

Re: How do I pass UTM parameters to an iframe?

Hey Nam,

This article provides a method which can be used to pass URL parameters into an iframed Marketo form: http://community.marketo.com/MarketoResource?id=kA650000000GuKCCA0
Anonymous
Not applicable

Re: How do I pass UTM parameters to an iframe?

Thanks Kenny,

I already do that. I just want to know there is a way to pass value from URL parameters to hidden fields automatic as when you submit Mkto form in landing page don't using submit to iframe.