Liftpatch

Module atlas › google_analytics

Is google_analytics compatible with Drupal 11?

Yes. google_analytics supports Drupal 11 from version 4.0.3.

Projectdrupal.org/project/google_analytics (module)
What it doesAllows your site to be tracked by Google Analytics by adding a Javascript tracking code to every page.
Latest stable release4.0.3 (core: ^9.5 || ^10 || ^11)
First release supporting Drupal 114.0.3
Best upgrade step (runs on 10 and 11)4.0.3
Drupal 12Not declared yet
Maintenance statusActively maintained
Security advisory coveragecovered

Upgrading from Drupal 10

While you're still on Drupal 10, update google_analytics to 4.0.3 with composer require drupal/google_analytics:^4.0. Then run drush updb. That release works on both 10 and 11, so it won't block the core upgrade.

Drupal 10 security support ends on December 9, 2026. To see every module on your site at once, scan your composer.lock. The scan is free, runs in your browser, and gives you a fixed price for the whole upgrade.