Automate Affiliate Lead Tracking for Calendly Bookings
Your affiliate program is driving valuable leads through appointment bookings, but you can't track or reward them. While AffiliateWP excels at tracking sales, you're blind to the crucial, non-sales conversions happening in Calendly. This leaves you unable to properly incentivize your top-of-funnel affiliates and get a true picture of your marketing ROI.
This playbook provides a step-by-step guide to build a powerful, serverless bridge between Calendly and AffiliateWP. When a lead books an appointment, Calendly automatically sends the data to a lightweight script hosted on the ultra-cost-effective Cloudflare Workers platform. This script then securely communicates with the AffiliateWP API to create a referral for the correct affiliate. The result is a fully automated system that tracks valuable appointment leads as conversions, giving you a complete view of your affiliate performance.
Expected Outcomes
- Accurately reward affiliates for generating qualified appointment leads, not just final sales.
- Gain full visibility into which affiliates are most effective at driving top-of-funnel engagement.
- Automate the lead attribution process, saving hours of manual reconciliation.
- Unlock the full potential of your performance marketing program by incentivizing a wider range of valuable conversions.
Core Tools in This Stack

Calendly
Visit websiteCalendly is a scheduling automation platform that eliminates the back-and-forth emails for finding the perfect meeting time, making it easy to book appointments and manage calendars for individuals, teams, and enterprises.
Key Features
- Automated Scheduling Links
- Calendar Integration (Google, Office 365, Outlook, iCloud)
- Team Scheduling (Round Robin, Collective)
- Customizable Booking Pages
- Automated Workflows (Reminders, Follow-ups)
- Embeddable on Websites
- Meeting Polls for Group Scheduling
- Routing Forms for Lead Qualification
- Integrations with CRM, Video Conferencing, and Payment Apps (Salesforce, Zoom, Stripe)
- Analytics and Reporting
Ideal For
Company Size: Micro, Small, Medium, Large
Industries: Technology & Software, Business & Professional Services, Creative & Media, Education & Non-Profit, Health & Wellness, Other
Pricing
Model: Freemium, Subscription
Tier: Mid-range
Ease of Use
Very Easy

Cloudflare Workers
Visit websiteA serverless application platform that allows developers to build and deploy applications and APIs on Cloudflare's global edge network, running code close to end-users for high performance and low latency.
Key Features
- Global Edge Network
- 0ms Cold Starts
- Broad Language Support
- Integrated Storage Options
- Wrangler CLI
- Cron Triggers
- Automatic Scaling
Ideal For
Company Size: Micro, Small, Medium, Large
Industries: Technology & Software, Business & Professional Services, Retail & E-commerce, Creative & Media, Education & Non-Profit, Health & Wellness, Other
Pricing
Model: Free, Pay-as-you-go, Enterprise
Tier: Low-cost
Ease of Use
Medium
The Workflow
Integration Logic
-
Calendly Booking Sync
When an event occurs in Calendly (e.g., a new booking is created), Calendly triggers a webhook, sending a detailed JSON payload to a specified Cloudflare Worker endpoint URL. The Cloudflare Worker receives this payload, verifies its authenticity using a signing key, and executes custom JavaScript/TypeScript code to process the booking data. This allows for limitless custom actions, such as updating a database, sending a specialized notification to Slack, or syncing data with a proprietary CRM.
Unlock Your Affiliate Lead Tracking Playbook
Start tracking and rewarding affiliates for every Calendly appointment booked, not just sales.