Track Form Submission Data in iFrame | Community
Skip to main content
Oct 16, 2015 2:26 AM UTC
Solved

Track Form Submission Data in iFrame

Hello,

On our website we are loading a form to a page via an iframe: (http://www.medline.com/clinical-solutions/empower/more-info/)

Trying to figure out what code we need to implement within the iFrame to collect data on the submit button.

Any tips/help appreciated.

Thanks,

John

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
jhammons-1Accepted solution
Employee
Oct 16, 2015 2:26 AM UTC

Hi John, since your iframe and parent are on the same domain, you should be able to use window.parent in the iframe to access the s object and s.t() call defined on your main page. From there, you can update your SendForm() function to verify the form data, set variables on the s object, and then call s.tl() directly (you probably don't want to call s.t or you'll get two page views).

4 replies

jhammons-1Accepted solution
Employee
Oct 16, 2015 2:26 AM UTC

Hi John, since your iframe and parent are on the same domain, you should be able to use window.parent in the iframe to access the s object and s.t() call defined on your main page. From there, you can update your SendForm() function to verify the form data, set variables on the s object, and then call s.tl() directly (you probably don't want to call s.t or you'll get two page views).

Translate
Alexis_Cazes_
Level 10
Oct 16, 2015 2:26 AM UTC

Hi John,

 

You will want to use custom link tracking on the onClick event of the submit button.

The documentation is here. : http://microsite.omniture.com/t2/help/en_US/sc/implement/index.html#Manual_Link_Tracking_Using_Custom_Link_Code

Let me know if you have any question

 

Best regards.

 

Alexis

Translate
Level 3
Oct 8, 2024 9:11 AM UTC

link is can't accessible, can you please provide the correct url.

Translate
Alexis_Cazes_
Level 10
Oct 16, 2015 2:26 AM UTC

Hi John,

 

Please check : http://helpx.adobe.com/analytics/using/appmeasurement-iframes.html

And you most likely will want to use custom link tracking to track data when you click on button, so s.tl() call : http://microsite.omniture.com/t2/help/en_US/sc/implement/index.html#Manual_Link_Tracking_Using_Custom_Link_Code

Best regards.

 

Alexis

Translate