-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add some analytics to the brexit child taxon pages #2123
Conversation
708205d
to
9d890da
Compare
9d890da
to
472001a
Compare
472001a
to
80143ef
Compare
80143ef
to
4b4c4b1
Compare
4b4c4b1
to
7ba9578
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Frontend and tracking look great! Not confident to assess the Nokogiri-based parser though – you might want to wait for Simon for that
7ba9578
to
15b2ffe
Compare
15b2ffe
to
cac3123
Compare
- Whitehall sends the body content of detailed_guides as a string of html in the details attribute of the content item. The brexit child taxon pages are detailed_guides but we need to add some tracking to the links contained in this blob. So we need to parse it first.
cac3123
to
a6e81c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅ Obvs we should get Ash to kick the tyres, but merge away
This was added [here](#2123) and is no longer being used.
What
We need to add some tracking to the links on the new brexit child taxon pages. Because the content of detailed guides is sent to government-frontend as a string of html in the details hash of the content item, we need to parse it before we can add the data attributes. See commit message for more information.
To test this works:
But if that is a bit of a faff here are some screen shots:
trello https://trello.com/c/RqR5gkX2/1541-add-tracking-to-brexit-child-taxon-pages