Skip to main content

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

Important: Clickbank uses a Secret Key (not an API key) for postback validation. This is different from other integrations.
  1. Log into your ClickBank account
  2. Go to Settings → My Account
  3. Navigate to the Secret Key section (not API Keys)
  4. Generate or copy your Secret Key
  5. 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

  1. Go to Settings → Integrations → Affiliate Networks
  2. Find Clickbank (S2S) and click “Activate” or “Manage”
  3. Enter your Secret Key
  4. Copy the Postback URL provided
  5. Save the integration
This integration is used as an affiliate. To set up ClickBank as a merchant, see ClickBank.

Step 3: Configure in Clickbank

  1. Log into your ClickBank account
  2. Go to Settings → My Site → Advanced Tools
  3. Navigate to Postback URLs or S2S Postback
  4. Add the postback URL from ElasticFunnels
  5. 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:
  1. Encrypted Storage: Secret key is encrypted before being stored
  2. Postback Validation: Each postback is validated using the secret key
  3. Security: Only postbacks with valid secret keys are processed
  4. 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
If you suspect your secret key has been compromised, generate a new one in Clickbank and update it in ElasticFunnels immediately.

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:
When a customer completes a purchase, Clickbank automatically sends a postback. This creates a purchase conversion in ElasticFunnels.
When a refund is processed, Clickbank automatically sends a postback. This creates a refund conversion linked to the original purchase.
When a chargeback occurs, Clickbank automatically sends a postback. This creates a chargeback conversion.
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:
  1. Go to Automations in the main menu
  2. Create or edit an automation
  3. Add a trigger node
  4. Select “On Clickbank Postback” from the trigger options
  5. 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

Possible Causes:
  • Postback URL not configured correctly in Clickbank
  • Secret key mismatch
  • Postback URL format incorrect
Solution:
  1. Verify postback URL is copied correctly (no extra spaces)
  2. Check that secret key matches in both Clickbank and ElasticFunnels
  3. Test with a small purchase to verify tracking works
Issue: Postbacks are being rejected due to secret key validationSolution:
  1. Verify secret key is entered correctly in ElasticFunnels
  2. Ensure secret key matches the one in Clickbank
  3. Check that secret key hasn’t been rotated in Clickbank
  4. Regenerate secret key if needed
Issue: Refunds not showing connection to original purchaseSolution:
  1. Verify that the original purchase was processed successfully
  2. Check that Clickbank is sending complete refund information
  3. Contact support if refunds are not linking correctly
Issue: Automations not triggering on Clickbank postbacksSolution:
  1. Verify automation has “On Clickbank Postback” trigger node
  2. Check that postbacks are being received successfully
  3. 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.

Next Steps