# announcements


06/22/2023, 4:36 PM
Hi there, I’m trying to inject a js code via the visual editor but it seems that the code that I paste is inserted to each variation, do you have any clue? Also one of the variation is meant to redirect the user in another page, when I save the code I’m immediately redirected and I can’t reach the visual editor anymore 😄 Can you help?


06/22/2023, 4:38 PM
@swift-helmet-3648 do you know what could be happening here?


06/22/2023, 4:43 PM
Thank you Matteo, I will look into this shortly
Matteo - for your first problem, that shouldn't be happening. We only load the JS for the user's targeted variation and remove it if it changes for whatever reason. Can you provide more information about what you're experiencing or some screenshots? For the second problem, we are working on implementing a quick way to view and remove visual changes from a variation on the Experiment page. This should allow you to remove yourself from the impossible situation you're in. If you plan to keep the redirect, I would suggest creating another page on the Experiment page and pointing the Visual Editor to the page being redirected to. There you should be able to make visual changes to the page after the redirect.
Hi Matteo, regarding your 2nd problem, I've filed a bug here: and we have a solution in review, here: