Okidoki + Hugo
See how many people visit, where they come from and what they read. Paste one line into Hugo and you are done. No cookie banner needed for Okidoki.
- About 2 minutes
- No cookies
- Free for 3 sites
Why Hugo and Okidoki fit together
Hugo builds static sites, and Okidoki needs nothing more than one line in your head template to count them.
Everything you get when you use them together.
One line, every page
Paste one line into Hugo 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 Hugo site needs no cookie banner for it.
Your site stays fast
The script is under 1.5 KB and loads after your page, so Hugo 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 Hugo, and this page tells you when the first visitor arrives.
Type your site’s address
No account and no password yet. Okidoki looks at your website and shows you the easiest way.
Paste one line into Hugo
It goes in the head of every page. Hugo keeps it there for you.
<script defer data-site="ok_…"></script>See your first visitor
This page updates live. If something is off, it tells you what to paste to fix it.
Step by step
The same thing, written out. Every step is a click or a paste.
- Type your site’s address on this page. That starts your free Okidoki account, and you keep it by adding your email.
- Copy the line you get. It has your own site key.
- Find the template with
<head>, usuallylayouts/partials/head.htmlorlayouts/_default/baseof.html. - If it lives in your theme, copy the file to the same place in your own
layoutsfolder first, so a theme update does not remove it. - Paste the script tag inside
<head>, then build and deploy. - Open your published site once in a normal browser window.
<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 Hugo
- Many themes have an empty partial for your own head code, like
extend_head.htmlorcustom-head.html. Check your theme’s README. That is the easiest place. - Okidoki sets no cookies and stores nothing in the visitor’s browser, so it needs no cookie banner. If Hugo offers to add one for analytics, you can usually say no.
No Hugo site yet?
In Hugo the line goes in the template that makes the head of every page.
Questions
Where is the head in my theme?
Usually in layouts/partials/head.html or layouts/_default/baseof.html. Many themes also have an empty partial for your own head code. Check the theme’s README.
Will a theme update remove it?
Not if you put it in your own layouts folder. Hugo uses your file instead of the theme’s.
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.
Guides on this
How to track visitors on your website
Add a small analytics tool to the site and every visit is counted from that minute. Here is what to pick, how to install it and what you will see.
Read →Do you need a cookie banner for analytics?
Only if your analytics stores something on the visitor’s device or collects personal data. Google Analytics does both. Cookieless analytics does neither.
Read →
More integrations
Okidoki works the same way with every tool. Pick yours.
Something else? Any site works with one script tag.