Skip to main content

The redirect from Control to Treatment does not work automatically under the following conditions:

  1. When the user lands on the Control page via a link.

  2. When the user lands on the Control page via a window.location.href redirect.

  3. When the user lands on the Control page via a header('Location: <target_page>') redirect in PHP.

Under these conditions, the following occurs:

  1. The redirect from Control to Treatment does not work on the Control page.

  2. Impression events do not appear in the Live Events section.

  3. When calling experimentInstances in the browser console, an empty object is returned.

When does the redirect from Control to Treatment work?

If the user navigates to the Control page by typing the URL directly into the address bar and pressing Enter.

Under these conditions, the following occurs:

  1. The redirect from Control to Treatment works (provided the user is assigned to the Treatment variant).

  2. Impression events appear in the Live Events section.

  3. When calling experimentInstances in the browser console, the following object is returned:
    {$default_instance.af0e6e0ed4cedc30360b42ea2571d913.web: e}

Browsers: Safari, Chrome, Firefox
Integration: https://cdn.amplitude.com/script/<key>.experiment.js

Be the first to reply!

Reply