Webhooks Integration
Learn how to set up and use Webhooks in Ours to send and map data from your sources for seamless integration with the platform.
Webhooks Integration
Webhooks in Ours allow you to send data from external systems to the platform in real-time. By configuring a source, setting up your Webhook URL, and mapping the incoming data to Ours' schema, you can seamlessly integrate your existing workflows and tracking systems.
Setting Up Webhooks
To get started with Webhooks in Ours:
- Navigate to the Sources section in your dashboard.
- Select Webhooks as the source type.
- Enable the Webhook source by toggling the switch.
- Copy the Webhook URL provided by Ours. This URL is unique to your source and is used to send data from your external system to Ours.
- Save your changes to activate the Webhook source.

Webhook URL
The Webhook URL is the endpoint where your external system sends data to Ours. It is essential to keep this URL secure as it directly connects your external systems to the platform. If necessary, regenerate the Webhook URL to invalidate the old one and improve security.

Mapping Webhook Data
After setting up the Webhook, you need to configure how the incoming data maps to the Ours data model.
You will want to specify at least one of visitor ID
, email
, or external ID
. These are used to find users in our database that already have events and data associated too them. After pasting the webhook URL into your app, you should fire a few events. This will make sure Ours knows the shape of your incoming data to the webhook.
From there, you just enter the variable or place we should look in the body
of the webhook's request for each piece of data. For items like event properties
you can either map the entire object. Or, a select number of fields.
Data Mapping UI
- Open the Mappings tab in the Webhook configuration.
- Use the fields provided to map your Webhook payload to Ours' schema:
- Webhook Fields: Define the incoming fields from your external system.
- Ours Data: Map the fields to Ours attributes, such as Event Name, Ours Visitor ID, External ID, User Email, or Event ID.
- Use variables (e.g.,
{{nested.property}}
) to dynamically select data from the incoming payload, or specify static values if needed. - Save your mappings to finalize the configuration.

Managing Sources
You can manage your Webhook sources through the Sources section in the dashboard. This includes:
- Renaming your Webhook source for better organization.
- Reviewing or updating your Webhook URL and mappings.
- Deleting a source if it is no longer needed. Note: Deleting a source is irreversible.
Best Practices for Webhooks Integration
-
Secure Your Webhook URL:
- Treat the Webhook URL like a password. Do not share it publicly.
- Regenerate the URL if you suspect it has been compromised.
-
Test Your Integration:
- Use tools or scripts to send test data to the Webhook URL and ensure mappings work as expected.
- Review the Recent Events Dashboard to verify incoming data.
-
Map Data Accurately:
- Use the Mappings tab to ensure that all critical data points are correctly aligned with Ours attributes.
- Avoid leaving fields unmapped if they contain important information.
-
Monitor Your Source:
- Use the reporting tools available in the dashboard to review Webhook activity and troubleshoot issues.
- Check error logs to identify and resolve integration problems.
Debugging Webhooks
If you encounter issues with your Webhooks integration:
- Verify that the Webhook URL is correct and accessible from your external system.
- Check the format and structure of the data payload being sent to Ours.
- Use the Recent Events Dashboard to identify mismatches in data or mapping issues.
- Review error messages in the Compliance Report or Event Flow sections for additional insights.
Summary
Webhooks provide a powerful way to connect external systems with Ours, enabling real-time data integration and event tracking. By following the setup and best practices outlined in this guide, you can ensure a seamless and secure Webhook implementation.
Updated about 2 months ago