Okidoki + Next.js

See how many people visit, where they come from and what they read. Paste one line into Next.js and you are done. No cookie banner needed for Okidoki.

  • About 2 minutes
  • No cookies
  • Free for 3 sites

Why Next.js and Okidoki fit together

Next.js changes pages without reloading, and Okidoki counts each change by itself. One line in the root layout, or one component.

Everything you get when you use them together.

  • One line, every page

    Paste one line into Next.js once. It covers every page, even the ones you add later.

  • No cookie banner needed

    Okidoki sets no cookies and stores nothing in the visitor’s browser, so your Next.js site needs no cookie banner for it.

  • Your site stays fast

    The script is under 1.5 KB and loads after your page, so Next.js pages load just as fast as before.

  • See which campaigns work

    Tag the links in your posts, ads and newsletters with the free link builder, and see which ones bring visitors, goals and sales.

  • Goals and funnels

    Count sign-ups, purchases and button clicks, and see where people drop off. Describe a funnel in your own words and Okidoki builds it.

  • Questions in your own words

    Ask “Where do my visitors come from?” or “Which email worked best?” and get an answer in a sentence, not a chart to decode.

  • Your AI agent reads the numbers

    Connect ChatGPT, Claude or another agent, and ask how things are going. It reads your numbers, never your visitors.

  • Count ad blocker users

    Serve Okidoki from your own address with one DNS record, and visitors with ad blockers are counted too.

What you see in Okidoki

A few clear numbers and plain sentences, on one page.

  • Visitors, day by day

    How many people came, and whether it is more or fewer than before.

  • Where they come from

    Google, ChatGPT, Instagram, newsletters and the sites that link to you.

  • What they read

    Your most-read pages, with their real titles instead of addresses.

  • Who is there right now

    Visitors on your site this minute, and the page they are on.

  • Goals reached

    Sign-ups, purchases and clicks, and where they came from.

Install it right here

Do the first step on this page. Then paste what you get into Next.js, and this page tells you when the first visitor arrives.

Step 1

Type your site’s address

No account and no password yet. Okidoki looks at your website and shows you the easiest way.

Step 2

Paste one line into Next.js

It goes in the head of every page. Next.js keeps it there for you.

<script defer data-site="ok_…"></script>
Step 3

See your first visitor

This page updates live. If something is off, it tells you what to paste to fix it.

First visitor just now

Step by step

The same thing, written out. Every step is a click or a paste.

  1. Type your site’s address on this page. That starts your free Okidoki account, and you keep it by adding your email.
  2. Copy the line you get. It has your own site key.
  3. Open app/layout.tsx (or pages/_document.tsx if you use the Pages Router).
  4. Paste the script tag inside <head>. Add a <head> there if there is none.
  5. Deploy as you normally do.
  6. Open your published site once in a normal browser window.
What you paste into Next.js
<script defer data-site="ok_your_site_key" src="https://okidoki.sh/js/okidoki.js"></script>

This is only an example. The yellow part is replaced by your own site key. Type your site’s address in step 1 at the top of this page, and yours shows up here, ready to copy.

Get yoursAlready have an account? Sign in and yours shows up here.

Good to know on Next.js

  • Okidoki counts every page change on its own, including client-side navigation with <Link>.
  • Rather use a component? Run npm install okidoki-analytics and put <Okidoki site="…" /> in the root layout. See React and Next.js.
  • Okidoki sets no cookies and stores nothing in the visitor’s browser, so it needs no cookie banner. If Next.js offers to add one for analytics, you can usually say no.

No Next.js site yet?

In Next.js the line goes in the root layout, so it is on every page.

Questions

Does it count client-side navigation?

Yes. Okidoki notices each page change by itself, also when Next.js changes pages without reloading.

Can I use a React component instead?

Yes. Install okidoki-analytics and put the Okidoki component in the root layout. It counts exactly like the script tag.

Will it slow my site down?

No. The script is under 1.5 KB and loads after your page.

Do ad blockers stop it?

Some block analytics by its address. Load Okidoki from your own address instead, with one DNS record or a small proxy, and they let it through. It still collects nothing about the person. You find it under Settings, Site settings.

Is it free?

Yes, for 3 sites. Plus is for makers with more sites and more traffic. You never need a card to start.

Ask your website. Get answers right away.

Free for 3 sites. No credit card, no cookies, no code to touch.

Or look around a live demo first, no account needed →