Unagi/Docs

Documentation

Get Unagi running on your site in a few minutes.

Quick start

  1. Create an account and add your site (just its domain, such as example.com).
  2. Paste the script tag from Settings → Install on your site into your site's header, before </head>, on every page:
    <script async src="https://youok.uk/u.js" data-key="YOUR_SITE_KEY" data-consent="auto"></script>
  3. Connect your cookie banner so Unagi knows when a visitor has accepted: Unagi.consent(true).
  4. Wait for it to verify. Unagi checks your home page for the script and starts crawling once it finds it.

Findings appear once enough visitors have been tracked. Unagi tells you how many sessions it has seen and how far to trust each finding.

What gets recorded automatically

EventWhenNeeds consent
Page viewEvery page load and every in-app navigationNo (anonymous without consent)
Engaged time and scroll depthWhen a visitor leaves a pageYes
Add to cartA click on a button labelled like "Add to cart", "Add to bag" or "Buy now"Yes
CheckoutVisiting a /checkout page, or a "Checkout" / "Place order" clickYes
PurchaseVisiting a page like /thank-you or /order-confirmationYes
SearchSubmitting a site-search boxYes
ClicksButton and link labels (up to 100 characters), up to 30 per page. Can be turned offYes

Product name, SKU and price are read from your page's structured data (JSON-LD Product markup or Open Graph product tags).