diff --git a/modules/cms/console/scaffold/theme/tailwind/assets/src/js/theme.stub b/modules/cms/console/scaffold/theme/tailwind/assets/src/js/theme.stub index c37fa2b621..416aa12526 100644 --- a/modules/cms/console/scaffold/theme/tailwind/assets/src/js/theme.stub +++ b/modules/cms/console/scaffold/theme/tailwind/assets/src/js/theme.stub @@ -28,6 +28,6 @@ }); }(jQuery)); -if (typeof(gtag) !== 'function') { +if (typeof(gtag) !== 'undefined' && typeof(gtag) !== 'function') { gtag = function() { console.log('GoogleAnalytics not present.'); } }