Bagy Integration
Learn how to set up OneClick Tracking in Bagy.
OneClick Tracking is a feature for Meta Ads advertisers who use Bagy 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, with no 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 Bagy
Section titled “How to Plug OneClick Tracking into Bagy”-
Log in to your OneClick Ads account.
-
Go to the "OneClick Tracking" tab, available in the left sidebar of OneClick Ads.

-
Click "New Integration".
-
Select the "E-commerce" product type and click Continue.
-
Select the "Bagy" platform and click Continue.
- Copy the Webhook URL and add it in the platform following the steps below: a. Each ad account gets a unique, automatically generated link. b. This link is what connects your account to Bagy and tracks where conversions come from.
Setting up the Webhook in Bagy
Section titled “Setting up the Webhook in Bagy”6.1. Log in to your Bagy account. a. In Bagy’s admin panel, go to “Configurações” (Settings) > “APIs e Webhooks” (APIs and Webhooks).
6.2. Create a new Webhook. a. Click “Adicionar Webhook” (Add Webhook) or “Novo Webhook” (New Webhook).
b. Paste the tracking URL provided by OneClick into the URL field.
c. Select the “Pedidos” (Orders) event — this is the event that represents a confirmed sale.
💡 Tip: If you’re unsure how to create the webhook, watch this Bagy video that shows the setup step by step.
d. Click “Salvar” (Save).
-
Copy the UTM Script generated in OneClick Tracking.

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

- 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.
-
Set the Attribution Mode.
- Watch this video to understand each model.
- Click Continue.

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

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.

Important Notes
Section titled “Important Notes”- Correct event: Make sure the webhook is configured for the “Pedidos” (Orders) event. This is the event that represents a confirmed conversion in Bagy.
- UTMs in your ads: UTMs must be present in the ad URLs and be passed through to the checkout page via the UTM Passthrough Script for tracking to work correctly.
- Payload format: Bagy sends webhook data in
application/x-www-form-urlencodedformat. OneClick Tracking handles this automatically.