phpDocumentor

GoogleAnalyticsTrackingServiceInterface

Interface GoogleAnalyticsTrackingServiceInterface

Table of Contents

encodedImpressionByProductId()  : string
Return the JSON encoded impression by the product ID
encodedImpressionsByProductIds()  : string
Return the JSON encoded impressions by the product IDs
encodedProductByCombinedProductId()  : string
Returns the JSON encoded product data by the given combined product id.
encodedProductByProductId()  : string
Return the JSON encoded product by the product ID
encodedProductByVariant()  : string
Return the JSON encoded product data with optional variant.
encodedPurchaseByOrderId()  : string
Return the JSON encoded purchase by the order ID

Methods

encodedImpressionByProductId()

Return the JSON encoded impression by the product ID

public encodedImpressionByProductId(IdType $productId, IdType $languageId, IdType $customerStatusId, NonEmptyStringType $listName) : string
Parameters
$productId : IdType

Product ID.

$languageId : IdType

Language ID.

$customerStatusId : IdType

Customer status ID.

$listName : NonEmptyStringType

List name.

Return values
string

JSON encoded impression data.

encodedProductByCombinedProductId()

Returns the JSON encoded product data by the given combined product id.

public encodedProductByCombinedProductId(GoogleAnalyticsCombinedProductIdInterface $productId, IdType $languageId, IdType $customerGroupId, DecimalType $quantity) : string
Parameters
$productId : GoogleAnalyticsCombinedProductIdInterface

Combined product id.

$languageId : IdType

Language Id.

$customerGroupId : IdType

Customer status ID.

$quantity : DecimalType

Product quantity.

Return values
string

JSON encoded product data.

encodedProductByVariant()

Return the JSON encoded product data with optional variant.

public encodedProductByVariant(IdType $productId, IdType $languageId, IdType $customerStatusId, DecimalType $quantity, GoogleAnalyticsVariantInterface $variant) : string
Parameters
$productId : IdType

Product ID.

$languageId : IdType

Language ID.

$customerStatusId : IdType

Customer status ID.

$quantity : DecimalType

Item quantity.

$variant : GoogleAnalyticsVariantInterface

Product variant.

Return values
string

JSON encoded product data.

Search results