Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookieless A/A test #1951

Merged
merged 1 commit into from
Jan 15, 2021
Merged

Add cookieless A/A test #1951

merged 1 commit into from
Jan 15, 2021

Conversation

karlbaker02
Copy link
Contributor

@karlbaker02 karlbaker02 commented Dec 23, 2020

This PR adds a new Cookieless A/A test, which sends hit-only data to analytics up until cookies have been accepted by the user. This is necessary to understand whether we can rely on the approach offered by our CDN to reliably assign users to a variant of an A/B test and maintain that variant, such that we'd expect to see an even distribution of users across all active variants of a test (or according to any prescribed percentages of variants).

This PR should not be merged until we're ready to turn on the A/A test.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@karlbaker02 karlbaker02 marked this pull request as ready for review December 23, 2020 12:44
@bevanloon bevanloon temporarily deployed to government-f-add-cookie-bzvk5m December 23, 2020 12:44 Inactive
@karlbaker02 karlbaker02 changed the title Add cookieless A/A test [DO NOT MERGE] Add cookieless A/A test Dec 23, 2020
@karlbaker02 karlbaker02 force-pushed the add-cookieless-test branch 4 times, most recently from 4cee042 to ba0437e Compare January 14, 2021 07:46
@karlbaker02 karlbaker02 changed the title [DO NOT MERGE] Add cookieless A/A test Add cookieless A/A test Jan 14, 2021
@karlbaker02 karlbaker02 requested a review from DilwoarH January 14, 2021 09:15
@karlbaker02 karlbaker02 force-pushed the add-cookieless-test branch 2 times, most recently from 980bfd0 to aef8a7a Compare January 14, 2021 16:27
This commit adds the cookieless A/A test to government-frontend, which fires on every request. The purpose of the cookieless A/A test is to test an approach with our CDN which does not use cookies for A/B testing, and is something that we intend to use to A/B test the cookie consent banner should the A/A test be successful; as the cookie consent banner is presented up until users either consent to or decline cookies, we need to be able to understand which variant a user falls in before they have consented to cookies. The data involved in this is the variant of the test only - no other data is being sent to analytics, and data that is generally sent by default has been masked by hardcoding the various properties.

This test has been approved by IA on the basis set out above, for collecting only variant data.

In terms of the changes in this commit, there is _some_ duplication with the cookieless-tracker.js file, which has been largely copied from _Static_ but scoped only to send the data that we need to send. This approach has been verified with @DilwoarH.
@DilwoarH
Copy link
Contributor

A Review date has been put in for 27th of Jan 2021 to decide on how we will approach this going forward.

@karlbaker02 karlbaker02 merged commit a958ba8 into master Jan 15, 2021
@karlbaker02 karlbaker02 deleted the add-cookieless-test branch January 15, 2021 10:20
karlbaker02 pushed a commit that referenced this pull request Feb 5, 2021
This commit removes the cookieless A/A test introduced in #1951.
karlbaker02 pushed a commit that referenced this pull request Feb 5, 2021
This commit removes the cookieless A/A test introduced in #1951.
karlbaker02 pushed a commit that referenced this pull request Feb 11, 2021
This commit removes the cookieless A/A test introduced in #1951.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants