Problems with google tag i think after it upgraded to 2.0.6

Created on 14 August 2024, 4 months ago
Updated 19 September 2024, 3 months ago

Problem/Motivation
We have been using our google_tag module on our site for a few years now.
All seemed okay until about a week or so ago.
We started getting a lot of javascript errors when the google_tag module was enabled.
We are on the latest version 2.0.6.
I see that the module was updated on the 25th July which would be about right although we aren't 100% sure of the exact date this issue started but must have been in the last 2 weeks or so as the error was only spotted this week.
All the errors (about 8) are some form of the one below but not exactly that one.
These stops any other javascript from running on the site including in the admin side of things.

drupal.js?v=9.5.11:14 Uncaught TypeError: Cannot read properties of undefined (reading 'apply')
at augmentedOnce (jquery.once.bc.js?v=9.5.11:25:20)
at Drupal.ajax.bindAjaxLinks (ajax.js?v=9.5.11:117:5)
at Object.attach (ajax.js?v=9.5.11:32:19)
at drupal.js?v=9.5.11:24:24
at Array.forEach ()
at Drupal.attachBehaviors (drupal.js?v=9.5.11:21:34)
at drupal.init.js?v=9.5.11:24:12
at HTMLDocument.listener (drupal.init.js?v=9.5.11:14:7)

Steps to reproduce

Drupal 9.5.11 and google_tag 2.0.6
Enable and configure the google tag in there and

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024