🚀 ReferWith CDN

Lightning-fast JavaScript SDKs for affiliate tracking

5.2KB
Web SDK
5.7KB
Shopify SDK
Global
CDN Network

🌐 Web SDK v1.0.0

Universal JavaScript SDK for any e-commerce platform. One script tag and you're ready to track affiliate conversions.

Quick Start:

<script src="https://cdn.referwith.io/js/referwith.min.js" data-referwith-key="YOUR_MERCHANT_KEY" data-auto-detect="true"></script>

Manual Tracking:

referwith('track', 'purchase', { orderId: 'order_123', value: 149.99, currency: 'USD' });

Available URLs:

🛍️ Shopify SDK Auto-Inject

Specialized SDK for Shopify stores. Automatically injected via the ReferWith Shopify app. Zero setup required!

How it works:

// Automatically injected by ReferWith app // Uses Shopify's order attributes system // Tracks through entire checkout flow

Manual Events (Optional):

referwithShopifyTrack('custom_event', { action: 'viewed_product', productId: '12345' });

Features:

📱 Mobile SDK React Native

Mobile app attribution for iOS and Android. Supports React Native, Flutter, and native development.

Installation:

import ReferWithMobile from 'https://cdn.referwith.io/js/referwith-mobile.min.js'; const referWith = new ReferWithMobile({ merchantKey: 'YOUR_KEY' }); await referWith.init();

Track Events:

// Track app install await referWith.track('app_install'); // Track purchases await referWith.trackPurchase({ revenue: 9.99, productName: 'Premium' });

Supported Platforms:

📚 Integration Examples

Check out these working examples to get started quickly:

🎯 Why ReferWith CDN?

⚡ Lightning Fast

Global Cloudflare CDN with edge caching. Your SDKs load in milliseconds worldwide.

🔒 Secure & Reliable

HTTPS-only delivery with integrity checking. 99.99% uptime guaranteed.

📈 Always Updated

Automatic updates and backwards compatibility. Your integrations never break.