Problem with iframe
I am currently trying to test a new form on my site, which comes as an iframe (the leads are sent directly to my partner).
Here's the message I am getting once I insert the code in the experiment
TypeError: undefined is not a function (in function HTMLScriptElement, line 34, col 434)"
After I close this message, the form shows, but I can not track it and/or create a goal. Then when I leave the experiment and get back to it, I can't see the form anymore.
Here's the code for the iframe, in case that helps:
<div id='formsadis-iframe' data-uid='5241becc8497004fe079e00fe4157782859be66ba43bba790b'></div> <script src='//coupons.forma-dis.fr/sdk/sdk.js'></script>
Thanks for your help!
The visual editor will actually only load the parent page. The iframe element itself can be edited but the content within an iframe cannot be edited when loading the parent page. If you are looking to create an experiment of content within an iframe, I suggest loading the iframe's URL within Editor Settings. Please ensure the Optimizely snippet is installed on the iframe'd page.
More in this can be found in our knowledge base: https://help.optimizely.com/hc/en-us/articles/203916398-Load-pages-that-use-inline-frames-iFrames-.
Manager, Technical Support