Webhook Settings
Webhooks allow you to automatically send your Alpha Insights data to third-party platforms like Zapier, Make (formerly Integromat), Google Sheets, Slack, or custom applications. Set up scheduled exports of your profit and performance data to integrate with your existing tools and workflows.
Accessing Webhook Settings
- Go to Alpha Insights → Settings
- Navigate to the Webhooks settings page
- You’ll see webhook configuration options
What Are Webhooks?
Webhooks are automated HTTP POST requests that send data from Alpha Insights to a URL endpoint you specify. Think of them as automatic data pushes that happen on a schedule.
Common Use Cases
- Google Sheets integration: Push daily profit data to spreadsheet (via Zapier/Make)
- Slack notifications: Send performance summaries to team channel
- Discord alerts: Post profit reports to Discord server
- Custom dashboards: Feed data into business intelligence tools
- Accounting software: Sync revenue and expense data
- Data warehousing: Send to data warehouse for analysis
- Email reports: Trigger custom email reports through third-party services
- SMS alerts: Send text alerts via Twilio when profit goals hit
Webhook Export Configuration
Webhook URL
What it is: The endpoint where Alpha Insights will POST your data
Format: Must be a valid HTTPS URL
Examples:
- Zapier:
https://hooks.zapier.com/hooks/catch/12345/abcdef/ - Make:
https://hook.us1.make.com/abc123def456 - Custom API:
https://api.yourdomain.com/alpha-insights-webhook - N8n:
https://your-n8n.com/webhook/alpha-insights
How to configure:
- Get webhook URL from your destination platform (Zapier, Make, etc.)
- Paste URL into “Webhook URL” field
- Click Save Changes
Important: URL must be accessible from the internet – Alpha Insights sends data FROM your server TO this URL
Schedule Webhook Export
What it does: Controls when Alpha Insights sends data to your webhook
Options:
- Don’t Schedule Export: Manual only – use “Test Webhook” button to send
- Daily: Sends yesterday’s data once per day (~1 AM)
- Weekly: Sends last week’s data once per week (Monday ~1 AM)
- Monthly: Sends last month’s data once per month (1st ~1 AM)
Timing details:
- Daily: Runs at approximately 1 AM start of the day
- Weekly: Monday morning at 1 AM with previous week’s data (Mon-Sun)
- Monthly: 1st of month at 1 AM with previous complete month’s data
- Times are approximate, depend on WordPress cron
Data periods:
- Daily schedule: Exports previous day (e.g., Tuesday morning sends Monday’s data)
- Weekly schedule: Exports previous week Monday-Sunday
- Monthly schedule: Exports previous complete calendar month
Last run tracking: If configured, page shows “Your last successful webhook ran on 2025“
Webhook Testing
Test Webhook Function
What it does: Immediately sends test data to your webhook URL
How to Test
- Enter or verify your webhook URL
- Click Save Changes to save the URL
- Click Test Webhook button
- Alpha Insights immediately sends data to your URL
- Check your receiving application to verify data arrived
- Review webhook test data output on page to see what was sent
Testing workflow:
- Set up webhook receiver (Zapier, Make, etc.)
- Get webhook URL from receiver
- Paste URL in Alpha Insights
- Save changes
- Click “Test Webhook”
- Verify data arrived at destination
- If successful, enable schedule
Webhook Test Data Output
On the settings page, you’ll see a preview of the data that will be sent.
What’s shown:
- Complete JSON structure of webhook payload
- Uses sample data for preview purposes
- Shows exactly what format your endpoint will receive
- Pretty-printed JSON for easy reading
Use this to:
- Design your webhook receiver
- Map fields in Zapier/Make
- Understand data structure
- Write custom integration code
Webhook Data Format
JSON Payload Structure
Alpha Insights sends data as JSON in the POST request body.
Typical data included:
- Date range: Start and end dates for the period
- Store information: Store name, URL, currency
- Revenue metrics: Total revenue, order count
- Cost breakdown: Product costs, shipping, payment fees
- Profit metrics: Gross profit, net profit, margins
- Order details: Average order value, products sold
- Expense summary: Total expenses by category
- Top products: Best-selling or most profitable products
- Campaign data: Ad spend and ROAS (if applicable)
Example structure:
{
"store_name": "Your Store Name",
"store_url": "https://yourstore.com",
"currency": "USD",
"date_range": {
"start": "2024-10-15",
"end": "2024-10-22",
"period": "last_7_days"
},
"revenue": {
"total": 12450.00,
"orders": 143,
"average_order_value": 87.06
},
"costs": {
"total": 7558.00,
"product_cogs": 5800.00,
"shipping": 950.00,
"payment_fees": 408.00,
"other": 400.00
},
"profit": {
"gross_profit": 4892.00,
"gross_margin": 39.3,
"expenses": 645.00,
"net_profit": 4247.00,
"net_margin": 34.1
},
"products_sold": 287,
"refunds": 450.00
}
Note: Actual structure shown in “Webhook Test Data Output” section on settings page
HTTP Request Details
Method: POST
Content-Type: application/json
Body: JSON payload with your data
Timeout: 30 seconds
Expected response: 200 OK status code
Integration Examples
Zapier Integration
- In Zapier, create new Zap
- Choose “Webhooks by Zapier” as trigger
- Select “Catch Hook”
- Copy the webhook URL provided
- Paste URL into Alpha Insights webhook settings
- Click “Test Webhook” in Alpha Insights
- In Zapier, click “Test Trigger” – it should receive the data
- Map the data fields to your action (Google Sheets, Slack, etc.)
- Enable schedule in Alpha Insights
Popular Zapier actions:
- Add row to Google Sheets
- Send message to Slack
- Send email via Gmail
- Create task in project management tool
Make (Integromat) Integration
- Create new scenario in Make
- Add “Webhooks” module
- Select “Custom webhook”
- Create new webhook, copy URL
- Paste URL into Alpha Insights
- Test webhook in Alpha Insights
- Make receives data – parse JSON structure
- Add modules to process data (router, data transforms, etc.)
- Connect to destination (Google Sheets, databases, etc.)
Google Sheets Direct (via Zapier/Make)
What you can do:
- Daily profit tracking spreadsheet
- Automatic monthly reports
- Historical performance database
- Charts and visualizations
Typical setup:
- Create Google Sheet with columns matching webhook data
- Use Zapier or Make to receive webhook
- Map webhook fields to spreadsheet columns
- Each webhook creates new row in sheet
- Build charts and pivot tables on top
Slack Notifications
Setup:
- Use Zapier or Make
- Receive webhook from Alpha Insights
- Format message with profit data
- Send to Slack channel
Example Slack message:
📊 Daily Performance Report ━━━━━━━━━━━━━━━━━━━ 💰 Revenue: $2,450 ✅ Profit: $892 (36.4% margin) 📦 Orders: 23 📈 AOV: $106.52
Custom Application
If you’re building a custom receiver:
Endpoint requirements:
- Accept POST requests
- Parse JSON from request body
- Return 200 OK status code
- Handle within 30 seconds
- HTTPS recommended for security
Example PHP receiver:
<?php
// Get JSON from webhook
$json = file_get_contents('php://input');
$data = json_decode($json, true);
// Process data
$revenue = $data['revenue']['total'];
$profit = $data['profit']['net_profit'];
// Store in database, send alerts, etc.
// ...
// Return success
http_response_code(200);
echo json_encode(['status' => 'success']);
?>
Saving Your Settings
- Configure webhook URL
- Select schedule (or leave as “Don’t Schedule” for manual only)
- Click Save Changes
- Test webhook to verify
- Scheduled webhooks will run automatically
Troubleshooting
Webhook Not Sending
Check:
- Webhook URL is correct (no typos)
- URL is accessible from the internet
- Schedule is configured (not “Don’t Schedule”)
- WordPress cron is running
- Test webhook works manually
Test Webhook Fails
Common causes:
- Invalid URL: Check URL format and spelling
- Endpoint down: Verify destination is online
- Firewall blocking: Ensure endpoint allows connections from your server
- SSL certificate issues: Make sure destination has valid HTTPS certificate
- Timeout: Endpoint must respond within 30 seconds
Data Not Arriving at Destination
Check:
- Webhook URL saved correctly in settings
- Test webhook shows success
- Check destination platform’s webhook history/logs
- Verify endpoint is processing POSTs correctly
- Look for error messages in webhook receiver
Wrong Data in Webhook
Check:
- WordPress timezone matches your location
- Order statuses configured correctly
- Cache is up to date (clear if needed)
- Schedule matches expected period (daily/weekly/monthly)
Webhook Sending at Wrong Time
Cause: WordPress cron dependency
Solution:
- WordPress cron requires site traffic to trigger
- Install “WP Cron Control” for reliable scheduling
- Or set up server cron job (advanced)
- Verify WordPress timezone setting is correct
Best Practices
Setup
- Test first: Always test webhook before enabling schedule
- Use HTTPS: Secure endpoints for data protection
- Verify format: Review test data output to understand structure
- Start simple: Begin with one integration, add more later
- Document mapping: Keep notes on which fields go where
Security
- Use HTTPS endpoints only
- Don’t expose webhook URLs publicly
- Consider adding authentication to your endpoint
- Validate incoming data in your receiver
- Monitor webhook logs for unauthorized access
Reliability
- Ensure endpoint responds quickly (<30 seconds)
- Return 200 OK even if processing async
- Have error handling in your receiver
- Monitor destination for failed deliveries
- Consider adding retry logic in receiver
Data Usage
- Google Sheets: Perfect for daily tracking and historical trends
- Slack: Great for team notifications and alerts
- Database: Store for advanced analytics and BI tools
- Email: Send formatted reports to stakeholders
- Dashboards: Feed real-time business dashboards
Advanced Use Cases
Multi-Destination Webhooks
Alpha Insights supports one webhook URL, but you can use Zapier/Make to fan out to multiple destinations:
- Point Alpha Insights webhook to Zapier/Make
- In Zapier/Make, create multiple paths
- Send to Google Sheets AND Slack AND database
- Single webhook, multiple destinations
Conditional Logic
Use Zapier/Make to add conditions:
- Only send Slack alert if profit below threshold
- Add to different sheets based on performance
- Trigger email only on weekdays
- Format differently for different recipients
Data Transformation
Process data before sending to destination:
- Calculate additional metrics
- Format currency differently
- Combine with data from other sources
- Create charts/graphs before sending
Webhook vs Email Reports
Use Webhooks when:
- Need data in other systems (Google Sheets, databases)
- Want to build custom integrations
- Need machine-readable data (JSON)
- Want to process or transform data
- Building automated workflows
Use Email Reports when:
- Need human-readable summaries
- Want formatted reports in inbox
- No technical integration needed
- Simple notification requirements
Use both when: You want automated data exports AND human-readable summaries
Summary
Webhook settings provide:
- Flexible integration: Connect to any platform via webhooks
- Automated exports: Scheduled data delivery
- Structured data: JSON format for easy processing
- Multiple use cases: Spreadsheets, alerts, custom apps, BI tools
- Set and forget: Configure once, runs automatically
Webhooks unlock the power to integrate Alpha Insights with your existing tools and workflows, enabling automated reporting, custom analytics, and seamless data flow across your business systems!