If you try to A/B test a third-party widget by pasting its HTML or script tag directly into the Mida editor, it will break. Mida does not allow raw HTML or <script> tags in the visual editor.
Solution: Convert the widget’s HTML into JavaScript and inject it through the Edit JS panel.
This works for all external widgets.
How to Convert the Widget
Use ChatGPT to turn your widget snippet into safe JS and CSS injection.
Prompt to use in ChatGPT
Paste your widget snippet under the prompt.
Where to paste the code in Mida
Paste the JavaScript output into: Variation → Edit JS
Paste any CSS output into: Variation → Edit CSS
Example
Original (won’t work):
Converted (works):
Tips
Always load external scripts using document.createElement('script').
Inject HTML nodes using createElement and appendChild.
Inject CSS using:
This method allows you to A/B test any third-party widget by converting → pasting → testing.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article