@anonymous-piwik-user opened this Issue on March 8th 2014

There is a bug in the track if you are using the proxy script. Due to the proxy script the quotes are escaped in the json-string. So it is not possible for the tracker to get the json-string and log the CustomVariables. Here ist a hotfix:

file: core/Tracker/Request.php
line: 350


        if (is_array($this->params) && array_key_exists($parameter, $this->params) && !empty($this->params[$parameter])) $this->params[$parameter]=stripslashes($this->params[$parameter]);

I don't know if it is possible to dected the Request comes from the javascript or the proxyscript so you can modify the if-query...


@mattab commented on March 9th 2014 Member

Thanks for the report! we'll try reproduce and fix it

@mattab commented on May 14th 2014 Member

In dd74312d66e265e92b8333fb1d29a99fee2140ad: Refs #4831 I could not reproduce this bug. So maybe it is because Magic quotes runtime was on on your server running the proxy script?

could you please try to apply this patch to your piwik.php on proxy and tell me if you still have the issue?

@mattab commented on May 14th 2014 Member
@anonymous-piwik-user commented on May 27th 2014


sorry for the Delay but that does not help.

Still get the quotes escaped. Example of a print_r($this->params):

    [cvar] => {\"3\":[\"_pks\",\"203.985.KCMY\"],\"4\":[\"_pkn\",\"\"],\"5\":[\"_pkc\",\"Brother DCP J315 W\"]}
    [_cvar] => {\"1\":[\"NLC-20140523\",\"o1\"]}

Have to insert my line (see above) every time after an update.


@mattab commented on December 19th 2014 Member

Cant' reproduce, please reopen if you still have issue

This Issue was closed on December 19th 2014
Powered by GitHub Issue Mirror