Docs
Open Okidoki

Install on Google Tag Manager

Already use Google Tag Manager? Add Okidoki as a tag and publish, no change to the site.

Google Tag Manager does not write code for you, but it has a box for code that goes in the head of every page. Paste one line there and you are done.

#Before you start

Sign in to Okidoki and add your site. On the setup page, choose With a site builder and copy the line. It looks like this, with your own site key:

Tag Manager removes data-site from a plain script tag, so it gets a few lines of script that add the same tag instead. The install guide on okidoki.sh and the setup page give you this code with your site key:

The code for Tag Manager
<script>
(function () {
  var s = document.createElement('script');
  s.defer = true;
  s.src = 'https://okidoki.sh/js/okidoki.js';
  s.setAttribute('data-site', 'ok_your_site_key');
  document.head.appendChild(s);
})();
</script>

#Install on Google Tag Manager

  1. In Google Tag Manager, open your container and go to Tags → New.
  2. Press Tag Configuration, choose Custom HTML and paste the script tag.
  3. Press Triggering and choose All Pages. Name the tag Okidoki and press Save.
  4. Press Submit, then Publish. Open your site once in a normal browser window.

The setup page in Okidoki turns green as soon as the first visit arrives. See Check that it works.

#Good to know on Google Tag Manager

  • Tag Manager only runs on pages that load it, so it has to be on every page of your site already.
  • If your consent banner controls Tag Manager, Okidoki waits for consent too. Okidoki sets no cookies, so you can let it run without.

Okidoki sets no cookies and collects no personal data, so it needs no cookie banner. If your builder offers to add one for analytics, you can usually say no. Read more in Privacy and GDPR.