Uncaught ReferenceError: _gaq is not defined - Switch to universal analytics - google-analytics

I recently updated to universal analytics and now push event data to the datalayer, rather than using the old _gaq. I've gone through my code and removed all traces of _gaq, however, when events are firing i'm getting the following error message:
Uncaught ReferenceError: _gaq is not defined
It appears that there are still some references inside the following file:
http://www.googletagmanager.com/gtm.js
Is it possible to refresh this script so that it removes any references to _gaq?
Any help would be much appreciated

Related

QWebEngine hinders github navigation by default

I'm working on a web browser and without changing any QWebEngineSettings, github can't load the necessary javascript.
QWebEngines javascript output when visiting github
The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled.
Uncaught TypeError: this.toggleAttribute is not a function
Uncaught TypeError: this.toggleAttribute is not a function
Uncaught (in promise) ReferenceError: AbortController is not defined
...
And so on, I've tried setting
settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);
And made sure they are enabled, yet without any success. Do anyone happen to know which security policy I have to change to make github work?
Upgrading from Qt 5.9.9 to 5.15.0 solved the issue.

gtm: Uncaught TypeError: Cannot set property 'href' of undefined

I'm doing some maintenance on a website however now all links on the page are not functioning. Seeing the below error in console:
Uncaught TypeError: Cannot set property 'href' of undefined
Opening any link in a new tab works fine, if we remove any link's gtm event handler it works.
I'm not sure where to start debugging and finding the cause of the issue. Any help would be appreciated.

Firebase works on custom web app but not on wordpress : Uncaught ReferenceError: firebase is not defined

I am trying to add my firebase project to my wordpress website (following the official documentation) but got Uncaught ReferenceError: firebase is not defined
I tried adding firebase, the same way, to a custom web app and it worked.
I added the code snippet provided by Firebase, in the body tag (as recommended by Google). You can check the code on the website : https://testing.myfprod.fr
It worked instantly on my custom web project but I am still getting the error Uncaught ReferenceError: firebase is not defined on wordpress.
Unfortunately I did not find an answer, in a previously asked question, that could solve my problem.
I found out that LSCache was configured to defer js script. I disabled this option and it now works.

Uncaught ReferenceError: googletag is not defined

Doubleclick for Publishers (DFP)
Version: 8.x-1.x-dev
We are using DFP module in our D8 application and DFP ad blocks work fine within site. We are showing them as blocks on multiple pages, even we embeded ad blocks in twig files and they worked fine.
We have widgets for third party sites. When we render dfp ad block in widget's block twig file and use that widget in any third party site, ad does not render and it starts giving Uncaught ReferenceError: googletag is not defined.
Are you instantiating the googletag script in the html beforehand?
If it is already being instantiated and still undefined, I would recommend a new call similar to this user's commit.
https://github.com/alaborderie/ng2-ad-dfp/commit/fd25b0463db1cd8cdfc81e64b5f604cce7770dc5

Unable to get property 'entries' of undefined or null reference

Does anyone encountered this error message? This only occurs using IE specifically version 11.
Google Maps API Error
I just added version on the version on the js reference.
<script async defer
src="https://maps.googleapis.com/maps/api/js?v=3.29&
key=YOUR_API_KEY&callback=initMap">
See below post for more information.
Google Maps API Error with no changes in the page code

Resources