-
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
Turn scroll tracking on for various pages #2324
Conversation
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.
Nice one! looks a big improvement on the masses of configuration in: https://github.com/alphagov/govuk_publishing_components/pull/2548/files
I think I've caught a small issue with guides, otherwise I've done a quick skim the paths match the source PR but I've not been too thorough.
"/taking-goods-out-uk-temporarily/get-an-ata-carnet", | ||
] | ||
|
||
full_url = [@content_item.base_path, @content_item.part_slug].join('/') |
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.
I'm not sure this will operate correctly, given the paths you have listed above.
I assume we're expecting part_slug to sometimes be nil in order to have paths like "/council-housing", however if we do ["/council-housing", nil].join("/")
we get /council-housing/
. Perhaps you want to do [@content_item.base_path, @content_item.part_slug].compact.join('/')
?
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.
Great spot, thanks! Have updated.
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.
The trello card links to a spreadsheet of all these URLs and some more details about them, including what the original tracking was and what changes have been made. Each one falls into one of these categories:
- not needed and scroll tracking has (probably already) been removed
- was tracking headings but content has changed so no tracking was occurring, so have removed tracking
- was tracking headings or percentages so has been migrated to the new scroll tracker
c51c656
to
e0ca197
Compare
What
Turn on scroll tracking for various pages.
NOTE this change depends on this change in the components gem being deployed to
static
at the same time, otherwise duplicate or no scroll tracking events may occur.Why
We're retiring the old scroll tracker and migrating all pages that use it to the new one.
Visual changes
None.
Trello card: https://trello.com/c/sdugtMbX/37-migrate-to-new-scroll-tracker