trackPageView does catch the custom variable. If I take a look at the http request, the javascript click event did append the custom variable as a GET parameter, but then nothing happens. It’s like the custom variable is ignored and skipped from DB.
It will work fine if I reverse to the “no proxy” async loading (just switching to the “real” piwik server url and piwik.php to piwik.js)
Any help ?
Hello matt, I posted a new topic where I am explaining the process : Piwik proxy hide url script doesn’t route custom variables ?
I tested with a simple word as value for my custom variable, that doesn’t work either.
And debugging http request doesn’t show anything strange, the cvar is here with right value encoded.
As I explained, it does work removing the proxy script, my variables are recorded so it’s obvious it has something to do with the script.
Here you go matt, a RAR with 2 simple html test pages : test1.html using the proxy script and test2.html not using the script piwik-proxy-hide-url_custom-variable-tests
I’m seeing something similar with eCommerce variables but it did occur to me that it might be related to the fact that my eCommerce var’s are only being called when the site is in secure SSL mode (HTTPS) rather than just unsecure (HTTP). This works fine when using the standard piwik.js call to the piwik server but not when using the proxy-hide-url script.