HUB-167: Recognise and report Verify users on GOV.UK #944
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://govukverify.atlassian.net/browse/HUB-167 : Test - verify user behaviour on interstitial page GOV.UK
We'd like to see what choices existing Verify users make on the
service sign-in page. Therefore we're loading a JS snippet from Verify to make
an ajax call and based on the user cookie to decide whether it's a
Verify user and report accordingly. This is a baseline test to learn about the users' behaviour.
The js that is referenced is in verify-frontend -> https://github.com/alphagov/verify-frontend/blob/master/public/get_hint.js
It receives a boolean answer to if the user has the journey hint cookie present and triggers a Google Analytics event with the presence or absence of the hint together with the option the user selected.
The cookie that determines if a user has visited verify before is issued from the verify domain and is covered under the verify cookie policy.
Co-Authored-by: Jakub Miarka [email protected]
Visual regression results:
https://government-frontend-pr-944.surge.sh/gallery.html
Component guide for this PR:
https://government-frontend-pr-944.herokuapp.com/component-guide