# Cross-Domain Tracking for SaaS Checkout and Authentication

Preserve acquisition context when SaaS users move between marketing pages, application domains, OAuth providers, and hosted checkout.

By Revfaro · 2026-11-06

## Quick answer

Cross-domain tracking connects eligible user actions across a marketing site, app, authentication provider, and checkout. It works only when identifiers and data flows are intentionally designed; automatic continuity should never be assumed.

## Key takeaways

- Map cookie and identifier ownership at every domain boundary.
- Analytics identity must never authorize application access.
- Use supported payment handoffs and keep unknown cross-device matches visible.

## Map the real domain journey

Draw the sequence from marketing landing page to signup, OAuth redirect, app onboarding, hosted checkout, and payment confirmation. Identify where source and campaign data is stored and which transitions lose session state.

Different registrable domains do not generally share the same first-party cookie scope. Browser privacy protections and consent choices also affect continuity.

## Choose a safe correlation approach

Use a short-lived, non-sensitive state or authorized account relationship when passing context between systems. Avoid exposing raw visitor IDs, email addresses, API credentials, or open redirect targets in public URLs.

When possible, associate a verified payment with a server-side customer or checkout record rather than relying on a browser's final redirect.

## Test four journeys

Test a direct signup, a tagged acquisition with OAuth, a trial that checks out days later, and a purchase from a second device. Make expected unknown cases explicit. Validate that internal transitions do not overwrite the original external source.

Check that a referral from your own app domain is not incorrectly treated as a fresh acquisition channel.

## Keep reports honest

Use coherent attribution windows, avoid identity merging across unrelated tenants, and measure the share of purchases with a reliable journey link. Accept reduced coverage where privacy or technical limits prevent a match.

## Draw the identifier boundary before writing a linker

For an illustrative application, draw `www.example.com → app.example.com → hosted checkout → app.example.com/thanks`. Then separately draw a move to `another-example.net`. The first pair of subdomains may share an appropriately scoped first-party cookie; the unrelated domain cannot simply read that cookie. [MDN's cookie guide](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies) explains domain and browser scope.

Record which system owns each identifier. An authentication session proves application access; a Revfaro visitor ID supplies analytics context; a provider checkout ID identifies a payment flow. They are not interchangeable authorization credentials. Never grant product access because an analytics identifier appeared in a request.

Use the exact supported metadata and return-page mechanism in the [payment provider guide](/docs/revenue-attribution/). Keep OAuth state handling in your authentication implementation. Revfaro's [SDK](/docs/javascript-sdk/) does not automatically stitch unrelated domains or every cross-device journey. Test the boundaries and leave unsupported matches unknown rather than building an unreviewed public identifier bridge.

## Related reading

- [Server-Side Conversion Tracking: Architecture and Common Mistakes](/blog/server-side-conversion-tracking-architecture-and-common-mistakes/)
- [SPA Pageview Tracking in React, Next.js, and Vue](/blog/spa-pageview-tracking-in-react-next-js-and-vue/)
- [Stripe Revenue Attribution: A Safe Website-to-Payment Workflow](/blog/stripe-revenue-attribution-a-safe-website-to-payment-workflow/)


## Frequently asked questions

### Can cookies follow users across unrelated domains automatically?

No. Cookie scope and browser policies restrict this; continuity needs a legitimate implementation.

### Does a hosted checkout break all attribution?

Not necessarily. An authorized server-side checkout/customer link can preserve useful context.
