snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/node-tracker/markdown/node-tracker.addtocartevent.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [AddToCartEvent](./node-tracker.addtocartevent.md)

## AddToCartEvent interface

An Add To Cart Event For tracking users adding items from a cart on an ecommerce site.

<b>Signature:</b>

```typescript
interface AddToCartEvent 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [category?](./node-tracker.addtocartevent.category.md) | string | <i>(Optional)</i> The category of the product |
|  [currency?](./node-tracker.addtocartevent.currency.md) | string | <i>(Optional)</i> The currency of the product |
|  [name?](./node-tracker.addtocartevent.name.md) | string | <i>(Optional)</i> The name of the product |
|  [quantity](./node-tracker.addtocartevent.quantity.md) | number | The number added to the cart |
|  [sku](./node-tracker.addtocartevent.sku.md) | string | A Product Stock Keeping Unit (SKU) |
|  [unitPrice?](./node-tracker.addtocartevent.unitprice.md) | number | <i>(Optional)</i> The price of the product |