Track Form Submission Data in iFrame | Community
Skip to main content
October 16, 2015
Solved

Track Form Submission Data in iFrame

  • October 16, 2015
  • 3 replies
  • 4699 views

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.
Best answer by jhammons-1

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).

3 replies

jhammons-1Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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).

Alexis_Cazes_
Level 10
October 16, 2015

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

Level 3
October 8, 2024

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

Alexis_Cazes_
Level 10
October 16, 2015

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