Webhook Settings

Alpha Insights Documentation

Docs Navigation

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

  1. Go to Alpha Insights → Settings
  2. Navigate to the Webhooks settings page
  3. 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:

  1. Get webhook URL from your destination platform (Zapier, Make, etc.)
  2. Paste URL into “Webhook URL” field
  3. 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

  1. Enter or verify your webhook URL
  2. Click Save Changes to save the URL
  3. Click Test Webhook button
  4. Alpha Insights immediately sends data to your URL
  5. Check your receiving application to verify data arrived
  6. Review webhook test data output on page to see what was sent

Testing workflow:

  1. Set up webhook receiver (Zapier, Make, etc.)
  2. Get webhook URL from receiver
  3. Paste URL in Alpha Insights
  4. Save changes
  5. Click “Test Webhook”
  6. Verify data arrived at destination
  7. 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

  1. In Zapier, create new Zap
  2. Choose “Webhooks by Zapier” as trigger
  3. Select “Catch Hook”
  4. Copy the webhook URL provided
  5. Paste URL into Alpha Insights webhook settings
  6. Click “Test Webhook” in Alpha Insights
  7. In Zapier, click “Test Trigger” – it should receive the data
  8. Map the data fields to your action (Google Sheets, Slack, etc.)
  9. 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

  1. Create new scenario in Make
  2. Add “Webhooks” module
  3. Select “Custom webhook”
  4. Create new webhook, copy URL
  5. Paste URL into Alpha Insights
  6. Test webhook in Alpha Insights
  7. Make receives data – parse JSON structure
  8. Add modules to process data (router, data transforms, etc.)
  9. 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:

  1. Create Google Sheet with columns matching webhook data
  2. Use Zapier or Make to receive webhook
  3. Map webhook fields to spreadsheet columns
  4. Each webhook creates new row in sheet
  5. Build charts and pivot tables on top

Slack Notifications

Setup:

  1. Use Zapier or Make
  2. Receive webhook from Alpha Insights
  3. Format message with profit data
  4. 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

  1. Configure webhook URL
  2. Select schedule (or leave as “Don’t Schedule” for manual only)
  3. Click Save Changes
  4. Test webhook to verify
  5. Scheduled webhooks will run automatically

Troubleshooting

Webhook Not Sending

Check:

  1. Webhook URL is correct (no typos)
  2. URL is accessible from the internet
  3. Schedule is configured (not “Don’t Schedule”)
  4. WordPress cron is running
  5. 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:

  1. Webhook URL saved correctly in settings
  2. Test webhook shows success
  3. Check destination platform’s webhook history/logs
  4. Verify endpoint is processing POSTs correctly
  5. 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:

  1. Point Alpha Insights webhook to Zapier/Make
  2. In Zapier/Make, create multiple paths
  3. Send to Google Sheets AND Slack AND database
  4. 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!

Got A Question?

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Alpha Insights

Alpha Insights

The World's Most Advanced WooCommerce Drag & Drop Report Builder.

5/5 – Trustpilot

Alpha Insights