---
title: "Loja Integrada Integration"
description: "Learn how to connect OneClick Tracking to Loja Integrada to track e-commerce sales conversions in your Meta Ads campaigns based on UTMs."
---

> Learn how to set up OneClick Tracking on Loja Integrada.

**OneClick Tracking** is a new feature for Meta Ads advertisers who use Loja Integrada as their e-commerce platform. It provides immediate and accurate conversion tracking.

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

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

---

## How to Plug OneClick Tracking into Loja Integrada

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 "Loja Integrada" platform and click Continue.

## Setting up the API Key in Loja Integrada

Unlike other e-commerce platforms, Loja Integrada does not require you to set up the webhook manually: just enter your API key and OneClick Ads creates the orders webhook for you automatically.

6.1. Open your store's admin dashboard and generate your **API key** following Loja Integrada's official step-by-step guide:

- [How to get the API/application key to integrate with Loja Integrada](https://ajuda.lojaintegrada.com.br/pt-BR/articles/5360466-como-obter-a-chave-de-aplicacao-para-integrar-com-a-loja-integrada)

  6.2. Paste the API key into the field shown in Step 2.1 of the OneClick Tracking wizard and click **Conectar Loja Integrada** (Connect Loja Integrada).

  6.3. OneClick Ads validates the key and automatically creates the orders webhook in your store, pointing to your ad account's unique tracking URL.

> If you prefer to review or manually adjust the webhook that was created, see Loja Integrada's official article [Como configurar webhook?](https://ajuda.lojaintegrada.com.br/pt-BR/articles/9655071-como-configurar-webhook) (How to set up a webhook?).

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. Add the **UTM Passthrough Script** to all your sales pages, so the UTMs are carried through to the final checkout page:
   a. You can install it on your website via Google Tag Manager or, preferably, directly in your website's header.

9. 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)

10. 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

- **Install and keep** your pixel in the Loja Integrada settings.
- The conversion is only tracked when the order reaches a **payment confirmed** status (e.g. "Pedido Pago" (Order paid)). Orders awaiting payment, canceled or merely created do not generate a conversion.
- The UTMs must be present in the ad URLs and be passed through to the checkout page for tracking to work.
- If you change your store's API key, reconnect the integration in OneClick Tracking with the new key so that the webhook keeps working.
