Live demo projectDataherolast 30 days

Live demo project: In 30 days, /home/monitor brought 79 visitors — 14% of traffic.

DataHero is lightweight analytics that ties each payment to the page, channel and campaign that brought it.

npm install @historymakers/datahero-analytics

Free plan: 1 project, 1,000 events a month.

Datahero
0 on the site now
Visitors44Last 30 days
Revenue$0Last 30 days
Payments0Last 30 days
Conversion0%Last 30 days

Visitors and revenue

Per day

44 visitors and $0 in revenue over the last 30 days.

Visits by channel

Ranked by visits

ChannelConv.Visits
  • Direct / none73%
    0%
    440
  • datahero.live20%
    0%
    123
  • google.com3%
    0%
    17
  • baseos.io3%
    0%
    17
  • google.com.hk1%
    0%
    4
Top channel Direct / none73%

Pageview to payment

Each step keeps only visitors from the previous one

  1. Visited: 44 visitors, 100% of the total.
  2. Viewed 2+ pages: 26 visitors, 59% of the total.
  3. Paid: 0 visitors, 0% of the total.
Overall conversion 0%Biggest drop Viewed 2+ pages → Paid

Visits by page

Ranked by visits

PageConv.Visits
  • /home/monitor14%
    0%
    79
  • /home/projects14%
    0%
    78
  • /home/projects/cmmz4jusz000404jr2sktjelj/analytics13%
    0%
    70
  • /11%
    0%
    63
  • /home7%
    0%
    36
Top page /home/monitor14%

Pageview → payment

Follow each payment back to the click that started it

Connect Stripe or send payments from your backend. DataHero keeps the visitor, session and UTMs attached, so the money lands on the page, channel and campaign that brought it.

Revenue on every breakdown
Sort channels, pages, campaigns and countries by revenue or revenue per visitor, not only by visits.
A funnel that ends in paid
Visited, viewed 2+ pages, triggered an event, paid. The hatched part is who you lost at each step.
Payments as they happen
New payments show up in the live feed with the amount and where the buyer came from.

One payment, traced

From the first click to the Stripe charge

Example data
  1. 14:02google / cpcutm_campaign=black_friday
  2. 14:02/black-fridayLanding page · São Paulo, BR
  3. 14:05/pricingSecond page
  4. 14:07checkout_startedplan: pro
  5. 14:08$189.00Stripe · Pro plan
Credited to Google · black_friday · /black-friday

Revenue by campaign

utm_campaign of each paying visitor

CampaignPaymentsRevenue
  • black_friday30%
    96
    $14,620
  • spring_launch19%
    58
    $9,380
  • newsletter_w1413%
    41
    $6,140
  • partner_ana6%
    19
    $3,050
Revenue with a campaign 68%

Inside a project

Five tabs, one question each

Every project has the same tabs. Each one answers one question, with the numbers to back it.

Visitors14.2K↑ 12%
Pageviews41.8K↑ 9.1%
Bounce rate38%↓ 4.2%

Top countries

Example data
  • Brazil43%
    6,120
  • Mexico17%
    2,480
  • Portugal11%
    1,630
  • United States10%
    1,410
  • Argentina6%
    920

Setup

Install in three steps

Most teams see their first visit a few minutes after the deploy.

Read the setup guide
  1. 1

    Create a project

    Add your site's domain. The project gets its own public key.

    .env
    NEXT_PUBLIC_DATAHERO_PUBLIC_KEY=pk_your_key
  2. 2

    Add the SDK

    Install the package and mount <Analytics /> once in your root layout. Pageviews, referrers and UTMs are captured from there.

    app/layout.tsx
    import { Analytics } from "@historymakers/datahero-analytics/next";
    
    <Analytics />
  3. 3

    Connect payments

    Connect Stripe in Integrations, or send payments from your backend. Mark the moments that matter with track().

    checkout.ts
    track("checkout_started", { plan: "pro" });

What the tracker stores

No surprises for you or your visitors. This is what the tracker keeps and what it leaves out.

Privacy policyTerms of service

No tracking cookies
A random visitor ID in localStorage and a session ID in sessionStorage. Nothing else.
IP addresses are not saved
Country, region and city come from the hosting edge at request time. The IP itself is not written to your data.
Device family, not a fingerprint
Device type, browser and operating system names. The full user-agent string is not stored.
Identity only when you call identify()
Visitors stay pseudonymous unless your app sends a user ID, email or traits (paid plans).

Browser storage can still count as storing information on the device under ePrivacy, GDPR or LGPD. Whether your site needs consent depends on your setup and jurisdiction, so check with your legal advisor.

This week, which page brought how much? Your own data fills in the blanks.

Find out which page brings your revenue.

Free plan: 1 project, 1,000 events a month, 30 days of history. No sales call needed.