# SaaSquatch v2 Destination

## Destination Info

* Accepts [Identify](/docs/segment/connections/spec/identify), [Track](/docs/segment/connections/spec/track) calls.
* Refer to it as **SaaSquatch v2** 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.

[SaaSquatch](https://saasquatch.com/?utm_source=segmentio\&utm_medium=docs\&utm_campaign=partners) is a loyalty, referral and rewards platform that helps companies reward their brand advocates, build loyal communities, and accelerate revenue growth.

SaaSquatch maintains this destination. For any issues with the destination, [contact the SaaSquatch Support team](mailto:support@saasquatch.com).

## Getting Started

1. From the Destinations catalog page in the Segment App, click **Add Destination**.
2. Search for **SaaSquatch v2** in the Destinations Catalog, and select the **SaaSquatch v2** destination.
3. Choose which Source should send data to the **SaaSquatch v2** destination.
4. Log in to the [SaaSquatch portal](https://app.referralsaasquatch.com/).
5. Navigate to the Integrations page by selecting **Settings > Integrations**.
6. Find and enable the Segment integration.
7. Within the **Segment Destination** tab, copy the API Key.
8. Enter the copied API Key in the SaaSquatch v2 destination settings in Segment.

## Supported methods

SaaSquatch v2 supports the following methods, as specified in the [Segment Spec](/docs/segment/connections/spec).

### Identify

Send [Identify](/docs/segment/connections/spec/identify) calls to insert and update participants in SaaSquatch. [Read more about identify calls in the SaaSquatch docs.](https://docs.saasquatch.com/integrations/segment-v2/subscription/#identify-calls)

For example:

```js
analytics.identify("userId123", {
  email: "john.doe@example.com",
  firstName: "John",
  lastName: "Doe",
  referredByCodes: ["SUSAN210"],
});
```

Segment sends Identify calls to SaaSquatch v2 as an `identify` event.

### Track

Send [Track](/docs/segment/connections/spec/track) calls to log user events in SaaSquatch. [Read more about track calls in the SaaSquatch docs.](https://docs.saasquatch.com/integrations/segment-v2/subscription/#track-calls)

For example:

```js
analytics.track("Order Completed", {
  revenue: 1000, // cents
  currency: "USD",
  order_id: "ref1234",
});
```

Segment sends Track calls to SaaSquatch v2 as a `track` event.

## Engage

You can send computed traits and audiences generated using [Engage](/docs/segment/engage) to this destination as a **user property**. To learn more about Engage, schedule a [demo](https://segment.com/contact/demo).

For user-property destinations, an [identify](/docs/segment/connections/spec/identify/) call is sent to the destination for each user being added and removed. The property name is the snake\_cased version of the audience name, with a true/false value to indicate membership. For example, when a user first completes an order in the last 30 days, Engage sends an Identify call with the property `order_completed_last_30days: true`. When the user no longer satisfies this condition (for example, it's been more than 30 days since their last order), Engage sets that value to `false`.

When you first create an audience, Engage sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

> \[!NOTE]
>
> Real-time audience syncs to SaaSquatch v2  may take six or more hours for the initial sync to complete. Upon completion, a sync frequency of two to three hours is expected.

## Settings

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

| Field   | Description                                                                            | Required | Type   |
| ------- | -------------------------------------------------------------------------------------- | -------- | ------ |
| API Key | You can find your API key on the integrations page in your SaaSquatch tenant settings. | Yes      | string |
