메소드 | 설명 | |
---|---|---|
detectGoalId ( $idSite, |
||
detectGoalMatch ( array $goal, |
Detects if an Action matches a given goal. If it does, the URL that triggered the goal is returned. Otherwise null is returned. | |
detectGoalsMatchingUrl ( integer $idSite, |
Look at the URL or Page Title and sees if it matches any existing Goal definition | |
detectIsThereExistingCartInVisit ( $visitInformation ) | ||
getGoalColumn ( $column ) | ||
getGoalDefinition ( $idSite, $idGoal ) | ||
getGoalDefinitions ( $idSite ) | ||
getGoalIds ( $idSite ) | ||
recordGoals ( Piwik\Tracker\Visit\VisitProperties $visitProperties, |
Records one or several goals matched in this request. |
메소드 | 설명 | |
---|---|---|
getItemRowCast ( array $row ) : array | Casts the item array so that array comparisons work nicely | |
getItemRowEnriched ( $goal, $item ) | ||
getRevenue ( integer | float $revenue ) : integer | float | Returns rounded decimal revenue, or if revenue is integer, then returns as is. | |
insertEcommerceItems ( array $goal, array $itemsToInsert ) : void | Inserts in the cart in the DB the new items that were not previously in the cart | |
insertNewConversion ( array $conversion, array $visitInformation, |
Helper function used by other record* methods which will INSERT or UPDATE the conversion in the DB | |
isGoalPatternMatchingUrl ( $goal, $pattern_type, $url ) : boolean | ||
isUrlMatchingGoal ( $goal, $pattern_type, $url ) : boolean | ||
recordEcommerceGoal ( Piwik\Tracker\Visit\VisitProperties $visitProperties, |
Records an Ecommerce conversion in the DB. Deals with Items found in the request. | |
recordEcommerceItems ( array $goal, array $items ) : integer | Loads the Ecommerce items from the request and records them in the DB | |
recordStandardGoals ( Piwik\Tracker\Visit\VisitProperties $visitProperties, |
Records a standard non-Ecommerce goal in the DB (URL/Title matching), linking the conversion to the action that triggered it | |
updateEcommerceItems ( array $goal, array $itemsToUpdate ) : void | Updates the cart items in the DB that have been modified since the last cart update |
메소드 | 설명 | |
---|---|---|
getCleanedEcommerceItems ( array $items ) : array | Reads items from the request, then looks up the names from the lookup table and returns a clean array of items ready for the database. | |
getEcommerceItemsFromRequest ( |
Returns Items read from the request string | |
getGoalFromVisitor ( Piwik\Tracker\Visit\VisitProperties $visitProperties, |
||
getModel ( ) | ||
triggerHookOnDimensions ( |
public detectGoalMatch ( array $goal, |
||
$goal | array | |
$action | ||
리턴 | if | a goal is matched, a string of the Action URL is returned, or if no goal was matched it returns null |
public detectGoalsMatchingUrl ( integer $idSite, |
||
$idSite | integer | |
$action | ||
리턴 | array[] | Goals matched |
public detectIsThereExistingCartInVisit ( $visitInformation ) |
protected getItemRowCast ( array $row ) : array | ||
$row | array | |
리턴 | array |
protected isGoalPatternMatchingUrl ( $goal, $pattern_type, $url ) : boolean | ||
$goal | ||
$pattern_type | ||
$url | ||
리턴 | boolean |
protected isUrlMatchingGoal ( $goal, $pattern_type, $url ) : boolean | ||
$goal | ||
$pattern_type | ||
$url | ||
리턴 | boolean |
protected recordEcommerceGoal ( Piwik\Tracker\Visit\VisitProperties $visitProperties, |
||
$visitProperties | Piwik\Tracker\Visit\VisitProperties | |
$request | ||
$conversion | array | |
$action |
public recordGoals ( Piwik\Tracker\Visit\VisitProperties $visitProperties, |
||
$visitProperties | Piwik\Tracker\Visit\VisitProperties | |
$request |
protected recordStandardGoals ( Piwik\Tracker\Visit\VisitProperties $visitProperties, |
||
$visitProperties | Piwik\Tracker\Visit\VisitProperties | |
$request | ||
$goal | ||
$action |