Know what must work before you launch
Carry a browser referral through your Nuxt server route and Stripe Checkout
- Best fit
- Teams evaluating AffiliateBase for a Nuxt affiliate workflow.
- Checkout handoff
- The checkout path must receive the generated AffiliateBase referral ID.
- Proof required
- Complete one referred checkout and confirm the attributed sale and commission.
Follow the attribution evidence
Illustrative scenario · fictional values
-
Referred visit
?via=partner
AffiliateBase captures the visit and generates a referral record.
-
Checkout handoff
referral ID
The checkout must carry the generated identifier into Stripe.
-
Paid event
$99 paid
A supported Stripe event confirms the attributed payment.
-
Commission
$19.80 due
An eligible attributed sale creates the commission record.
-
Payout prep
Payout ready
Review the commission and prepare the next step with your payout provider.
This guide is for merchants running a program in their own Nuxt application. Nuxt provides the page shell; AffiliateBase attribution still requires a supported Stripe checkout and a deliberate browser-to-server handoff.
Load the tracking script through Nuxt head configuration, then submit the generated referral ID with the request that creates Checkout. Do not read window state in server code or substitute the public ?via token.
Nuxt documents external scripts through app.head and useHead. Continue with the Stripe integration guide and checkout verification.
Build the handoff around your actual Nuxt checkout route:
Identify the Client and Server Boundary
Install the Browser Script
<script async src="https://app.affiliatebase.io/track.js" data-account-id="YOUR_ACCOUNT_ID"></script>
Pass the Generated Referral ID
Test the Deployed App
Verify Business Records
What This Nuxt Setup Covers
Nuxt Head Installation
Place the tracking script in the app shell without inventing an AffiliateBase npm package.
Nitro Server Boundary
Keep Stripe credentials server-side while explicitly accepting the browser referral ID.
Checkout Verification
Test the completed payment outcome instead of treating script load as proof.
Nuxt Affiliate Tracking Questions
Can a Nuxt server route read browser referral state?
Will useHead alone attribute a Stripe sale?
What should I verify?
Related Platform Guides
Add an Affiliate Program to Next.js
Install affiliate tracking in Next.js, hand the generated referral ID to a server-created Stripe Checkout Session, and verify attribution.
Create an Affiliate Program with WordPress
Install AffiliateBase on WordPress, choose a supported Stripe checkout, and verify referral attribution without assuming WooCommerce or plugin compatibility.
Create an Affiliate Program with Webflow
Add affiliate tracking to a published Webflow site, pair it with a supported Stripe checkout, and verify referral attribution before launch.
Add Affiliate Tracking to a React Checkout
Capture affiliate referrals in a React app, send the generated referral ID to your checkout backend, and verify Stripe attribution.
Add Affiliate Tracking to a Vue Checkout
Capture affiliate referrals in Vue, send the generated referral ID to your checkout backend, and verify the Stripe sale and commission.
Test Your Nuxt Affiliate Checkout
Use one fresh test referral to prove the full Nuxt-to-Stripe path.