Skip to content

Conversation

@adamshire123
Copy link

@adamshire123 adamshire123 commented Feb 6, 2026

Why these changes are being introduced

  • Matomo tracking code was causing Firefox to freeze and display a warning about the page slowing Firefox down, so we are removing it completely.

    • How we already tried to resolve the issue:
      • Adding the tracking code during bootstrapping
      • Adding the tracking code in custom.js
      • Disabling the "Enhanced Tracking Protection" in Firefox
    • Primo NDE uses mixpanel for tracking UI interactions which should cover the majority of
      what we would have used Matomo for.
  • We also want to avoid conflicts with libchat widget script injection and the remote app bootstrapping

How this addresses that need

  • Removes Matomo tracking code injection
  • Moves the libchat injection point after the remote app is bootstrapped

Side effects of this change

None

How can reviewer(s) test

new code is live here https://mit-psb.primo.exlibrisgroup.com/nde/fulldisplay?query=compendex&tab=all&search_scope=all&searchInFulltext=false&vid=01MIT_INST:NDE&lang=en&docid=alma990008888900106761&adaptor=Local%20Search%20Engine&context=L&isFrbr=false&isHighlightedRecord=false&state=

  • doesn't freeze in firefox
  • libchat widget works

Relevant ticket(s)

https://mitlibraries.atlassian.net/browse/NDE-3
https://mitlibraries.atlassian.net/browse/NDE-4

@adamshire123 adamshire123 requested review from djanelle-mit and removed request for JPrevost, jazairi and matt-bernhardt February 6, 2026 17:51
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.

1 participant