alphagov / govuk_frontend_toolkit

❗️GOV.UK Frontend Toolkit is deprecated, and will only receive major bug fixes and security patches.
MIT License
403 stars 107 forks source link

🚧 Add tracking to see which JavaScript is being used and where #484

Closed injms closed 3 years ago

injms commented 4 years ago
injms commented 4 years ago

Though this pull request is a draft, this is ready for review. It's marked as draft to prevent it being merged in as this is a temporary thing.

NickColley commented 4 years ago

Respects the user's settings by checking for the presences of the Google Analytics object - this won't be present if a user hasn't opted into tracking.

You should consider a more explicit opt-in than checking to see if the analytics module is present.

injms commented 3 years ago

This has served it purpose, so I can now close it.