Welcome to the integration guide for Creem and Affonso! This partnership enables automated affiliate program management with seamless payment processing.
This integration allows you to leverage Affonso’s affiliate tracking and management alongside Creem’s robust payment processing. Your affiliates can be automatically tracked, and their commissions paid separately from your business financials.
How to integrate Affonso’s affiliate management capabilities with Creem’s payment processing to automate your affiliate program and scale your business.
3. Add Affonso tracking capabilities into your product.
<!-- Place in <head> tag --><script async defer src="https://affonso.io/js/pixel.js" data-affonso="cm4ya9sik0009l9fbcvl9m05z" data-cookie_duration="1"></script>
This script is essential for Affonso to function. When a user visits your website through an affiliate link, it automatically creates a referral with the status “Visited link” and stores a referral cookie on their device.
The script creates a global window.Affonso object that you’ll use in the next step to track successful signups.
// After successful registrationwindow.Affonso.signup(userEmail);
When this function is called, Affonso system will:
Create a new referral with status “LEAD” if a valid referral ID cookie exists
Make the referral visible in both your and your affiliate’s statistics
Note: If your platform allows payments without user registration (e.g., direct checkout), you can skip this step and proceed to the next one for payment tracking.
Best Practice: Call this function for all signups, regardless of the traffic source. The system will only create referrals when a valid referral ID cookie is present. Place the code:
After successful registration for immediate tracking
After email verification if you use double opt-in (DOI)
For more advanced tracking documentation, or further examples in several languages, visit Affonso documentation.