From 665f19858d152f8e4d3c4831a8798ff9e05fc21e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 24 Sep 2019 19:11:22 +0200 Subject: [PATCH] try #3065 --- resources/public/js/gtag.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/public/js/gtag.js b/resources/public/js/gtag.js index f3712e3..2d33eae 100644 --- a/resources/public/js/gtag.js +++ b/resources/public/js/gtag.js @@ -43,7 +43,7 @@ cubistga.prototype.event = function (action, category, label, value, noninteract if (noninteraction === undefined) { noninteraction = false; } - if (options === undefined) { + if (options === undefined || options === null) { options = {}; } options.non_interaction = noninteraction; @@ -56,7 +56,6 @@ cubistga.prototype.event = function (action, category, label, value, noninteract if (undefined !== value && null !== value) { options.value = value; } - console.log('gtag event', action, options); return gtag('event', action, options) }; -- 2.39.5