# Perfect Pay integration

Source: https://skro.eu/docs/integrations/perfect-pay-and-skro

Connect Perfect Pay to Skro, map click IDs, and configure postbacks to attribute conversions and revenue to your campaigns.

PerfectPay is a platform and digital business solution based in Brazil, primarily focused on digital entrepreneurs (product creators and affiliates), with the mission of providing tools to increase their sales and profits. It acts as an all-in-one system for selling and managing digital and physical products.

If you’re looking for a tracking tool to gain deeper insights into your performance, Skro is a perfect solution. In this guide, we’ll show you how to easily integrate your Perfect Pay with Skro.

- See the true ROI of every ad
- Track every approved sales event and commission fee
- Compare advertising costs with attributed revenue
- Send supported conversion events to Facebook and TikTok

This guide will teach you how to set up webhook for Perfect Pay and track **approved** events for paid ads. Please note: this guide does not cover every option available in Skro or your traffic source. You should already have basic knowledge of creating campaigns in both Skro and your traffic source.

<Steps>

## Step 1. Set up Webhook (S2S Postback) For Perfect Pay [#step-1-set-up-webhook-s2s-postback-for-perfect-pay]

1. Go to your **Perfect Pay → Tools → Webhook - Sales** and click **Add**.

![Add webhook](/images/docs/perfect-pay/perfectpay1.png)

2. Select all your products where you need to fire Skro webhook.

3. Add this **Webhook URL.** (You can use your own tracking domain instead of skrotrack.com)

<Callout type="warn">

`https://skrotrack.com/webhook/perfect-pay`

</Callout>

![Purchase event](/images/docs/perfect-pay/perfectpay2.png)

4. Select **Approved** event from the list.

5. Select postback format as **PerfectPay** and click **Save**.

Well done! Your webhook for **Approved** event has been successfully integrated.

## Step 2. Add Offer Link and Create Campaign in Skro [#step-2-add-offer-link-and-create-campaign-in-skro]

1. In Skro, go to the **Affiliate Networks** view, click **Create**, select **Perfect Pay**, and fill in the details.

![Setup Perfect Pay as affiliate network](/images/docs/perfect-pay/perfectpay3.png)

2. Add your affiliate link as offer. Go to the **Offers** view, click **Create**, and enter your affiliate link details.

3. Select a workspace.

4. Enter a name for your offer.

5. Enter your offer URL (Checkout link) with the Skro Click ID parameter: **`?src={clickId}`**

<Callout type="warn">

`https://go.perfectpay.com.br/XXX3333XXX?src={clickId}`

</Callout>

6. Select **Perfect Pay** as the affiliate network.

7. **Payout Type** - Make sure you select correct currency for your payouts.

8. Click **Save & Close**.

![Setup Perfect Pay affiliate link URL.](/images/docs/perfect-pay/perfectpay4.png)

9. (Optional) If you use a pre-lander (Sales page), go to the **Landings** view, click **Create**, and add your sales page there.

10. Navigate to the **Ads Manager** view and click **Create**.

11. Select your integrated **Traffic Source** (e.g. Facebook).

12. Select your **Conversion Event Name**. Event naming must be exactly the same in Skro and in your traffic source. Naming is case-sensitive.

13. Select your **Conversion Pixel**. This is required for sending conversion data back to your traffic source.

14. Set **Cost Model** to **Auto**.

15. Select your cost currency.

16. Click **Next**.

![Setup Skro Campaign step 1](/images/docs/shopify/shopify12.png)

16. Choose a workspace.

17. Add a descriptive campaign name.

18. Click **Next**.

![Setup Skro Campaign step 2](/images/docs/shopify/shopify15.png)

19. Choose your **Destination Type** (in this example: **flow**).

20. Select your redirect mode (in this example: **302 redirect**).

21. Select your landing setup (in this example: **use only offers**).

22. Select your Perfect Pay offer.

23. Click **Save**.

![Setup Skro Campaign step 3](/images/docs/shopify/shopify16.png)

24. Choose your tracking method: **Redirect** or **Direct**. (In this example we use **Redirect**.)

![Setup Skro Campaign step 4](/images/docs/cartpanda/cartpanda11.png)

<Callout type="success">

Your Perfect Pay integration is complete! You can now use the Skro Campaign Tracking URL in Facebook Ads (or any other traffic source). Remember: all traffic must go through your Skro campaign link, otherwise the tracking will not work.

</Callout>

<Card title="Get started with Facebook integration" href="/docs/integrations/facebook-meta-ads-integration" />

</Steps>

## Verify the setup [#verify-the-setup]

Follow a campaign link and complete a test conversion using your provider’s test workflow. Confirm that the original click ID reaches the provider and is returned to Skro, then check the event and revenue in your campaign report.

<Callout title="Troubleshooting">

If data is missing, check the selected workspace, integration, campaign, and reporting date range. Compare parameter names and macro values with the examples in this guide before repeating the test.

</Callout>

## Related guides [#related-guides]

<Cards>

<Card title="Postback URL parameters" href="/docs/postback/parameters-in-postback-urls" />

<Card title="Custom conversions" href="/docs/postback/custom-conversions" />

</Cards>
