GoogleAnalyticsTrackingRepositoryReaderInterface
in
Interface GoogleAnalyticsTrackingRepositoryReaderInterface
Table of Contents
- fetchImpression() : array<string|int, mixed>
- Fetches impression data by the given product id.
- fetchImpressions() : array<string|int, mixed>
- Fetches impressions data by the given product ids.
- fetchProductByCombinedId() : array<string|int, mixed>
- Fetches product data by the given combined product id.
- fetchProductByVariant() : array<string|int, mixed>
- Fetches product data by the given product id and optional variants.
- fetchPurchase() : array<string|int, mixed>
- Fetches purchase data by the given order id.
Methods
fetchImpression()
Fetches impression data by the given product id.
public
fetchImpression(IdType $productId, IdType $languageId, IdType $customerGroupId) : array<string|int, mixed>
Parameters
- $productId : IdType
-
Product id.
- $languageId : IdType
-
Language id.
- $customerGroupId : IdType
-
Customer group id.
Return values
array<string|int, mixed> —Data that contains impression information.
fetchImpressions()
Fetches impressions data by the given product ids.
public
fetchImpressions(IdCollection $productIds, IdType $languageId, IdType $customerGroupId) : array<string|int, mixed>
Parameters
- $productIds : IdCollection
-
Product ids.
- $languageId : IdType
-
Language id.
- $customerGroupId : IdType
-
Customer group id.
Return values
array<string|int, mixed> —Data that contains impressions information.
fetchProductByCombinedId()
Fetches product data by the given combined product id.
public
fetchProductByCombinedId(GoogleAnalyticsCombinedProductIdInterface $combinedProductId, IdType $languageId, IdType $customerGroupId) : array<string|int, mixed>
Parameters
- $combinedProductId : GoogleAnalyticsCombinedProductIdInterface
-
Id combination of product, attribute and property combination ids.
- $languageId : IdType
-
Language Id.
- $customerGroupId : IdType
-
Customer group Id.
Return values
array<string|int, mixed> —Data that contains product information.
fetchProductByVariant()
Fetches product data by the given product id and optional variants.
public
fetchProductByVariant(IdType $productId, IdType $languageId, IdType $customerGroupId, GoogleAnalyticsVariantInterface $variant) : array<string|int, mixed>
Parameters
- $productId : IdType
-
Product Id.
- $languageId : IdType
-
Language Id.
- $customerGroupId : IdType
-
Customer group Id.
- $variant : GoogleAnalyticsVariantInterface
-
Variants data if exists.
Return values
array<string|int, mixed> —Data that contains product information.
fetchPurchase()
Fetches purchase data by the given order id.
public
fetchPurchase(IdType $orderId) : array<string|int, mixed>
Parameters
- $orderId : IdType
-
Order Id.
Return values
array<string|int, mixed> —Data that contains purchase information.