Tracking custom link click within multi step form in iframe | Community
Skip to main content
Level 3
April 24, 2024
Solved

Tracking custom link click within multi step form in iframe

  • April 24, 2024
  • 1 reply
  • 843 views

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.

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 Jennifer_Dungan

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.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 24, 2024

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.

Level 3
April 24, 2024

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

 

Thanks

Mahimitra.

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
April 24, 2024

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.