diff -u b/google_analytics.module b/google_analytics.module --- b/google_analytics.module +++ b/google_analytics.module @@ -642,6 +642,7 @@ $page_match = TRUE; } + // Allow modules to define if the google_analytics JS code should be added. \Drupal::moduleHandler()->alter('google_analytics_visibility_pages', $page_match); } return $page_match; only in patch2: unchanged: --- /dev/null +++ b/google_analytics.api.php @@ -0,0 +1,36 @@ +getPath()) { + $page_match = FALSE; + } +} + +/** + * @} End of "addtogroup hooks". + */