Skip to content

Upgrade DAP to v8.4 release#11539

Merged
aduth merged 2 commits intomainfrom
aduth-dap-8-4
Nov 25, 2024
Merged

Upgrade DAP to v8.4 release#11539
aduth merged 2 commits intomainfrom
aduth-dap-8-4

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 21, 2024

🛠 Summary of changes

Updates to patch and use latest version of Digital Analytics Program (DAP) analytics script, v8.4.

In the newer version of the DAP script, they've addressed one of the biggest reasons for maintaining our own copy; namely, the leaking of variables into the global namespace, and the lack of aggressive minification on the built artifact. It could be worth considering to switch back to the hosted version to avoid the maintenance overhead of version upgrades, but I'd like to see asynchronous loading of the analytics scripts first (upstream PR at digital-analytics-program/gov-wide-code#121). There are other benefits to maintaining our own copy, outlined in #11097.

The newer version is slightly larger:

yarn && NODE_ENV=production yarn build && brotli-size public/packs/digital-analytics-program-*.digested.js

Before: 6.79kb
After: 7.4kb
Diff: +0.61kb (+9%)

📜 Testing Plan

Run yarn build

Repeat Testing Plan from #11097

changelog: Internal, Analytics, Upgrade Digital Analytics Program to v8.4 release
@aduth aduth merged commit f53a5fd into main Nov 25, 2024
@aduth aduth deleted the aduth-dap-8-4 branch November 25, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants