# ProfitWell Destination

## Destination Info

* Accepts [Identify](/docs/segment/connections/spec/identify) calls.
* Refer to it as **ProfitWell** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)
* This integration is **partner owned.** Please reach out to the partner's support for any issues.

### Components

* [Browser](https://github.com/ProfitWell/segment-dotjs)

## Connection Modes

[Learn more about connection modes.](/docs/segment/connections/destinations/#connection-modes)

### Device-Mode

* web: yes
* mobile: no
* server: no

### Cloud-Mode

* web: no
* mobile: no
* server: no

[ProfitWell](https://www.profitwell.com) provides free subscription metrics to help you identify opportunities and then tools to help you reduce churn, optimize pricing, and grow your subscription business end-to-end. This integration enables ProfitWell users to use it's Retain product and Engagement Tracking capabilities.

This destination is maintained by ProfitWell. For any issues with the destination, [contact the ProfitWell Support team](mailto:product@profitwell.com).

## Getting Started

1. From the Segment web app, click **Catalog**.
2. Search for "ProfitWell" in the Catalog, select it, and choose which of your sources to connect the destination to.
3. Drop your token into the Segment destination settings for "Public API Token".
   You can find your public token in the [Retain control center](https://www2.profitwell.com/app/engagement) under preview snippet.
4. Select "wep app" in the dropdown if you're tracking inside the app or "marketing" for your marketing site.

## Identify

If you're not familiar with the Segment Specs, take a look to understand what the [Identify method](/docs/segment/connections/spec/identify/) does. An example call would look like:

```javascript
analytics.identify('userId123', {
  email: 'john.doe@example.com'
});
```

Identify calls will start the ProfitWell service using the customer's email to track them. If no email is provided, it will start the service anonymously.

[Customers](https://www2.profitwell.com/app/customers) need to be created first within ProfitWell in order for the Identify calls to trigger their engagements.

> \[!TIP]
>
> Segment doesn't sync data into ProfitWell in real time. User data can take up to 24 hours to appear in ProfitWell.

## Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

| Field            | Description                                                                                                                                                                                     | Required | Type   |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
| Public API Token | You can retrieve your API token from the Retain control center under the preview snippet.                                                                                                       | Yes      | string |
| Site Type        | A marketing site will assume that the user will be anonymous and thus will start the ProfitWell service on load. A web app will wait for Identity to be called to start the ProfitWell service. | No       | select |
