From 028654b3498c3375773555f43da297ed8e02efb0 Mon Sep 17 00:00:00 2001 From: Akayashuu Date: Fri, 19 Jun 2026 21:29:41 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20pr=C3=A9cise=20l'auto-h=C3=A9bergement?= =?UTF-8?q?=20du=20module=20ES=20(sdk)=20et=20le=20no-op=20de=20enabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e70d88b..e4a5e80 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ The `Mode` enum controls how the bundle is delivered: - `Mode::Inline` (default) — embeds the bundle inline in a `` that boots the full SDK. The only mode able to express `scrubUrl` (see below). The module is loaded from `{scriptOrigin}/takt/takt.esm.js` when `scriptOrigin` is set, otherwise from jsDelivr. +- `Mode::Sdk` — emits an ES-module `` that boots the full SDK. The only mode able to express `scrubUrl` (see below). The module is loaded from `{scriptOrigin}/takt/takt.esm.js` when `scriptOrigin` is set, otherwise from jsDelivr. Self-hosting it is your responsibility — the vendored bundle only ships `takt.auto.js` (for `Mode::Asset`), not the ES module. ```php use Vskstudio\Takt\Mode; @@ -59,7 +59,7 @@ Each is `null` by default ("unset" — the tracker's own default applies); only - `trackQuery: true` — keep the raw query string + hash in tracked URLs (`data-track-query`); off by default URLs are stripped. - `queryParams: ['utm_source', 'utm_medium']` — allowlist of params to keep when `trackQuery` is off (`data-query-params`). - `respectDnt: false` — stop honoring the browser Do-Not-Track header (`data-respect-dnt`). -- `enabled: false` — kill-switch; renders a no-op snippet (`data-enabled`). +- `enabled: false` — kill-switch; the snippet still renders but the tracker boots disabled (`data-enabled`). - `scrubUrl: '(u) => u.split("#")[0]'` — a **raw JS function** to rewrite every URL before it is sent. ```php