> For the complete documentation index, see [llms.txt](https://docs.drivepoint.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.drivepoint.io/using-the-web-app/reports/cohort-analysis/retention-by-nth-order.md).

# Retention by Nth Order

This report is derived from your Sales data (e.g. DTC Sales from Shopify or Amazon Sales from Amazon).

*Unlike the Customer Retention report, this report calculates retention by each subsequent order the customer has made.*&#x20;

## Definitions <a href="#definitions" id="definitions"></a>

<table><thead><tr><th width="183">Metric/Dimension</th><th>Definition</th></tr></thead><tbody><tr><td><strong>Nth Order Retention</strong></td><td><p>The number of customers that made an nth (e.g. 7th) order divided by the number of customers in the cohort. </p><p></p><p>Unlike Customer Retention, where the retention is measured is measured over time and customers can skip intervals since first purchase, customers at one order number had to have also been in all prior order numbers. For instance, a customer that has made a 4th order will show up as being retained within the 2nd and 3rd order as well.</p></td></tr><tr><td><strong>Cohort Interval</strong></td><td>This is a control available in the <em>Filters</em> menu with the possible options of <em>Quarter, Month</em>, <em>Week</em>, and <em>Day</em>. Each option groups first-time customers together into cohorts based on the interval selected. For instance, a customer that makes their first purchase on January 15th, 2024 is cohorted into Q1 2024 (<em>quarter</em>), Jan-24 (<em>month</em>), (<em>week of</em>) Jan 14, 2024, and Jan 15, 2024 (<em>day</em>).</td></tr><tr><td><strong>Max Days Since First Purchase</strong></td><td><strong>Important filter to use.</strong> Since a returning order can occur at any time, this filter controls for the length of time that each <strong>Cohort Interval</strong> has had to make <em>x</em> number of orders.</td></tr><tr><td><strong>First Segment</strong></td><td>The first segment (e.g. Subscription) that the customer purchased.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.drivepoint.io/using-the-web-app/reports/cohort-analysis/retention-by-nth-order.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
