If scope is 'visit', it will attempt to read the value set in the first party cookie created by Piwik Tracker
($_COOKIE array).
public getCustomVariable ( integer $id, string $scope = 'visit' ) : mixed | ||
$id | integer | Custom Variable integer index to fetch from cookie. Should be a value from 1 to 5 |
$scope | string | Custom variable scope. Possible values: visit, page, event |
return | mixed | An array with this format: array( 0 => CustomVariableName, 1 => CustomVariableValue ) or false |