phpDocumentor

GoogleAnalyticsTrackingRepositoryReaderInterface

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

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.

Search results