Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Wrong processing _paq.push setCustomVariable

$
0
0

@Georgess wrote:

I'm using piwik tracker client code in JSP and piwik server is not on my machine.
But something goes wrong on client code.

On JSP page
paq.push(['setCustomVariable', 1, 'somevarID', "textstring/<%= setval%>", 'page']);

On html generated page
paq.push(['setCustomVariable', 1, 'somevarID', "textstring/10867/67", 'page']);

In web browser from Firebug Params in cvar I got this

{"1":"[\"somevarID\", \"text_string//10867/67\"]"}

but actually I need this
{"1":["somevarID", "text_string//10867/67"]}

Why all is processed as single string?
I can't find what's wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles