Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Tracking custom link click within multi step form in iframe

Avatar

Level 3

Hello, 

 

I want to place floodlight tag on last step of form in an iframe( say 4 steps ). On last step when you click submit I need to place floodlight tag for which i have code. And i can access buttons using iframe.content but button is on last step. There is rule which fires on domready of this page, hence i cant access that element on DOM ready and i need to write code in same rule. 

 

Any idea about js script to solve this.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

Good luck! Iframes are a bit of a pain to work with, but I get it... when you have a directive to do something you have to find a solution.

 

If you can't get anything added, then we can continue to investigate some "hacky" solutions... but let's hope it won't come to that.

View solution in original post

3 Replies

Avatar

Community Advisor and Adobe Champion

Is the code / page inside the iframe controlled by your company? As in, can you embed code on the button that could send a postMessage to the parent, and you can listen for that?

 

Iframe security and implementations are tricky at the best of times (and downright impossible some of the time)... 

 

The most reliable solution would be to create communication between the child and parent frames, and leverage that to trigger your tracking calls.

Avatar

Level 3

Yeah, I will find out if we can embed any listener on that button.

 

Thanks

Mahimitra.

Avatar

Correct answer by
Community Advisor and Adobe Champion

Good luck! Iframes are a bit of a pain to work with, but I get it... when you have a directive to do something you have to find a solution.

 

If you can't get anything added, then we can continue to investigate some "hacky" solutions... but let's hope it won't come to that.