Button click event tag json error


#1

Freedom page

I used that javascript

but it is error

at Object.stringify (native)
at appendCustomVariablesToRequest (Sign in - Piwik)
at getRequest (Sign in - Piwik)
at logEvent (Sign in - Piwik)
at Sign in - Piwik
at trackCallback (Sign in - Piwik)
at Object.Piwik.trackEvent (Sign in - Piwik)
at Object.apply [as push] (Sign in - Piwik)
at :2:6
at Object.InjectedScript._evaluateOn (:895:140)appendCustomVariablesToRequest @ piwik.js:3108getRequest @ piwik.js:3118logEvent @ piwik.js:3773(anonymous function) @ piwik.js:5312trackCallback @ piwik.js:3870Piwik.trackEvent @ piwik.js:5311apply @ piwik.js:580(anonymous function) @ VM1375:2InjectedScript._evaluateOn @ VM1370:895InjectedScript._evaluateAndWrap @ VM1370:828InjectedScript.evaluate @ VM1370:694

3108 lines
3106 // Custom Variables, scope "page"
3107 function appendCustomVariablesToRequest(customVariables, parameterName) {
3108 var customVariablesStringified = JSON2.stringify(customVariables);
3109 if (customVariablesStringified.length > 2) {
3110 return ‘&’ + parameterName + ‘=’ + encodeWrapper(customVariablesStringified);
3111 }
3112 return ‘’;
3113 }


(Matthieu Aubry) #2

Dear tory,

can you create a bug report on the issue tracker: Issues · matomo-org/piwik · GitHub
we will investigate and fix the issue, thanks