Home
TeamSite
Can Optimost optimize content inside iframes?
SarahOptimost
It depends on whether the page inside the iframe is on the same domain as the surrounding page or not (assuming the Optimost integration code has been placed on the page surrounding the iframe).
If the iframe page is in the same domain we can modify the content within it using the DOM just like for any other template. However if it is in another domain security restrictions mean we cannot modify it at all.
If only the iframe page is to be modified and only clicks within the iframe are to be tracked it is sensible to place the Optimost integration code within the ifrmae page rather than the parent page.
Find more posts tagged with
Comments
Shaochen
In the last case (when IFrame is in another domain and only the iframe page is to be modified and only clicks within the iframe are to be tracked), do we have to use third party cookie?
SarahOptimost
Whether we need to use a third party cookie will depend on whether the pages we want to track as KPIs (i.e. pages later in the funnel where we placed our counters) are in the same domain as the iFrame page. If they are, there shouldn't be any need to use a third party cookie. However, if tany of them are in a different domain then we will need a third party cookie.