Uncaught TypeError: Drupal.AjaxCommands is undefined

Created on 20 March 2025, 16 days ago

Hi all

I am using 2.08 and Drupal 11

when I enable my container at /admin/config/services/google-tag I get this console error:

Uncaught TypeError: Drupal.AjaxCommands is undefined
    <anonymous> https://example.com/modules/contrib/google_tag/js/gtag.ajax.js?stf9q9:14
    <anonymous> https://example.com/modules/contrib/google_tag/js/gtag.ajax.js?stf9q9:17
gtag.ajax.js:14:3

line 14 =

Drupal.AjaxCommands.prototype.gtagEvent = function (ajax, response) {

Any ideas please?

💬 Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇬🇧United Kingdom juc1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024