> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Purchasely

> Learn how to integrate Purchasely with MoEngage to track in-app subscription events, sync user data, and optimize your acquisition campaigns.

# Introduction

[Purchasely](https://www.purchasely.com/) is an intuitive no-code Paywall Builder for In-App Subscription maximization. It help customers build & run native paywalls and A/B tests like you’ve never done before. Purchasely is a platform based, digital engagement and communication service company that provides high volume messaging aervices along with workflow automation and predictive insights.

# Integration

MoEngage × Purchasely integration will allow you to get all the available Purchasely events to MoEngage and get a better and deeper understanding of your subscription business and customer behavior. Purchasely provides a unified dataset to track the subscription events for all stores. These events are generated by the Purchasely backend and can be sent to MoEngage.

<Info>
  * Ensure you have access to your Purchasely account.
  * You need minimal version of the Purchasely SDK supporting this integration is 3.6.0.
  * The MoEngage SDK also needs to be integrated in your app.
</Info>

Subscription events generated by Purchasely will be sent to MoEngage using a server-to-server integration. As a result, you will be able to see all the subscription events in your MoEngage Dashboard and map them with your acquisition campaigns.

See the full list of events [here](https://docs.purchasely.com/analytics/events/webhook-events/subscription-events).

# Integration Steps

Follow the steps here to set up an integration between Purchasely and MoEngage -

## 1. Associate users to events

Associate the user to events by providing the `${integration_sdk_property}` to the Purchasely SDK. See the [documentation here](https://developers.moengage.com) for more details.

## 2. Activate integration

1. Go in the "External integrations" section, and open the edition form for MoEngage:

![](https://561853519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2Fgit-blob-682bb27f47d70dec5567618258797c2aeb9c600b%2FScreenshot%202023-05-25%20at%2016.12.48.png?alt=media)

2. Enable the integration
3. Set your MoEngage app details.\
   On your MoEngage dashboard, copy the values for Workspace ID (earlier App ID), DATA API ID, DATA API KEY.

| Field        | Description                                                                                                                                                                                                                                                                                                                                                                  |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| App ID       | The Workspace ID of your MoEngage account is available at **Settings -> Account -> APIs -> Workspace ID**.                                                                                                                                                                                                                                                                   |
| Data API ID  | The Data API ID and the Workspace ID of your MoEngage account are the same.                                                                                                                                                                                                                                                                                                  |
| Data API Key | The Data API key of your MoEngage account is available at **Settings -> Account -> APIs -> API keys -> Data** API settings.<br /><br />![](https://561853519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2Fgit-blob-345d251c482e05171355c1a019312d33b42266ab%2FScreenshot%202023-05-25%20at%2016.13.10.png?alt=media) |

4. Enable the events you want to be sent to MoEngage.\
   *Note \[Optional] - You can override the names of the events that will be sent to MoEngage*

![](https://561853519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2Fgit-blob-4cdf96b4dfe249b64111e70389e35ae01d2e7d21%2FScreenshot%202023-05-25%20at%2016.13.32.png?alt=media)

5. Enable the user properties you want to be sent to MoEngage.\
   *Note \[Optional] - You can override the names of the user properties that will be sent to MoEngage*

![](https://561853519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGgUdOzhqa07uh7nB2iZA%2Fuploads%2Fgit-blob-4a8f73fa1aa15bb1dbcad7929c061f964026c6e0%2FScreenshot%202023-05-25%20at%2016.15.18.png?alt=media)

6. Click *Save*

## 3. Test your integration

To test your integration, you can perform a set of in-app purchases in a Sandbox environment (eg: TestFlight for the App Store) and verify your events are received in the MoEngage dashboard.
