How do I pass UTM parameters to an iframe? | Community
Skip to main content
December 4, 2013
Question

How do I pass UTM parameters to an iframe?

  • December 4, 2013
  • 2 replies
  • 1446 views

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,
 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Kenny_Elkington
Adobe Employee
Adobe Employee
December 4, 2013
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
December 5, 2013
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.