Hello, I am setuping Edge Visual Experiment test. ...
# ask-questions
a
Hello, I am setuping Edge Visual Experiment test. I am following this link: https://docs.growthbook.io/lib/edge/cloudflare What I have done: • Setup Cloudflare worker • Successfully created SDK Connection to my CF worker. Unclear: • What should I do in my project's FE part? • How can I enable Visual Experiment using Edge Worker? The tutorial says how to create Edge Worker but I don't know how to integrate it with Visual Experiment and make it start working actually returning two different page versions. Thanks 🙏
Thanks. I have already setup Edge worker experiment and it is working. However, I have some flickering when navigating from any other website's page to ab test page. When I access the ab test page directly by URL in a browser, it works instantly. I am using Angular framework and have added Script Tag SDK to the website. How can I resolve flickering when navigating to my page by Angular app?
h
It sounds like you have a SPA of sorts where the initial page load runs the experiment through the edge but navigation in that app (without page loads) do not. You need to do a few things to make this work. 1. Make sure the
url
property of the growthbook SDK changes each time Angular navigation happens. 2. Change your Edge environment variables a bit to allow hybrid visual tests (both edge and client):
RUN_VISUAL_EDITOR_EXPERIMENTS=everywhere