Expand my Community achievements bar.

SOLVED

Track Form Submission Data in iFrame

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

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

Avatar

Community Advisor

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

Let me know if you have any question

 

Best regards.

 

Alexis

Avatar

Level 1

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

Avatar

Community Advisor

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

Best regards.

 

Alexis