Mida's HTTP Webhook feature allows you to seamlessly integrate variant and conversion data from your A/B tests into your backend systems.
By leveraging webhooks, Mida will automatically send variant information for both visits and conversions to a specified endpoint in your backend.
Configure Webhook in Mida
Step 1: Access Webhook Settings: Navigate to the Integration tab from the left panel menu
Step 2: Click on Enable Now and enter the URL of the endpoint configured in your backend.
Step 3: Save your webhook settings.
What information is sent with the HTTP Webhook integration?
With the HTTP Webhook, we will send variant information for both visits and conversions.
The result sent will be as follows:
// When a visitor is exposed to a test variant { timestamp: 1716557353521, id: 6293, name: 'PDP Testing Page', variant: 'Variant 1', type: 'visit', visitor: { mida_id: '097994b8fc6aad1c7812a25af80507345c99cb89d5918bc8c1', } } // When a conversion was recorded { timestamp: 1716557353221, id: 6293, name: 'PDP Testing Page', variant: 'Control', type: 'conversion', visitor: { mida_id: '097994b8fc6aad1345c99cb89d5918bc8c1c7812a25af80507', } }
Enrich HTTP Webhook Integration with Visitor Profile Enrichment
To ensure thorough data collection and user identification, follow these steps:
1. Set up Mida HTTP Webhook: Sends variant and conversion data to your backend for real-time updates (follow the steps listed above in this doc).
2. Implement Visitor Identification: Assigns unique identities to users for correlation with your database. Access the Visitor Identification JavaScript snippet here for seamless integration.
The result sent will be as follows:
// When a visitor is exposed to a test variant { timestamp: 1716557353521, id: 6293, name: 'PDP Testing Page', variant: 'Variant 1', type: 'visit', visitor: { mida_id: '097994b8fc6aad1c7812a25af80507345c99cb89d5918bc8c1', id: '14', name: 'John Doe', email: 'john@mida.so' } } // When a conversion was recorded { timestamp: 1716557353221, id: 6293, name: 'PDP Testing Page', variant: 'Control', type: 'conversion', visitor: { mida_id: '097994b8fc6aad1345c99cb89d5918bc8c1c7812a25af80507', id: '33', name: 'Mindy Smith', email: 'mindy@mida.so' } }
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article