Read custom data


(snober) #1

Hi,

Responses from piwik forum is great style_emoticons/<#EMO_DIR#>/rolleyes.gif

I am adding custom data in javascript side like below example

[…]
var user = { ‘userId’ : user_id };
piwikTracker.setCustomData( user );
piwikTracker.trackPageView();
[…]

How can i read this in server side (piwik)…can u share small example…i couldn’t get this from the reference url dev.piwik.org/trac/wiki/API/Reference

Thanks & Regards,
Snober


(Matthieu Aubry) #2

FYI, I will be working on putting ‘Visitor custom variable’ in Piwik in the next release. Keep an eye on the ticket: Custom Variables support: new JS API and new reports · Issue #1984 · matomo-org/matomo · GitHub or the next release.