Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analytics

Count your Kite site's visits with the service you already use.

CI Latest release Kite 0.1 or later Apache License 2.0

English · 简体中文

The Plugins screen of Kite's studio, and the Analytics settings in dark mode

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.

Baidu Tongji Google Analytics Umami Plausible

Features

  • 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 localhost is 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.

Install

  1. Download analytics-<version>.zip from the latest release.
  2. 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 analytics

It needs Kite 0.1 or later.

Settings

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

Releasing

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.

More official plugins

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

License

Apache License 2.0.

About

Count your Kite site's visits with Baidu Tongji, Google Analytics, Umami or Plausible.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages