2

I'm setting up a new Drupal 9 site.

I have added Google Analytics via Google Tag Manager.

I'm using Universal Analytics and these are my tags:

  • Track link clicks
  • Track page views
  • Track scroll depth

When I run page speed on my site, the only identified "Opportunity" is to Removed unused Javascript, which is Tag Manager + Analytics:

Remove unused JavaScript

Estimated savings: 0.15 s

Remove unused JavaScript to reduce bytes consumed by network activity. Learn more.
URL

/gtm.js?id=GTM-W8NJ62V(www.googletagmanager.com)
29.2 KB -> 13.5 KB

/analytics.js(www.google-analytics.com)
18.7 KB -> 5.3 KB

How do I improve this? Is there a way to set up Google Tag Manager/Analytics to deliver a more compressed version?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.