# Shopify: Customer Email Cohorts

## Description

* Each record represents a customer's (on the EMAIL grain) performance in a calendar month.

## Supported Data Sources

* <img src="https://fivetran.com/integrations/shopify/resources/shopify.svg" alt="" data-size="line"> Shopify

## Columns

| Type | Name                         | Description                                                                                                                                                                                                                                                        |
| ---- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|      | cohort\_month                | The month the cohort belongs to, i.e the first month the customer had an order.                                                                                                                                                                                    |
|      | cohort\_month\_number        | The 'number' of the `date_month` of the record, i.e. how many months from their start month this cohort occurred                                                                                                                                                   |
|      | customer\_cohort\_id         | Unique key representing a customer in a given month. Hashed on 'date\_month','email', and 'source\_relation'.                                                                                                                                                      |
|      | email                        | The ID of the related customer.                                                                                                                                                                                                                                    |
|      | date\_month                  | The calendar month the customer stats relate to.                                                                                                                                                                                                                   |
|      | first\_order\_timestamp      | The timestamp of the customer's first order.                                                                                                                                                                                                                       |
|      | line\_item\_count\_in\_month | Number of line items purchased in the `date_month`                                                                                                                                                                                                                 |
|      | line\_item\_count\_lifetime  | Number of line items purchased up until and including this `date_month`.                                                                                                                                                                                           |
|      | order\_count\_in\_month      | Number of orders purchased in the `date_month`                                                                                                                                                                                                                     |
|      | order\_count\_lifetime       | Number of orders purchased up until and including this `date_month`.                                                                                                                                                                                               |
|      | source\_relation             | The schema or database this record came from if you are making use of the `shopify_union_schemas` or `shopify_union_databases` variables, respectively. Empty string if you are not using either of these variables to union together multiple Shopify connectors. |
|      | total\_price\_in\_month      | Total amount (in shop currency) purchased in the `date_month`                                                                                                                                                                                                      |
|      | total\_price\_lifetime       | Total amount (in shop currency) up until and including this `date_month`.                                                                                                                                                                                          |


---

# 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://endash-guidance-docs.gitbook.io/cigro-data-templates/data-model-templates/shopify-customer-email-cohorts.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.
