Overview
Create a custom destination to send Hardal analytics events to any HTTP endpoint with configurable format and headers.
Configuration
- Go to your Hardal dashboard
- Navigate to Marketing Destinations
- Click “Add Custom Destination”
- Start with a blank template
Endpoint Configuration
{
"endpoint_label": "My Endpoint",
"endpoint_id": "my-endpoint",
"endpoint_url": "https://api.example.com/analytics",
"request_method": "POST",
"content_type": "application/json",
"request_format": {
"event_name": "##event_name##",
"properties": "##properties##",
"created_at": "##created_at##"
}
}
Available Variables
Use these variables in your request format:
##event_name##
: Name of the event
##properties##
: Event properties object
##created_at##
: Event timestamp
##user_id##
: User identifier
##session_id##
: Session identifier
##page.url##
: Current page URL
##page.title##
: Page title
##page.referrer##
: Referrer URL
You can add custom headers for authentication or other purposes:
{
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"X-Custom-Header": "custom-value"
}
}
Testing
- Use the “Test Endpoint” button to verify your configuration
- Check the response status and body
- Monitor the Events Log for delivery status
Responses are generated using AI and may contain mistakes.