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

Update A/B bucket parsing to match new meta tag format #57

Merged
merged 1 commit into from
Jan 30, 2017
Merged

Conversation

suzannehamilton
Copy link
Contributor

The syntax of the A/B testing meta tag has been changed so that it fits the format expected by the Google Analytics code (alphagov/frontend#1110). This commit updates the tag parsing to extract the test name and current buckets from the new format.

Old format:
<meta name="govuk:ab-test:Example:current-bucket" content="A">

New format:
<meta name="govuk:ab-test" content="Example:A">

Trello:
https://trello.com/c/g9OyC7Pn/310-tell-google-analytics-about-a-b-tests

The syntax of the A/B testing meta tag has been changed so that it fits
the format expected by the Google Analytics code. This commit updates
the tag parsing to extract the test name and current buckets from the
new format.

Old format:
<meta name="govuk:ab-test:Example:current-bucket" content="A">

New format:
<meta name="govuk:ab-test" content="Example:A">
@tijmenb tijmenb merged commit 6c9c824 into master Jan 30, 2017
@tijmenb tijmenb deleted the parse-meta branch January 30, 2017 16:29
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.

None yet

2 participants