A/B Test using Custom Code modification to turn on feature flag
Hello all,
My team is trying to run an AB test using 2 distinct flows throughout the form. We have collapsible sections and we're trying to figure out if having the topmost section always open would be better.
The way we've implemented this is by adding some control flow logic to see if the feature flag (named 'ALWAYS_SHOW_SECTION') is on the window and is true. The idea was to add a Custom Code modification to our A/B test in which we added
<script> window.ALWAYS_SHOW_SECTION = true; </script>
to the HEAD.
Locally, this strategy works, but when we try to do this through Adobe Target, it doesn't seem to change our logic.
Is this strategy sound? Does this strategy just not work on Adobe Target because of some asynchronous logic?
Thanks in advance
