Свойство | Type | Description | |
---|---|---|---|
$columnName | string | This will be the name of the column in the log_visit table if a $columnType is specified. | |
$columnType | string | If a columnType is defined, we will create this a column in the MySQL table having this type. Please make sure MySQL will understand this type. Once you change the column type the Piwik platform will notify the user to perform an update which can sometimes take a long time so be careful when choosing the correct column type. |
Méthode | Description | |
---|---|---|
getName ( ) : string | The name of the dimension which will be visible for instance in the UI of a related report and in the mobile app. | |
onConvertedVisit ( |
This event is executed shortly after "onNewVisit" or "onExistingVisit" in case the visitor converted a goal. | |
onExistingVisit ( |
The onExistingVisit method is triggered when a visitor was recognized meaning it is not a new visitor. | |
onNewVisit ( |
The onNewVisit method is triggered when a new visitor is detected. This means here you can define an initial value for this user. By returning boolean false no value will be saved. Once the user makes another action the event "onExistingVisit" is executed. That means for each visitor this method is executed once. If you do not want to perform any action on a new visit you can just remove this method. |
Méthode | Description | |
---|---|---|
configureSegments ( ) | By defining one or multiple segments a user will be able to filter their visitors by this column. For instance show all reports only considering users having more than 10 achievement points. If you do not want to define a segment for this dimension just remove the column. |
protected configureSegments ( ) |
public onConvertedVisit ( |
||
$request | ||
$visitor | Piwik\Tracker\Visitor | |
$action | ||
Résultat | mixed | false |
public onExistingVisit ( |
||
$request | ||
$visitor | Piwik\Tracker\Visitor | |
$action | ||
Résultat | mixed | false |
public onNewVisit ( |
||
$request | ||
$visitor | Piwik\Tracker\Visitor | |
$action | ||
Résultat | mixed | false |
protected string $columnName | ||
Résultat | string |
protected string $columnType | ||
Résultat | string |