Method |
Description |
|
__construct ( $params, boolean | string $tokenAuth = false ) |
|
|
authenticateSuperUserOrAdmin ( $tokenAuth, $idSite ) |
|
|
getBrowserLanguage ( ) : string |
Returns the language the visitor is viewing. |
|
getCurrentTimestamp ( ) |
|
|
getCustomVariables ( $scope ) |
|
|
getCustomVariablesInPageScope ( ) |
|
|
getCustomVariablesInVisitScope ( ) |
|
|
getDaysSinceFirstVisit ( ) : float | integer |
|
|
getDaysSinceLastOrder ( ) : boolean | float | integer |
|
|
getDaysSinceLastVisit ( ) : float | integer |
|
|
getForcedUserId ( ) |
|
|
getForcedVisitorId ( ) |
|
|
getGoalRevenue ( $defaultGoalRevenue ) |
|
|
getIdSite ( ) |
|
|
getIp ( ) |
|
|
getIpString ( ) : mixed | string |
|
|
getLocalTime ( ) : string |
|
|
getMetadata ( string $pluginName, string $key ) : mixed |
Get a request metadata value. Returns null if none exists. |
|
getPageGenerationTime ( ) |
1 hour |
|
getParam ( $name ) |
|
|
getParams ( ) |
|
|
getPlugins ( ) |
|
|
getRawParams ( ) : array |
Get the params that were originally passed to the instance. These params do not contain any params that were added
within this object. |
|
getTokenAuth ( ) |
|
|
getUserAgent ( ) |
|
|
getUserIdHashed ( $userId ) : string |
Matches implementation of PiwikTracker::getUserIdHashed |
|
getVisitCount ( ) : integer | mixed |
|
|
getVisitorId ( ) |
Returns the ID from the request in this order:
return from a given User ID,
or from a Tracking API forced Visitor ID,
or from a Visitor ID from 3rd party (optional) cookies,
or from a given Visitor Id from 1st party? |
|
isAuthenticated ( ) : boolean |
|
|
isEmptyRequest ( ) |
|
|
setCurrentTimestamp ( $timestamp ) |
|
|
setMetadata ( string $pluginName, string $key, mixed $value ) |
Set a request metadata value. |
|
setParam ( $name, $value ) |
|
|
setThirdPartyCookie ( $idVisitor ) |
Update the cookie information. |
|
truncateCustomVariable ( $input ) |
|
|