Tracking Conversions - N8N
Tracking Conversions - N8N
This article explains how to set up VTurb's conversion tracking and how to integrate this functionality with N8N.
- On your **N8N **dashboard, click Start from Scratch to create a new workflow.
- Click on the + sign to add the first step.
- In the menu, select the option On Webhook Call.
- In the webhook menu, first select the Test URL, then choose the method POST.
- Copy the Test URL.
- Click the button Listen for Test Event.
- Now, send a test event from your payment platform (e.g., Hotmart, Kiwify, Cartpanda, etc.) using the test URL to configure the webhook. This completes the test part of the webhook setup.
- After setting up the test webhook, also register the production webhook, this time using the production URL.
- After sending the test event, you will see a screen like this one, indicating that the event was received successfully!
- After completing the test, click the + icon to add a new step.
- Select HTTP Request.
- Select the POST Method.
- Copy the URL generated by the VTurb panel under Conversion Tracking and paste it in the URL field in N8N.
- Replace the platform name in the URL with N8N. Example of where to replace and how it should look:
- After replacing the name in the URL, enable the Send Body option.
- In Body Content Type, select JSON.
- In Specify Body, select Using JSON.
- Copy this JSON:
{
"order_amount_cents": product value in cents,
"currency": "currency type (BRL, USD, etc...)",
"conversion_key": "Parameter used on the platform (sck, src, vtid)",
"product_name": "Product name",
"category": "initial_sale", // No need to change
"order_created_at": "Payment date",
"order_ip": "Access IP"
}
- Paste it into the specified JSON field.
- Find the variables that match each piece of information required in the JSON you copied.
Example of a JSON with Hotmart variables:
{
"order_amount_cents": {{ $json.body.data.purchase.original_offer_price.value }},
"currency": "{{ $json.body.data.purchase.original_offer_price.currency_value }}",
"conversion_key": "{{ $json.body.data.purchase.sckPaymentLink }}",
"product_name": "{{ $json.body.data.product.name }}",
"category": "initial_sale",
"order_created_at": "{{ $json.body.creation_date }}",
"order_ip": "{{ $json.headers['x-real-ip'] }}"
}
Note: Each payment platform uses different variable names.
- Once you've finished setting up the JSON, your webhook will be configured via **N8N **and will look like the image below. The color will change as soon as your first sale is made!
And that's it, integration with **N8N **successfully completed!
Now the conversions from your videos will be tracked within VTurb.
If you have any questions or need support during the process, our team is here to help!
**
Updated on: 07/14/2025
Thank you!