Visit level Custom variable

Hi Matt,

Do we need to set visit level custom variable for every page ? Currently the value is set on Page 1, as we move across Page 2, 3…and so on the value get set to ‘Unknown’.

Currently, am setting up the Age using below code, per visit, the value changes to unknown upon navigation from page 1 to page 2.

piwikTracker.setCustomVariable(2, ‘Age’,band,‘visit’);

Thanks for the help.

Apparently, visit scope variable is overriden for each page, so it’s taken on the last page of the visit, guess you need to set it for all the pages, unless it can be somehow changed in the settings to count first one.

Piwik will remember only the latest value specified for a slot for a ‘visit’ scope custom variable