Copied!

VisitEventData

VisitEventData.php : 14
Read-only
Final

Base class for tracking event data with common parameter building logic.

Methods

public__construct()

VisitEventData.php : 16
public __construct(string $productId, string $productName, string $categoryPath[, string|null $websiteId = null ][, string|null $currency = null ][, string|null $itemPrice = null ][, string|null $categoryName = null ][, string|null $masterId = null ])

Parameters

Name Type Default value Description
$productId string - -
$productName string - -
$categoryPath string - -
$websiteId string|null null -
$currency string|null null -
$itemPrice string|null null -
$categoryName string|null null -
$masterId string|null null -

publicgetEventType()

VisitEventData.php : 27
public getEventType() : EventType

Return values

EventType

publicgetTemplateHint()

AbstractEventData.php : 44

Returns optional template hint for special rendering needs.

public getTemplateHint() : string|null

Return values

string|null

publictoArray()

VisitEventData.php : 32

Returns Raptor tracking parameters.

public toArray() : array<string, mixed>

Return values

array<string, mixed>

protectedbuildParameters()

AbstractEventData.php : 24
protected buildParameters(array<string, mixed> $required[, array<string, mixed> $optional = [] ]) : array<string, mixed>

Parameters

Name Type Default value Description
$required array<string, mixed> - -
$optional array<string, mixed> [] -

Return values

array<string, mixed>