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 scroll tracker config entries #2052

Merged
merged 7 commits into from
May 10, 2021
Merged

Conversation

alex-ju
Copy link
Contributor

@alex-ju alex-ju commented May 6, 2021

What

I learned that our scroll-tracker script uses a large list of URLs and headings that are often outdated so I manually checked each page and remove the ones that don't fire events anymore because of redirects or content changes.

The approach clearly has a massive flaw around maintenance, not to mention that PAs probably have no idea whether the URLs and headings are not in sync anymore or people don't reach a certain section which can potentially result in ill-informed data-based decisions.

After clean-up, we add a new entry for the results page on next-steps-for-your-business flow.

Why

Because we ship code that has no effect on any page.

Trello card

Visual Changes

No visual changes

@bevanloon bevanloon temporarily deployed to govuk-publis-clean-up-s-bywsrf May 6, 2021 17:33 Inactive
@alex-ju alex-ju marked this pull request as ready for review May 7, 2021 15:08
@bevanloon bevanloon temporarily deployed to govuk-publis-clean-up-s-bywsrf May 7, 2021 15:08 Inactive
@alex-ju alex-ju force-pushed the clean-up-scroll-tracker branch from f6eb6ca to cd1ef4b Compare May 10, 2021 11:00
@bevanloon bevanloon temporarily deployed to govuk-publis-clean-up-s-bywsrf May 10, 2021 11:00 Inactive
@alex-ju alex-ju changed the title Clean up scroll tracker script Update scroll tracker config entries May 10, 2021
alex-ju added 7 commits May 10, 2021 12:02
These URL now redirect to https://www.yourpension.gov.uk – no chance we can track on their site using this script 🙂
Redirect to `/guidance/covid-19-coronavirus-restrictions-what-you-can-and-cannot-do` and `/guidance/get-help-with-remote-education`, respectively
The headings on this page changed almost 2 years now, not sure there's any value in updating them since nobody seems to be checking data on it.
Redirects to `understandinguniversalcredit.gov.uk`
Redirects or missing headings
Hardcoding headings in this script seems far than ideal, but given the window of time we have available we'll continue with this approach and plan for a refactor.
@alex-ju alex-ju force-pushed the clean-up-scroll-tracker branch from cd1ef4b to f58535a Compare May 10, 2021 11:02
@bevanloon bevanloon temporarily deployed to govuk-publis-clean-up-s-bywsrf May 10, 2021 11:03 Inactive
@alex-ju alex-ju requested a review from theseanything May 10, 2021 11:05
@alex-ju alex-ju merged commit dbf9a7f into master May 10, 2021
@alex-ju alex-ju deleted the clean-up-scroll-tracker branch May 10, 2021 11:22
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