Count your Kite site's visits with the service you already use.
English · 简体中文
Analytics is an official plugin for Kite. Choose a service in the studio, paste in the ID it gave you, and every page of the site is counted.
- Four services, one list. Baidu Tongji, Google Analytics, Umami and Plausible, the cloud ones or Umami and Plausible on your own server.
- Your previews stay out of the numbers. A preview at
localhostis not counted unless you ask for it. - Says what it loads. Before the plugin is turned on, the studio names the sites your visitors' browsers will load from.
- Nothing added to a build. It only adds a snippet to your pages, so a build takes as long as it did.
- Download
analytics-<version>.zipfrom the latest release. - In Kite's studio, open Plugins, drop the zip on Upload plugin, and switch it on.
Or from the command line, inside your site:
kite plugin add analytics-0.1.0.zip
kite plugin enable analyticsIt needs Kite 0.1 or later.
Under Plugins → Analytics → Settings, the form shows only what the chosen service needs.
| Setting | Service | What it is |
|---|---|---|
| Service | Baidu Tongji, Google Analytics, Umami or Plausible | |
| Site code | Baidu Tongji | The code after hm.js? in the snippet Baidu Tongji gives you |
| Measurement ID | Google Analytics | G-XXXXXXXXXX, the ID of the site's web stream |
| Website ID | Umami | Shown in the website's tracking code |
| Script address | Umami | Where your own Umami serves script.js; empty for Umami Cloud |
| Domain | Plausible | The domain the site is added under; empty for the one it is visited at |
| Script address | Plausible | Where your own Plausible serves its script; empty for plausible.io |
| Count previews | Also counts visits to a preview at localhost; off by default |
Set version in plugin.yaml, commit, and push a tag of the same version,
such as v0.1.0. The release workflow packs dist/analytics-<version>.zip
and attaches it to a GitHub release. make zip packs the same file locally,
and kite plugin verify . checks the plugin the way a site will.
| Plugin | What it adds |
|---|---|
| Comments | A comment thread under every post, with Giscus, Waline or Twikoo |
| Math and Diagrams | TeX math with KaTeX, and mermaid code blocks drawn as diagrams |
| Search | Search in the reader's browser, with nothing to run |
