-
Notifications
You must be signed in to change notification settings - Fork 104
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
Remove multivariate test javascript #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me. 👍
* The multivariate test framework dynamically updates page content after the page has loaded to show variants to users which are tracked to GA * GOV.UK is the main user of this and have created a server-side alternative An example of a test that was created in an inaccessible way: alphagov/frontend#1228 (review) 4
86f1122
to
89a16ad
Compare
This sounds good to me @fofr ! When merged please update the manual page on A/B tests here: https://docs.publishing.service.gov.uk/manual/ab-testing.html |
Let me check with Polly on the content team about when this AB test should end cc\ @fofr @NickColley |
Multivariate testing using JS is being deprecated in govuk_frontend_toolkit: alphagov/govuk_frontend_toolkit#420 This avoids the risk of developers creating AB tests that are not accessible.
AB test documentation updated here: alphagov/govuk-developer-docs#292 |
Remove multivariate test library PR #420.
GOV.UK now has an alternative AB testing strategy which is server side. A server side approach prevents flashes of content. Deleting this logic will reduce the risk of creating tests that might be inaccessible, such as this: alphagov/frontend#1228 (review)
Even when no tests are running, GOV.UK includes this JS on every page:
https://github.com/alphagov/static/blob/master/app/assets/javascripts/application.js#L4
After discussion with @NickColley, on the belief that this has mainly been used by GOV.UK, we think this library could be removed. It would be a breaking change with a major version bump. Apps that still require the tests could copy the javascript across.
cc @carvil @alecgibson