How do I find out which marketing channel brings in revenue, not just visits?

Record each visitor's first traffic source, then join completed payments to that visitor. DataFast does this: install its tracking script, pass the visitor ID into checkout, and connect Stripe, LemonSqueezy or the revenue API. The dashboard then lists revenue per source, campaign and landing page. Payments without a visitor ID stay unattributed instead of being guessed.

Steps

  1. Install the tracking script. Add one line to every page: <script defer src="https://datafast.app/js/script.js" data-website-id="YOUR_SITE_ID"></script>
  2. Pass the visitor ID into checkout. For Stripe Payment Links and LemonSqueezy checkout links add the attribute data-datafast-checkout to the link. For your own checkout, read window.datafast.visitorId in the browser and send it to your server.
  3. Connect the payment side. Connect Stripe (when enabled for your account), point a LemonSqueezy webhook at DataFast, or call the revenue API from any payment provider's webhook.
  4. Read revenue per source. Open the site's dashboard and look at revenue by source, campaign and landing page. Ask your AI assistant the same question once MCP is connected.

Limits

  • Visitors who block the script, or checkouts that lose the visitor ID, show up as unattributed revenue.
  • Attribution is first touch: the source that first brought the visitor, not every touchpoint on the way.
  • A site needs real traffic and real payments before the numbers mean anything.

FAQ

Does DataFast show revenue per campaign?

Yes, when payments carry the visitor ID. Campaigns come from UTM parameters on the visit that first brought the visitor.

What happens to payments with no visitor ID?

They are counted as revenue but stay unattributed; DataFast does not guess a source.

Is there a free plan?

Yes: 5,000 events a month and 1 website, with 7 days of data. The $5 a month Founder plan adds 3 years of data and revenue per source and campaign.

Related

Markdown version: /solutions/which-marketing-channel-brings-revenue.md