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

Test alternative text for Transition navigation #1871

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Conversation

sihugh
Copy link
Contributor

@sihugh sihugh commented Oct 6, 2020

We want to test whether changing the text on the banner navigation improves click through rate. We want to keep the test simple, so we've just chosen a single, high traffic page as
victim.

The displayed navigation is determined in govuk_publishing_components, however we know how it works. If a certain taxonomy content_id is found in the taxon links of a content item, then a step by step banner (colloquially a "super breadcrumb") will be displayed using the title of the taxon.

If we intercept the content item before it is passed to the component, then we can tweak what is displayed.

https://trello.com/c/igPWXPvz/482-put-new-transition-taxon-live

Examples

This should show "The UK and EU transition: new rules for 2021"
This isn't tagged to Brexit so should just show its step by step header
This is tagged to Brexit, so should show "Transition period"

Before

Screenshot 2020-10-06 at 17 19 29

After

Screenshot 2020-10-06 at 17 19 04

⚠️ This application is Continuously Deployed: ⚠️

  • Merged changes are automatically deployed to staging and production.

  • Make sure you follow the guidance for deployments before you merge.

  • Check your branch is being deployed in the Release app, after merging.

@bevanloon bevanloon temporarily deployed to government-f-transition-osrely October 6, 2020 16:20 Inactive
We want to test whether changing the text on the banner navigation improves
click through rate. We want to keep the test simple, so we've just
chosen a [single, high traffic page](https://www.gov.uk/visit-europe-1-january-2021) as
victim.

The displayed navigation is determined in govuk_publishing_components, however
we know how it works. If a certain taxonomy content_id is found in the taxon links
of a content item, then a step by step banner (colloquially a "super breadcrumb")
will be displayed using the title of the taxon.

If we intercept the content item before it is passed to the component, then
we can tweak what is displayed.

https://trello.com/c/igPWXPvz/482-put-new-transition-taxon-live
@sihugh sihugh force-pushed the transition-super-bc branch from bb53730 to b58beb4 Compare October 6, 2020 16:24
@bevanloon bevanloon temporarily deployed to government-f-transition-osrely October 6, 2020 16:24 Inactive
Copy link
Contributor

@hannako hannako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't quite follow the setup methods in the test, but it works a treat 👍

@sihugh sihugh merged commit 0c4aa5a into master Oct 6, 2020
@sihugh sihugh deleted the transition-super-bc branch October 6, 2020 17:17
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