Google Analytics upgrade center

Many sites and applications use outdated measurement libraries to send data to Google Analytics. It is strongly recommended that you upgrade to use a modern measurement library.

What should I use?

Web

Web deployments should use gtag.js to send data to Google Analytics. If you're currently using analytics.js, upgrade analytics.js walks you through the process of updating.

Mobile

Mobile deployments should use the Firebase SDK to send data to Google Analytics. You should consider also using Google Tag Manager for Android or iOS so you can manage your measurement implementation without needing to rebuild and publish an app update.