RTP Inside iFrame | Community
Skip to main content
August 30, 2017
Solved

RTP Inside iFrame

  • August 30, 2017
  • 1 reply
  • 3671 views

We are trying to include customized content on a login page hosted on an external domain. The login page includes an iframe of a Marketo page that we control. Are we able to use any of the RTP customization features inside the iframe that we control?

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 SanfordWhiteman

Hey Adam Andrews, got your fix. But I want to get a chance to test it w/you privately before pubbing it here. So if you follow me on Community we can talk about it before coming back here and updating.


Now blogged at blog.teknkl.com/rtp-in-iframe

1 reply

SanfordWhiteman
New Participant
August 30, 2017

Short answer: yes.

Longer answer: IFRAMEd documents are HTML documents like the top-level document (the one in your browser's location bar). As long as the top-level document doesn't place any execution restrictions on your IFRAME -- called "sandboxing," this can include turning off JS in the inner  IFRAME if the outer page owner desires, which would certainly affect RTP -- then it will work as usual. However, if the inner and outer docs come from totally different domains (with no common private parent domain) then they won't share cookies, so don't expect the outer domain to react to actions taken on the inner domain.

August 31, 2017

That's what I would have thought, but I am having trouble getting RTP to fire on any iframe, let alone cross domain. I have the RTP firing correctly on a Marketo page, but as a troubleshooting step I embedded it on another Marketo page and it's not working there either.

Veronica_Holme4
New Participant
September 1, 2017

Sorry if I'm stating the obvious but can you ensure you have the RTP code on the page? It's different from munchkin, and often when using Marketo landing pages for RTP people assume the RTP code is on there by default, and it is not.