---
title: "Tray Integration"
description: "Learn how to connect OneClick Tracking to Tray to record your store's paid sales and follow the conversions of your Meta Ads campaigns."
---

> Learn how to set up OneClick Tracking on Tray.

**OneClick Tracking** is a feature for Meta Ads advertisers who use Tray as their e-commerce platform. You connect your store directly to your ad account, and every paid order starts being recorded by OneClick.

**With OneClick Tracking you see the volume of real conversions per period right in your Ads Manager, making for a quick, clear audit without complicated dashboards that need to be kept up to date.**

Note: **OneClick Tracking** removes the need for extra tracking tools!

---

:::tip[You can connect several platforms at the same time]
OneClick Tracking lets you connect **more than one platform to the same ad account** at the same time (for example, Hotmart and Eduzz together). Each platform has its own integration — with its own Webhook link or access credential — and they coexist without competing with each other; just repeat the **"New Integration"** steps for each one you want to connect.

Each sale is attributed to the right campaign by its **UTM**, not by the platform. So if one campaign sells through one platform and other campaigns sell through another, each conversion is automatically linked to the campaign it came from, regardless of which platform generated the sale. The recommended setup is **each campaign serving a single platform** — avoid having the same campaign sell on two platforms at once.
:::

## How to Plug OneClick Tracking into Tray

1. Log in to your OneClick Ads account.
2. Go to the "OneClick Tracking" tab, available in the left sidebar of [OneClick Ads](https://app.oneclickads.com.br/oneclick-tracking).

   ![The OneClick Tracking tab in the OneClick Ads sidebar, with the New Integration card](../../../../../public/oneclick-tracking/common/image-1.png)

3. Click "New Integration".

4. Select the "E-commerce" product type and click Continue.

5. Select the "Tray" platform and click Continue.

6. In the **Tray Integration** step, enter your **Tray store address** and click **Connect Tray store**.
   - Use the store address on Tray's own domain, which ends in `.commercesuite.com.br` or `.corpsuite.com.br` and appears in your Tray admin. It can be typed with or without `https://`.
   - You'll be taken to your store's admin to authorize OneClick Ads to access it.
   - After you confirm, you'll automatically return to OneClick Tracking, where the **Tray store connected** notice appears. Click **Continue**.

   :::tip[Webhook handled by Tray]
   Unlike other platforms, **you don't need to create or paste any webhook** inside Tray. Order notifications already reach OneClick once the store is connected.
   :::

   :::note[Connected from the Tray admin?]
   If you opened OneClick Ads from the app's **Access** button in the Tray admin, the connection isn't finished yet: the button only takes you to OneClick Tracking, with your store address already filled in. Click **Connect Tray store** to complete the authorization.
   :::

7. Copy the UTM Script generated in OneClick Tracking.

   ![The UTM parameters step of OneClick Tracking, with the parameter to copy](../../../../../public/oneclick-tracking/common/image-2.png)

   7.1. Paste it into the "URL parameters" field in ALL of your ads in Ads Manager, as shown below:

   ![The URL parameters field of an ad in Meta Ads Manager](../../../../../public/oneclick-tracking/common/image-3.png)

8. Set the Attribution Mode.
   - [Watch this video](https://www.youtube.com/watch?v=JgWkvv4ZNLY) to understand each model.
   - Click Continue.

   ![The Attribution Mode step of OneClick Tracking](../../../../../public/oneclick-tracking/common/image-4.png)

9. Set the Naming Convention that your campaigns, ad sets and ads will receive in your Ads Manager and click next.

:::caution[Campaign renaming depends on processed conversions]
The naming set here **will only be applied to the campaign name in Ads Manager once there is at least 1 processed conversion**. Receiving raw webhook data from the integrated platform is not enough — the system must have structured the conversion and attributed it to a campaign. If the webhook is arriving but the campaign name hasn't changed yet, wait for the first conversion to be recorded.
:::

![The Campaign Naming step of OneClick Tracking](../../../../../public/oneclick-tracking/common/image-5.png)
![Analysis periods and the Naming Convention preview](../../../../../public/oneclick-tracking/common/image-6.png)

---

## Done!

Wait at least 24 hours for the setup to take effect, and all your campaigns (those that receive conversions) will start recording conversions right inside Ads Manager.

![Campaigns with the OneClick Tracking prefix in Ads Manager](../../../../../public/oneclick-tracking/common/image-7.png)

---

## Important Notes

- **Orders that count:** OneClick Tracking records **paid** orders. Orders awaiting payment or canceled are not counted. If your store uses custom statuses, an order counts when Tray reports it as paid.
- **Conversion origin:** Tray doesn't record UTMs on the order, so how each sale is tied to the ad that generated it is still being validated for this integration. If sales reach OneClick Tracking but don't show up associated with campaigns, contact support.
- **Switching stores or renewing the authorization:** open the existing integration and click **Connect Tray store** again. You can do this whenever you want to change the connected store or renew the authorization, without creating a new integration.
- **Authorization refused by Tray:** if Tray stops accepting your store's authorization (for example, after the app is removed in the admin), OneClick notifies you. Connect the store again, as described above, to resume recording sales.
- **Error while connecting:** if Tray sends you back to OneClick with an error notice, check that the store address ends in `.commercesuite.com.br` or `.corpsuite.com.br` and try again. If the notice mentions an invalid or expired authorization link, go back to the **Tray Integration** step and click **Connect Tray store** once more.
