This PR allows the Chrome extension to show different bucket names than just A and B. Now that we are adding functionality to govuk_ab_testing to rename variants, we need to allow the extension to show those. In order to know what variants we can choose from in a given A/B test, we've added a new data attribute to the analytics metatag called data-allowed-variants which lists the valid values. If no data attribute exists (for backwards compatibility), we default to A and B.
This PR allows the Chrome extension to show different bucket names than just A and B. Now that we are adding functionality to
govuk_ab_testing
to rename variants, we need to allow the extension to show those. In order to know what variants we can choose from in a given A/B test, we've added a new data attribute to the analytics metatag calleddata-allowed-variants
which lists the valid values. If no data attribute exists (for backwards compatibility), we default toA
andB
.Here are the dependencies:
And the related PRs that need this change:
Part of: https://trello.com/c/S5jp2jih/179-setup-technical-implementation-for-a-b-testing-the-blue-box
Here is how it looks in development: