Navigations within a PWA are not the same as normal website navigations. A full page refresh will cause the page to completely refresh and reinitialize the resources that this page requires. A PWA navigation only refreshes the page content.
Always run your experiment under the following navigation scenarios:
- Navigate to the page where the experiment is expected and make sure that it is injected
- Navigate away from the experiment and make sure that it is cleaned up
- Navigate back to the experiment and make sure that it is re-injected
- Do a browser refresh and make sure that the experiment is injected
If there are links or anchors injected, make sure the PWA’s internal links don’t cause a full page refresh.
If the experiment is not well guarded, experiments could potentially appear in unexpected places. Make sure to check experiments with similar page templates or components and verify that the experiment appears as expected.
If an injected experiment manipulates existing DOM elements in the PWA, make sure that these DOM elements are working as expected by interacting with them.