# Server-Side Conversion Tracking: Architecture and Common Mistakes

Design server-side conversion events that reduce browser loss without creating duplicate sales, weak authentication, or privacy shortcuts.

By Revfaro · 2026-11-06

## Quick answer

Server-side conversion tracking sends outcome events from an authorized backend rather than depending entirely on browser JavaScript. It can improve reliability for account creation or purchases, but requires authentication, deduplication, and privacy controls.

## Key takeaways

- Use the endpoint's actual fields and documented delivery guarantees.
- An outbox does not alone guarantee exactly-once receiver processing.
- Use payment interfaces for revenue and goal interfaces for actions.

## Pick events the server knows conclusively

Good candidates include account_created after database commit, subscription_payment_verified after provider confirmation, and onboarding_setup_completed after a validated system action. A pageview or button click may still belong on the client, where the interaction actually occurs.

Separate an event occurrence timestamp from ingestion time to handle delayed queues correctly.

## Design a safe event contract

Use a registered site or tenant identity, explicit event type, allowed properties, timestamp, and unique idempotency key. Authorize requests server-side and set payload size, rate, and retention limits. Do not trust an arbitrary workspace ID from the request as proof of access.

Keep personal data minimal. Server-side collection is not a general exemption from consent or privacy requirements.

## Reconcile two event sources

If the browser tracks signup_succeeded and the server records account_created, either keep both intentionally distinct or define which is authoritative. Counting both as one conversion type without deduplication inflates funnels.

Test network retry, queue replay, database commit after timeout, and delayed payment notification.

## Measure completeness, not just volume

Compare server event totals with underlying product records. Report rejection and retry rates, last-success time, and queue lag. An endpoint returning HTTP success is not always proof that an event reached durable storage.

## Match the architecture to the endpoint you actually use

Revfaro's [server Goals API](/docs/goals/) accepts a known site's `visitor_id`, a goal `name` and optional `props`, authenticated with the site's server API key on an eligible plan. It associates the goal with the visitor's latest recorded visit. The documented request does not accept an arbitrary occurrence timestamp or promise idempotency through a custom header. Do not invent those fields from a generic event architecture diagram.

Track a product operation's success in your own durable system before emitting its analytics outcome. Decide how the application handles an ambiguous timeout, where the receiver may already have stored the goal. Blind retries can create repeated goal occurrences; a local outbox alone does not prove exactly-once delivery at a receiver without a matching deduplication contract.

Use the [Payments API](/docs/payments-api/) or supported provider webhooks for revenue, not a server goal with an amount property. Keep credentials server-side, inspect rejection responses, and distinguish accepted browser behavior from authoritative business state.

## Related reading

- [Browser Events vs Webhooks: Which Should Power Revenue Analytics?](/blog/browser-events-vs-webhooks-which-should-power-revenue-analytics/)
- [Cross-Domain Tracking for SaaS Checkout and Authentication](/blog/cross-domain-tracking-for-saas-checkout-and-authentication/)
- [Stripe Revenue Attribution: A Safe Website-to-Payment Workflow](/blog/stripe-revenue-attribution-a-safe-website-to-payment-workflow/)


## Frequently asked questions

### Does server-side tracking bypass ad blockers?

It avoids some browser failure modes but does not solve identity, attribution, or legal constraints.

### Should every analytics event be sent from the server?

No. Track each action at the layer that can observe it reliably and keep clear event ownership.
