alphagov / govuk-browser-extension

Chrome and Firefox extension for developers working on GOV.UK.
24 stars 5 forks source link

Read variant names from metatag #72

Closed carvil closed 7 years ago

carvil commented 7 years ago

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.

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:

custom-variants