GoogleAnalyticsTrackingServiceInterface
in
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.
encodedImpressionsByProductIds()
Return the JSON encoded impressions by the product IDs
public
encodedImpressionsByProductIds(IdCollection $productIds, IdType $languageId, IdType $customerStatusId, NonEmptyStringType $listName) : string
Parameters
- $productIds : IdCollection
-
Product IDs.
- $languageId : IdType
-
Language ID.
- $customerStatusId : IdType
-
Customer Status ID.
- $listName : NonEmptyStringType
-
List name.
Return values
string —JSON
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 encoded product data.
encodedPurchaseByOrderId()
Return the JSON encoded purchase by the order ID
public
encodedPurchaseByOrderId(IdType $orderId) : string
Parameters
- $orderId : IdType
-
Order ID.
Return values
string —JSON encoded purchase data.