# How it works: Shopify to Attentive

## What you can track

All events below are being sent [server-side](https://help.littledata.io/get-started/how-server-side-tracking-works) and are tracked by default. You can choose to disable tracking for one or multiple events within the app settings.

| **Event name** | **Description**                        |
| -------------- | -------------------------------------- |
| Add to Cart    | When a user adds a product to the cart |
| Product Viewed | When a user views a product            |

## Event properties

Our schema is designed to be backwards compatible with the standard Add to Cart and Product Viewed events from Shopify

In addition to this, Littledata adds `externalIdentifiers` to improve the linking of on-site behaviour to an Attentive profile.

| **Parameter name**                               | **Description**                              | **Type** |
| ------------------------------------------------ | -------------------------------------------- | -------- |
| items                                            | Array of items in the event                  | array    |
| items.productId                                  | Id of the product                            | string   |
| items.productVariantId                           | Id of the product variant                    | string   |
| items.productImage                               | Link for the image of the product            | string   |
| items.productURL                                 | URL of the product                           | string   |
| items.name                                       | Name of the product                          | string   |
| items.price                                      | Array that contains details about price      | array    |
| items.price.value                                | Value of the product                         | int      |
| items.price.currency                             | Currency of the product                      | string   |
| items.quantity                                   | Quantity of items in the event               | int      |
| occuredAt                                        | Time when the event was triggered            | date     |
| user                                             | Array of user details                        | array    |
| user.email                                       | Email of the user                            | string   |
| user.phone                                       | Phone number of the user                     | string   |
| user.externalIdentifiers                         | Array of additional identifiers for the suer | array    |
| user.externalIdentifiers.customIdentifiers       | Array of custom identifiers for the user     | array    |
| user.externalIdentifiers.customIdentifiers.name  | Name of the custom identifier                | string   |
| user.externalIdentifiers.customIdentifiers.value | Value of the custom identifier               | string   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.littledata.io/integrations/attentive/how-it-works-shopify-to-attentive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
