Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

button click event tag json error #8412

Closed
bangdon2 opened this issue Jul 23, 2015 · 5 comments
Closed

button click event tag json error #8412

bangdon2 opened this issue Jul 23, 2015 · 5 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@bangdon2
Copy link

Freedom page

I used that javascript

but it is error

at Object.stringify (native)
at appendCustomVariablesToRequest (http://mng.logbox.co.kr/piwik.js:3108:60)
at getRequest (http://mng.logbox.co.kr/piwik.js:3118:28)
at logEvent (http://mng.logbox.co.kr/piwik.js:3773:31)
at http://mng.logbox.co.kr/piwik.js:5312:25
at trackCallback (http://mng.logbox.co.kr/piwik.js:3870:17)
at Object.Piwik.trackEvent (http://mng.logbox.co.kr/piwik.js:5311:21)
at Object.apply as push
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 }

@tsteur
Copy link
Member

tsteur commented Jul 24, 2015

Can you add the Piwik code that you use to set custom variables?

Do you maybe use prototype.js library (version 1.6.1 or so) by any chance on your website?

@bangdon2
Copy link
Author

<a href="#" onclick="javascript:_paq.push(['trackEvent', 'Menu', 'Freedom']);">Freedom page</a>

I used that javascript

but it is error

@bangdon2
Copy link
Author

my site mng.logbox.co.kr

I not set custom variables

just set /a href="#" onclick="javascript:_paq.push(['trackEvent', 'Menu', 'Freedom']);">Freedom page</a/

@tsteur
Copy link
Member

tsteur commented Jul 24, 2015

I tested this example link and it works for me. Can you send us a link where it is actually implemented so we can reproduce? Feel free to send us via email to hello @ piwik.org or post here.

@mattab
Copy link
Member

mattab commented Sep 18, 2015

Please re-open if you still have a problem

@mattab mattab closed this as completed Sep 18, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants