phpDocumentor

GoogleAnalyticsTrackingService
in package
implements GoogleAnalyticsTrackingServiceInterface

Class GoogleAnalyticsTrackingService

Interfaces, Classes and Traits

GoogleAnalyticsTrackingServiceInterface
Interface GoogleAnalyticsTrackingServiceInterface

Table of Contents

$repository  : mixed
$serializers  : mixed
__construct()  : mixed
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

Properties

Methods

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.

encodedProductByProductId()

Return the JSON encoded product by the product ID

public encodedProductByProductId(IdType $productId, IdType $languageId, IdType $customerGroupId) : string
Parameters
$productId : IdType

Product ID

$languageId : IdType

Language ID

$customerGroupId : IdType

Customer Group ID.

Return values
string

JSON

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

Search results