Okidoki + Astro

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

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

Why Astro and Okidoki fit together

Astro ships fast sites, and Okidoki keeps them fast: under 1.5 KB, and every page counted, also with view transitions.

Everything you get when you use them together.

  • One line, every page

    Paste one line into Astro 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 Astro site needs no cookie banner for it.

  • Your site stays fast

    The script is under 1.5 KB and loads after your page, so Astro 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 Astro, 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 Astro

It goes in the head of every page. Astro 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 the layout every page uses, usually src/layouts/Layout.astro.
  4. Paste the script tag inside <head>.
  5. Build and deploy as you normally do.
  6. Open your published site once in a normal browser window.
What you paste into Astro
<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 Astro

  • Astro leaves the tag exactly as it is, because it has more attributes than src. You can add is:inline to make that clear.
  • With view transitions on, Okidoki still counts every page change.
  • Okidoki sets no cookies and stores nothing in the visitor’s browser, so it needs no cookie banner. If Astro offers to add one for analytics, you can usually say no.

No Astro site yet?

In Astro the line goes in the layout every page uses.

Questions

Does Astro change the tag?

No. Astro leaves a script tag alone when it has more attributes than src, and this one does. Add is:inline if you want to be sure.

Does it work with view transitions?

Yes. Okidoki notices each page change by itself, so every page is counted.

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 →