Re: Passing UTM Source, Medium info through iFrame and Form 2.0

Weisi_Kang
Level 2

Passing UTM Source, Medium info through iFrame and Form 2.0

Hi,

Does anyone know if it is possible to pull UTM parameters (source, medium, campaign, etc) into hidden fields on Form 2.0 that is on a Marketo landing page in an iFrame on a website? 

Context:
In the activity log, I've noticed that the "fills out form" activity does not include the UTM parameters (in the hidden fields) in the website URL. Additionally, it does not capture these UTM parameters in the referrer URL or the query parameters, making it hard to filter out in listening campaigns that we have set up to track leads who come from different sources. 

Thanks!
4 REPLIES 4
Anonymous
Not applicable

Re: Passing UTM Source, Medium info through iFrame and Form 2.0

This should be possible, but I am not sure if the iframe will cause complications here:

Please check out these two threads:

https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PuEeAAK

https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PvOVAA0
Weisi_Kang
Level 2

Re: Passing UTM Source, Medium info through iFrame and Form 2.0

Thanks - looks like I'm going to be contacting the developer for this! 
Anonymous
Not applicable

Re: Passing UTM Source, Medium info through iFrame and Form 2.0

I would also recommend sending them a link to this StackOverflow question:

http://stackoverflow.com/questions/20366731/how-can-i-pass-utm-parameters-from-url-to-an-iframe/
Josh_Hill13
Level 10 - Champion Alumni

Re: Passing UTM Source, Medium info through iFrame and Form 2.0

Yes, you need to do this via javascript. Also keep in mind if you use the Known Visitor option, the utms will not be passed w/o special coding.