How to add an affiliate program to your Webflow site
Create a program on Anderro, paste the tracking snippet into your Webflow site's Head code, sell through Stripe Payment Links, and add a short script that puts the visitor ID on those links. No server needed.
Webflow steps last checked December 4, 2026.
Webflow at a glance
| Snippet | Site settings › Custom code › Head code |
|---|---|
| Secret key | Not needed |
| Payments | Stripe Payment Links, or Paddle (not Webflow Ecommerce checkout) |
| Plan needed | A paid Site plan or a paid Workspace plan |
Set up in 4 steps
1. Create your program on Anderro
Sign up, add your product and choose what affiliates earn. Anderro then shows your tracking snippet with your public key filled in.
2. Add the snippet in Head code
In Webflow, open Site settings, then Custom code, paste the snippet into Head code and save. Custom code needs a paid Site plan or a paid Workspace plan.
By default the snippet waits for the visitor's consent before it sets its cookie. Call window.anderro.optIn() when they accept cookies. Your setup screen in Anderro tells you if your program is set to track without waiting.
<script src="https://track.anderro.com/a.js" data-key="YOUR_PUBLIC_KEY"></script>
3. Connect Stripe and tag your Payment Links
In Anderro, open your product, choose Integrations, then Stripe, and copy your webhook URL. In Stripe, open Developers, then Webhooks, add an endpoint with that URL, select the seven events Anderro lists, and paste the endpoint's signing secret back into Anderro. Anderro keeps no access to your Stripe account.
Point your buy buttons at Stripe Payment Links, then add the script below next to the snippet (in Site settings, Custom code, Footer code). When a buyer clicks, it adds their visitor ID to the link as client_reference_id, and Stripe hands it back with the sale.
If your Payment Links use your own domain instead of buy.stripe.com, change the address in the script to match.
<script>
// Adds the Anderro visitor ID to Stripe Payment Links when they are clicked.
document.addEventListener("click", function (e) {
var a = e.target.closest && e.target.closest('a[href^="https://buy.stripe.com/"]');
var vid = window.anderro && window.anderro.getVisitorId && window.anderro.getVisitorId();
if (!a || !vid) return;
var url = new URL(a.href);
url.searchParams.set("client_reference_id", vid);
a.href = url.toString();
}, true);
</script>
4. Publish and test
Publish the site. Custom code is not live until you publish, and some scripts do not run fully in the Designer preview.
Then open your site through your own test referral link from Anderro, sign up and buy. The click, the sign-up and the sale show on your Anderro dashboard. Stripe's test mode works too: test payments never earn a commission.
How a sale is tied to an affiliate
The snippet remembers which affiliate sent a visitor and gives that visitor an ID. Your checkout passes the ID to Stripe, Stripe sends the sale to Anderro, and the affiliate who sent the customer is credited. Renewals need no extra code: they are matched to the customer from their first payment.
A customer who already bought through one affiliate stays with that affiliate, and an affiliate buying through their own link earns nothing unless you allow it.
What to know on Webflow
- Webflow Ecommerce checkout has no documented way to pass the visitor ID to Stripe, so its sales cannot be credited to an affiliate. Sell through Stripe Payment Links or Paddle instead.
- If people sign up in an app on a subdomain (for example
app.yoursite.com), add the snippet there too with the same key. The visitor's cookie is set for your whole domain, so the affiliate who sent them keeps the credit. - US dollars only. A payment in another currency is not recorded, and Anderro's Integrations page tells you when one arrives.
- Commissions wait out a hold you choose (7 to 90 days), so a refund inside the hold never costs you a commission.
If something does not show up
The snippet is not on the live site
Custom code goes live only when you publish. Publish to your webflow.io staging address or your domain and test there.
Store orders are not credited
Webflow Ecommerce checkout cannot carry the visitor ID to Stripe. Sell through Payment Links or Paddle for orders you want credited.
My test click does not show up
The snippet waits for consent: accept cookies on your site, and check that your cookie banner calls window.anderro.optIn(). If your site sets a Content Security Policy, allow https://track.anderro.com in script-src and connect-src.
A sale shows up, but no affiliate is credited
The visitor ID did not reach the checkout. Open the payment in your billing dashboard and check it carries the ID, and buy in the same browser you opened the referral link in.
Questions
Does Webflow have its own affiliate program?
Yes. Webflow's affiliate program, for content creators and educators, pays 50% of a new customer's subscription for up to 12 months. Agencies and freelancers use its Partner Program instead. That pays you for promoting Webflow. This guide is the other way round: running an affiliate program for an app you built. Looking for more software to promote? Browse SaaS affiliate programs on Anderro.
Does this work on the free Webflow plan?
No. Site-wide custom code needs a paid Site plan or a paid Workspace plan.
Does Anderro pay my affiliates?
No. Anderro tracks clicks, sign-ups and sales and works out what each affiliate earned. You pay affiliates yourself and mark the payout paid in Anderro.
Do my affiliates need an account on this platform?
No. They join your program on Anderro and get their link there. Their link is your site's address ending in ?ref= and their code.
Sources
Webflow's menus and plans change; these are the pages we checked.
- Webflow help: Custom code in site settings, checked December 4, 2026
- Webflow University: Page and site-level code, checked December 4, 2026
- Webflow help: Ecommerce checkout, checked December 4, 2026
- Stripe docs: Payment Links URL parameters, checked December 4, 2026
- Webflow: Affiliate program, checked December 4, 2026
Webflow and Stripe are trademarks of their owners. Anderro is not affiliated with or endorsed by them.