@empathyco/x-components
Version:
Empathy X Components
14 lines (8 loc) • 633 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [ExternalTaggingService](./x-components.externaltaggingservice.md) > [trackAddToCart](./x-components.externaltaggingservice.trackaddtocart.md)
## ExternalTaggingService.trackAddToCart property
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.
**Signature:**
```typescript
trackAddToCart: (id?: string) => void;
```