Overview
Clickbank S2S (Server-to-Server) integration handles postbacks from the Clickbank affiliate network. The integration receives webhook postbacks, creates conversion records, and provides automation triggers for Clickbank events. It uses secret key encryption for secure postback validation.What This Integration Provides
Secure Postbacks
Secret key encryption for secure postback validation
Real-time Tracking
Instant notification of sales and commissions
Automation Triggers
Trigger automation workflows on Clickbank postbacks
Transaction Types
Support for purchases, refunds, chargebacks, and upsells
Setup Guide
Step 1: Get Your Secret Key
- Log into your ClickBank account
- Go to Settings → My Account
- Navigate to the Secret Key section (not API Keys)
- Generate or copy your Secret Key
- Keep this key secure - you’ll need it for validation
The Secret Key is used to validate that postbacks are actually coming from Clickbank. It’s encrypted and stored securely in ElasticFunnels.
Step 2: Configure Integration
- Go to Settings → Integrations → Affiliate Networks
- Find Clickbank (S2S) and click “Activate” or “Manage”
- Enter your Secret Key
- Copy the Postback URL provided
- Save the integration
This integration is used as an affiliate. To set up ClickBank as a merchant, see ClickBank.
Step 3: Configure in Clickbank
- Log into your ClickBank account
- Go to Settings → My Site → Advanced Tools
- Navigate to Postback URLs or S2S Postback
- Add the postback URL from ElasticFunnels
- Save your settings
The postback URL is unique to your ElasticFunnels account. Clickbank will send postbacks to this URL when orders are placed.
Secret Key Encryption
How It Works
The Secret Key is used to validate postbacks:- Encrypted Storage: Secret key is encrypted before being stored
- Postback Validation: Each postback is validated using the secret key
- Security: Only postbacks with valid secret keys are processed
- Privacy: Secret key is never exposed in logs or responses
Security Best Practices
- Never Share: Keep your secret key secure and never share it
- Regular Rotation: Consider rotating your secret key periodically
- Monitor Usage: Watch for any unusual postback activity
- Encrypted Storage: Secret key is automatically encrypted in ElasticFunnels
Click ID Tracking
How Click Tracking Works
Clickbank uses click tracking to identify which affiliate links led to conversions:- Automatic Tracking: Click tracking information is automatically captured from Clickbank postbacks
- Attribution: Conversions are automatically attributed to the affiliate link that generated the click
- Validation: System validates click tracking data before processing conversions
Click tracking information is automatically handled by the system. You don’t need to configure anything manually.
Transaction Types
The integration supports multiple transaction types:Purchase
Purchase
When a customer completes a purchase, Clickbank automatically sends a postback. This creates a purchase conversion in ElasticFunnels.
Refund
Refund
When a refund is processed, Clickbank automatically sends a postback. This creates a refund conversion linked to the original purchase.
Chargeback
Chargeback
When a chargeback occurs, Clickbank automatically sends a postback. This creates a chargeback conversion.
Upsell
Upsell
When an upsell is purchased, Clickbank automatically sends a postback. Upsells are tracked separately from initial purchases.
Order Tracking
How Orders Are Tracked
Clickbank uses receipt tracking to link transactions:- Purchase Receipts: Each purchase gets a unique receipt identifier
- Refund/Chargeback Linking: Refunds and chargebacks are automatically linked back to the original purchase
How It Works
When a refund or chargeback occurs, the system automatically links it to the original purchase using receipt tracking. This ensures accurate commission tracking and order history.Receipt tracking is handled automatically by the system. Refunds and chargebacks are always linked to their original purchases.
Automation Integration
Triggering Automations
You can trigger automation workflows when Clickbank postbacks are received:- Go to Automations in the main menu
- Create or edit an automation
- Add a trigger node
- Select “On Clickbank Postback” from the trigger options
- Configure your automation actions
Use Cases
- Welcome Emails: Send welcome emails when purchases are received
- Follow-up Sequences: Start email sequences based on Clickbank events
- CRM Updates: Update CRM records when conversions occur
- Custom Workflows: Build custom automation workflows for Clickbank events
Automation triggers fire automatically when Clickbank postbacks are received and processed successfully.
Tracking Pixels
When you configure Clickbank as a merchant:- Tracking pixels are automatically created
- Pixels track page views and conversions
- Enables accurate attribution for Clickbank orders
- Works with the pixel attribution system
Tracking pixels are created automatically when the merchant is configured. You don’t need to manually set them up.
What Information is Tracked
The integration automatically receives and processes the following information from Clickbank:- Order Information: Receipt ID, transaction type, and order details
- Customer Information: Customer email (when available)
- Transaction Type: Purchase, refund, chargeback, or upsell
- Affiliate Earnings: Commission amount for the transaction
- Product Information: Product name or vendor information
- Click Tracking: Information about which affiliate link generated the conversion
Integration Benefits
- Real-time Tracking: Instant notification of sales and commissions
- Automated Reporting: Automatic sync of performance data
- Commission Management: Track earnings across all your promotions
- Refund Handling: Automated processing of refunds and chargebacks
- Secure Validation: Secret key encryption ensures postback security
- Automation Support: Trigger custom workflows based on Clickbank events
Troubleshooting
Postbacks Not Being Received
Postbacks Not Being Received
Possible Causes:
- Postback URL not configured correctly in Clickbank
- Secret key mismatch
- Postback URL format incorrect
- Verify postback URL is copied correctly (no extra spaces)
- Check that secret key matches in both Clickbank and ElasticFunnels
- Test with a small purchase to verify tracking works
Secret Key Validation Failing
Secret Key Validation Failing
Issue: Postbacks are being rejected due to secret key validationSolution:
- Verify secret key is entered correctly in ElasticFunnels
- Ensure secret key matches the one in Clickbank
- Check that secret key hasn’t been rotated in Clickbank
- Regenerate secret key if needed
Refunds Not Linking to Original Purchase
Refunds Not Linking to Original Purchase
Issue: Refunds not showing connection to original purchaseSolution:
- Verify that the original purchase was processed successfully
- Check that Clickbank is sending complete refund information
- Contact support if refunds are not linking correctly
Automation Triggers Not Firing
Automation Triggers Not Firing
Issue: Automations not triggering on Clickbank postbacksSolution:
- Verify automation has “On Clickbank Postback” trigger node
- Check that postbacks are being received successfully
- Ensure automation is active and enabled
Best Practices
1
Secure Your Secret Key
Keep your secret key secure and never share it. It’s automatically encrypted in ElasticFunnels, but you should still treat it as sensitive information.
2
Verify Postback URL
Double-check that the postback URL is configured correctly in Clickbank. Any typos will prevent postbacks from working.
3
Test with Small Purchase
Test the integration with a small purchase first to verify tracking works before running large campaigns.
4
Monitor Receipt IDs
Monitor receipt IDs to ensure refunds and chargebacks are properly linked to original purchases.
5
Set Up Automation Triggers
Use automation triggers to build custom workflows based on Clickbank events (welcome emails, CRM updates, etc.).
6
Handle Upsell Transactions
Upsell transactions are automatically tracked separately from initial purchases. Monitor your conversion data to see both initial purchases and upsells.
Security & Privacy
- Secret Key Encryption: Secret keys are encrypted before storage
- Postback Validation: All postbacks are validated using secret key
- Secure Storage: Customer data is handled securely
- Audit Logging: All transactions are logged for audit purposes
Allow up to 15 minutes for data to appear after a purchase. Postbacks are processed in real-time, but there may be a slight delay.