UNPKG

@empathyco/x-components

Version:
24 lines (15 loc) 1.68 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ExternalTaggingService](./x-components.externaltaggingservice.md) ## ExternalTaggingService interface Service to handle the workflow for tracking add to cart from PDP. **Signature:** ```typescript export interface ExternalTaggingService ``` ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [moveToSessionStorage](./x-components.externaltaggingservice.movetosessionstorage.md) | | (id?: string) =&gt; void | Checks if the local storage contains a result information for the given id and moves the result info from the local storage to the session storage. | | [storeAddToCart](./x-components.externaltaggingservice.storeaddtocart.md) | | (result: Result) =&gt; void | Stores in the local storage the information from the Result added to the cart by the user in order to be able to track the checkout later on when the checkout process has been completed by shopper. | | [storeResultClicked](./x-components.externaltaggingservice.storeresultclicked.md) | | (result: Result) =&gt; void | Stores in the local storage the information from the Result clicked by the user in order to be able to track the add to cart later on the result's PDP. | | [trackAddToCart](./x-components.externaltaggingservice.trackaddtocart.md) | | (id?: string) =&gt; void | Checks if the session storage contains a result information for a given id or the current url. If exists, it tracks the add to cart and saves the add to cart information into session storage. |