# Install Okidoki

> Three ways to add Okidoki to a site, and which one to pick.

Okidoki is one small script, under 1.5 KB, that loads after your page. There are three ways to add it. They all end up the same: the script on every page of your site.

| Your site is made with | Do this | Guide |
| --- | --- | --- |
| Lovable, Bolt, v0, Replit, Cursor or another AI tool | Paste **the install sentence** into the chat | [AI builders](#ai-builders) |
| Framer, Webflow, Wix, Squarespace, Shopify or WordPress | Paste **the script tag** into the head code box | [Website builders](#website-builders) |
| Your own code | Add the **React component** or the **script tag** | [React and Next.js](https://docs.okidoki.sh/install/nextjs), [Any other site](https://docs.okidoki.sh/install/html) |

You find the sentence, the script tag and the React component on the setup page of your site in [Okidoki](https://okidoki.sh/app), with your own site key already in them.

## AI builders

The install sentence is written for the AI that built your site. It names your site, says exactly where the tag goes, and asks the builder to:

- leave out a cookie banner for Okidoki, since Okidoki sets no cookies,
- add `https://okidoki.sh` to `script-src` and `connect-src` if the site has a Content Security Policy, and keep everything else in it,
- add a line to `AGENTS.md`, so the tag stays when the site is rebuilt,
- change nothing else, and publish or deploy the change when it is done, or tell you exactly how.

It only adds the tag. Under the sentence is a switch, **Add a line about Okidoki to my privacy policy**. With it on, the same sentence also adds a line about Okidoki to your privacy policy, so there is still only one sentence to paste. See [A sentence for your privacy policy](https://docs.okidoki.sh/privacy-policy). Paste it, let the builder publish, and open your site once.

```text title="The install sentence"
Add Okidoki Analytics to my site mysite.com (only this project). Put this exact tag inside <head> on every page: <script defer data-site="ok_your_site_key" src="https://okidoki.sh/js/okidoki.js"></script> It sets no cookies, so do not add a cookie banner for it. If the site has a Content-Security-Policy, add https://okidoki.sh to its script-src and connect-src and keep everything else in it. So the tag stays when the site is rebuilt, add this line to AGENTS.md in the project root (create the file if it is missing): "Keep the Okidoki Analytics script tag in <head> on every page, and https://okidoki.sh allowed in any Content-Security-Policy." Do not change anything else. When you are done, publish or deploy the change. If you cannot, tell me exactly how I publish it.
```

## Website builders

Builders without an AI chat have a box for code in the head of every page. Paste the script tag there:

```html title="The script tag"
<script defer data-site="ok_your_site_key" src="https://okidoki.sh/js/okidoki.js"></script>
```

## Pick your builder

- [Lovable](https://docs.okidoki.sh/install/lovable) Paste one sentence into the chat.
- [Bolt](https://docs.okidoki.sh/install/bolt) Paste one sentence into the chat.
- [v0](https://docs.okidoki.sh/install/v0) Paste one sentence into the chat.
- [Replit](https://docs.okidoki.sh/install/replit) Paste one sentence into the chat.
- [Cursor](https://docs.okidoki.sh/install/cursor) Paste one sentence into the chat.
- [Claude Code](https://docs.okidoki.sh/install/claude-code) Paste one sentence into the chat.
- [Windsurf](https://docs.okidoki.sh/install/windsurf) Paste one sentence into the chat.
- [Codex](https://docs.okidoki.sh/install/codex) Paste one sentence into the chat.
- [ChatGPT](https://docs.okidoki.sh/install/chatgpt) Paste one sentence into the chat.
- [GitHub Copilot](https://docs.okidoki.sh/install/github-copilot) Paste one sentence into the chat.
- [Gemini CLI](https://docs.okidoki.sh/install/gemini-cli) Paste one sentence into the chat.
- [Base44](https://docs.okidoki.sh/install/base44) Paste one sentence into the chat.
- [Framer](https://docs.okidoki.sh/install/framer) Paste one line into the head.
- [Webflow](https://docs.okidoki.sh/install/webflow) Paste one line into the head.
- [Wix](https://docs.okidoki.sh/install/wix) Paste one line into the head.
- [Squarespace](https://docs.okidoki.sh/install/squarespace) Paste one line into the head.
- [WordPress](https://docs.okidoki.sh/install/wordpress) Paste one line into the head.
- [Ghost](https://docs.okidoki.sh/install/ghost) Paste one line into the head.
- [Carrd](https://docs.okidoki.sh/install/carrd) Paste one line into the head.
- [Hostinger](https://docs.okidoki.sh/install/hostinger) Paste one line into the head.
- [Webnode](https://docs.okidoki.sh/install/webnode) Paste one line into the head.
- [Weebly](https://docs.okidoki.sh/install/weebly) Paste one line into the head.
- [Jimdo](https://docs.okidoki.sh/install/jimdo) Paste one line into the head.
- [Bubble](https://docs.okidoki.sh/install/bubble) Paste one line into the head.
- [Shopify](https://docs.okidoki.sh/install/shopify) Paste one line into the head.
- [WooCommerce](https://docs.okidoki.sh/install/woocommerce) Paste one line into the head.
- [Wix Stores](https://docs.okidoki.sh/install/wix-stores) Paste one line into the head.
- [BigCommerce](https://docs.okidoki.sh/install/bigcommerce) Paste one line into the head.
- [Quickbutik](https://docs.okidoki.sh/install/quickbutik) Paste one line into the head.
- [Abicart](https://docs.okidoki.sh/install/abicart) Paste one line into the head.
- [Astro](https://docs.okidoki.sh/install/astro) Paste one line into the head.
- [Hugo](https://docs.okidoki.sh/install/hugo) Paste one line into the head.
- [Google Tag Manager](https://docs.okidoki.sh/install/google-tag-manager) Paste one line into the head.
- [Segment](https://docs.okidoki.sh/install/segment) Paste one line into the head.
- [React and Next.js](https://docs.okidoki.sh/install/nextjs) The component or the script tag.
- [Any other site](https://docs.okidoki.sh/install/html) One script tag in the head.


## What the site key is

`data-site` holds your **site key**, like `ok_7f3kq2m9xa`. It tells Okidoki which site a visit belongs to. It is not a secret: anyone can see it in your page, and it can only be used to send visits, not to read anything.

Okidoki only counts visits to the address you added and its subdomains. If you added `mysite.com`, visits to `www.mysite.com` and `shop.mysite.com` count too, but a copy of your site on another address does not.

## Someone else looks after your site?

Under **Does someone else look after your website?** on the setup page, press **Send the steps** and type their email address. Okidoki mails them the install sentence, the steps for your builder and the guide, in your language, from Okidoki. Their answer comes to your own address, so save your account first. To stop misuse, the steps can go to the same address a few times a day at most. You can also copy the steps, or write to us if you are stuck.

## After you install

Open your site once. The setup page turns green when the first visit arrives. If it does not, see [Check that it works](https://docs.okidoki.sh/install/check).

Once visits come in, the install box under **Settings → Site** folds into one line that says Okidoki is on the site and when the last visit came. A link opens the install again, for example when you move to a new builder.

