decentraland / explorer

🌎 Explore Decentraland from a web browser
https://explorer.decentraland.org
Apache License 2.0
78 stars 39 forks source link

feat: Remove gtag.js (Google Tag Manager) and upgrade Segment.js #2467

Closed sicarul closed 3 years ago

sicarul commented 3 years ago

We are loading google tag manager (gtag.js) which serves no purpose (We already have google analytics data through segment.js) - I'm also upgrading segment.js to use their new analytics v2.0 feature that reduces the library's weight and improves the performance of tracking data from the browser:

https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#getting-started

Let me know if you have any concerns (Testing segment.min.js goes from 57kb to 23kb when the server side flag is on, i only enabled it temporarily while testing on .zone to test)

github-actions[bot] commented 3 years ago

After the CI passes:

sicarul commented 3 years ago

I'm checking how to fix the failed test, vs code adds that semicolon...