File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
dotcom-rendering/docs/development Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -255,3 +255,20 @@ These links are also in the [frontend admin](https://frontend.gutools.co.uk/anal
255255- Opt-out on PROD: ` https://theguardian.com/ab-tests/opt/out `
256256
257257You can use the same routes on CODE.
258+
259+ ### 6. Forcing yourself into a test locally
260+
261+ Use the opt-in and opt-out URL fragments to force yourself into or out of a test using a query parameter.
262+
263+ When opted-in, the test will override any mvt based assignment and you'll only be in the opted-in test group.
264+
265+ ** Opt-in Example**
266+
267+ - Articles: ` http://localhost:3030/Article/?ab-commercial-test-example=variant `
268+ - Fronts: ` http://localhost:3030/Front/https://www.theguardian.com/international?ab-commercial-test-example=variant `
269+ - Interactives: ` http://localhost:3030/Interactive/https://www.theguardian.com/global-development/ng-interactive/2022/jun/09/the-black-sea-blockade-mapping-the-impact-of-war-in-ukraine-on-the-worlds-food-supply-interactive?ab--commercial-test-example=variant `
270+
271+ You can verify that you're in the test by checking:
272+
273+ - Server-side tests: ` window.guardian.config.serverSideABTests ` in the browser console
274+ - Client-side tests: ` window.guardian.modules.abTests.getParticipations() ` in the browser console
You can’t perform that action at this time.
0 commit comments