Skip to content

Analytics

Flex Storefront supports analytics events to gain valuable insights into user behavior and app performance.

By default, Google Analytics 4 is used to measure features and behaviour and generate useful reports with the provided data. The following events are triggered automatically when using the Storefront, and can be turned off or customized inside their bloc, cubit or repository.

Supported events

ViewItemEvent

This event is fired whenever the user opens the Product Detail Page. It can be used to identify the most popular products of your catalog.

Parameters:

NameDescription
valuePrice of the product
currencyCurrency of the price
itemsOnly one, product information (identifier, name, …)

Google Analytics reference: Link

SelectContentEvent

This event is fired for different kinds of entity in the app (example: category).

NameDescription
contentTypeType of the entity (example: “category”)
itemIdIdentifier of the entity (example: the category code for a category)

Google Analytics reference: Link

ViewCartEvent

This event is fired whenever the user opens the Cart Page.

NameDescription
valueTotal value of the Cart
currencyCurrency of the value above
itemsFor each lines in the cart: product information (identifier, name, …) and quantity

Google Analytics reference: Link

AddToCartEvent

This event is fired when the user adds a new product to the cart, note that quantity adjustments (for a product already belonging to the cart) aren’t tracked.

NameDescription
valuePrice of the product added to the cart
currencyCurrency of the price
itemsOnly one: product information (identifier, name, …) and quantity added

Google Analytics reference: Link

RemoveFromCartEvent

This event is fired when the user removes a product from the cart, regardless of the quantity (quantity adjustments for products in cart aren’t tracked).

NameDescription
valuePrice of the product added to the cart
currencyCurrency of the price
itemsOnly one: product information (identifier, name, …) and the quantity at the moment the product was removed

Google Analytics reference: Link