Docs
Open Okidoki

Any other site

One script tag in the head of every page. Works on any site.

On any site you control, Okidoki is one line. Put it inside <head> on every page:

HTML
<script defer data-site="ok_your_site_key" src="https://okidoki.sh/js/okidoki.js"></script>

Copy the line from the setup page of your site in Okidoki. It already has your site key in data-site.

#Where it goes

  • Every page. Pages without the tag are not counted. If your site uses one shared header or template, put it there.
  • In the head. The defer attribute makes the browser load it after your page, so it never slows the page down.
  • Once. Two copies of the tag count each page twice.

#Static site generators and templates

ToolWhere to put the tag
AstroYour base layout, inside <head>
Hugolayouts/partials/head.html, or the head of baseof.html
Eleventy, JekyllThe base layout used by every page
Plain HTMLThe <head> of every .html file
Google Tag ManagerA Custom HTML tag that fires on all pages

#What happens next

Open your site once. The setup page in Okidoki turns green when the first visit arrives. See Check that it works.

The script counts page views, how long each page is on screen, outbound links, downloads, email and phone links and form submissions, all by itself. See the Tracker reference for every attribute and what is sent.