Why Businesses Love Our Integration
✓ ONE script tag • ✓ 5-minute setup • ✓ Works automatically • ✓ No developer needed
"The easiest affiliate integration we've ever done. Literally copy-paste and you're done!" - Tech Startup CEO
Super Simple Integration
✨ Just ONE script tag. That's it! ✨
Get up and running in under 5 minutes. No complex coding required.
Need Your Business ID?
Register for a free business account to get your unique Business ID and start tracking affiliate sales.
How Affiliate Tracking Works
Customer Clicks Affiliate Link
On publisher-site.com, customer clicks: https://affiliate.bonanzer.com/affiliate?publisher=PUBLISHER_ID&promotion=PROMOTION_ID&business=BUSINESS_ID
Redirect to Your Site
Link redirects to Nike.com with affiliate parameters. Your tracking script detects the referrer and sets 30-day cookies.
Purchase Made
Customer buys on Nike.com. Tracking script calls POST affiliate.bonanzer.com/track with purchase data.
Commission Processed
Purchase logged in. Publisher earns commission based on promotion settings.
Step 1: Add Tracking Script
To find your YOUR_BUSINESS_ID click here
It's This Easy:
Copy this ONE script tag and paste it anywhere in your website's HTML (in the <head> section or before </body>). That's literally all you need to do!
<!-- Bonanzer Universal Tracking -->
<script src="https://affiliate.bonanzer.com/track.min.js"
data-business-id="YOUR_BUSINESS_ID"
data-business-platform="shopify">
</script>
<!-- Platform options: shopify, woocommerce, magento, bigcommerce, custom -->
Choose Your Platform
Select your e-commerce platform for optimized tracking:
🛍️ Shopify
data-business-platform="shopify"
Optimized for Shopify checkout flow and thank you pages
🛍️ WooCommerce
data-business-platform="woocommerce"
Optimized for WordPress WooCommerce stores
🛍️ Magento
data-business-platform="magento"
Optimized for Magento 1.x and 2.x stores
🛍️ BigCommerce
data-business-platform="bigcommerce"
Optimized for BigCommerce checkout pages
⚙️ Custom/Other
data-business-platform="custom"
Universal detection for custom or other platforms
🤖 Auto-Detect
data-business-platform="auto"
Let the script automatically detect your platform
⚠️ Important Notes:
- Add this script to all pages where affiliate traffic might land
- Choose the correct platform for optimal order detection accuracy
- The script is lightweight (<10KB) and won't affect your site's performance
- Works automatically - no additional coding required for most sites
Step 2: Purchases Tracked Automatically!
Works Like Magic:
The script automatically detects purchases on your site. No manual coding needed for 99% of websites!
Auto-Detection Methods
- URL patterns: /thank-you, /order-complete, /success
- Page titles: "Order Complete", "Thank You"
- DOM elements: .order-confirmation, .purchase-success
- E-commerce platforms: Shopify, WooCommerce, Magento
- Analytics data: Google Analytics Enhanced Ecommerce
Data Extraction
- Order ID: From URL params or page text
- Order total: From price patterns or platform APIs
- Currency: Auto-detected or defaults to USD
- Customer email: When available
- Platform data: Native e-commerce integrations
- Order items: Product details (Shopify, WooCommerce, GA4)
Smart & Universal
Works with 99% of websites without any additional coding. The script is smart enough to detect purchases across different platforms, custom checkout flows, and page structures.
Advanced: Custom Integration Options
Manual Purchase Tracking
For full control or custom checkout flows:
// Manual purchase tracking
window.Bonanzer.trackPurchase({
orderId: "ORDER-12345", // Required
total: 149.99, // Required (can also use 'orderValue')
currency: "USD", // Optional (default: USD)
customerEmail: "customer@example.com", // Optional
customerId: "CUST-789", // Optional
items: [ // Optional - order items
{
id: "ITEM-001",
name: "Nike Air Max",
sku: "NKE-AM-001",
price: 149.99,
quantity: 1,
category: "Shoes"
}
]
});
// Example: On checkout completion
function onOrderComplete(orderData) {
window.Bonanzer.trackPurchase(orderData);
}
Checkout Completion Hook
Register a callback for custom checkout systems:
// Register checkout completion callback
window.Bonanzer.onCheckoutComplete(function() {
// This fires when purchase is detected
console.log('Purchase completed!');
// You can add custom logic here
// analytics, notifications, etc.
});
// Debug and test functions
console.log(window.Bonanzer.debug()); // View debug info
window.Bonanzer.test(); // Test tracking with dummy data
Required Fields
orderId- Your unique order identifiertotalororderValue- Total purchase amount (number)currency- Currency code (default: "USD")
Optional Fields
customerEmail- Customer's email addresscustomerId- Your internal customer IDitems- Array of order items with details
Cooling Period & Refund Handling
📅 2-Month Cooling Period
All affiliate commissions have a 2-month cooling period before payment. This allows time for refunds and cancellations to be processed.
When a customer requests a refund or cancellation, you must notify our system to prevent commission payout.
// Refund tracking endpoint
app.post('/api/bonanzer/track-refund', async (req, res) => {
try {
const { orderId, refundAmount, refundReason } = req.body;
const response = await fetch('https://affiliate.bonanzer.com/api/track-refund', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.BONANZER_API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
businessId: process.env.BONANZER_BUSINESS_ID,
orderId: orderId,
refundAmount: parseFloat(refundAmount),
refundReason: refundReason,
refundTimestamp: Date.now(),
isFullRefund: refundAmount === originalOrderTotal
})
});
if (response.ok) {
console.log('Refund tracked for order:', orderId);
res.json({ success: true });
} else {
throw new Error('Failed to track refund');
}
} catch (error) {
console.error('Refund tracking error:', error);
res.status(500).json({ error: 'Failed to track refund' });
}
});
Commission Timeline
Day 0: Purchase Made
Customer completes purchase through affiliate link
Days 1-60: Cooling Period
Commission is pending. Refunds/cancellations can affect payout
Day 61: Commission Confirmed
If no refunds, commission is confirmed and paid to affiliate
Commission Benefits
- Automatic commission calculation
- Real-time tracking dashboard
- Fraud protection built-in
- Detailed analytics & reporting
- Monthly automated invoicing
Testing Your Integration
Test the Flow
- Add the tracking script to your website
- Create test affiliate link:
https://affiliate.bonanzer.com/affiliate?promotion=ID&business=ID&publisher=ID - Click the link - it will redirect to your site with parameters
- Check browser cookies for
bonanzer_affiliate,bonanzer_promotion,bonanzer_business - Complete a test purchase and call
bonanzerTrackPurchase() - Verify tracking in your dashboard
Debug Mode
Add this to your page to enable debug logging:
<script>
// Check tracking cookies
console.log('Affiliate:', getCookie('bonanzer_affiliate'));
console.log('Promotion:', getCookie('bonanzer_promotion'));
console.log('Business:', getCookie('bonanzer_business'));
console.log('Timestamp:', getCookie('bonanzer_timestamp'));
function getCookie(name) {
const value = '; ' + document.cookie;
const parts = value.split('; ' + name + '=');
if (parts.length === 2) return parts.pop().split(';').shift();
}
</script>
Transparent Pricing
How Our Commission Model Works
Simple, transparent, performance-based pricing. You only pay when you make sales!
Two-Part Commission Structure:
Publisher Commission
You set the rate (typically 5-25%). This is what publishers earn for driving sales to your business.
Platform Fee
We charge 2% of order value. This covers tracking, analytics, payment processing, and platform maintenance.
Example Calculation:
| Order Value | Publisher Commission (3%) | Platform Fee (2%) | Your Total Cost | Your Net Revenue |
|---|---|---|---|---|
| $100 | $3.00 | $2.00 | $5.00 | $95.00 |
| $500 | $15.00 | $10.00 | $25.00 | $475.00 |
| $1,000 | $30.00 | $20.00 | $50.00 | $950.00 |
Key Benefits
- Pay for Performance: Only pay when sales happen
- No Setup Fees: Start with zero upfront costs
- Flexible Rates: You control publisher commissions
- Transparent: All costs calculated upfront
- Monthly Billing: Invoiced once per month
Pro Tip: Higher publisher rates = more affiliates promoting your products!
Need Help?
Our technical team is here to help you get up and running quickly