@riebeckite/plugin-analytics 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/README_ja.md +4 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,9 +40,9 @@ can expose a collector backed by its own private runtime configuration.
|
|
|
40
40
|
|
|
41
41
|
## Browser behavior
|
|
42
42
|
|
|
43
|
-
For every published content entry with Core's source-authored stable `id
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
For every published content entry with Core's source-authored stable `id`, the
|
|
44
|
+
plugin places a small content-ID marker in rendered HTML and registers
|
|
45
|
+
`initAnalytics` with the generic public-config client mechanism.
|
|
46
46
|
|
|
47
47
|
In a browser, the initializer sends exactly one event per document:
|
|
48
48
|
|
|
@@ -61,8 +61,8 @@ stable ID is not tracked. The initializer is a no-op during builds/SSR and is
|
|
|
61
61
|
idempotent in a document. Riebeckite's current static document navigation needs
|
|
62
62
|
no SPA route hooks; SPA navigation is not tracked automatically.
|
|
63
63
|
|
|
64
|
-
Content IDs are an authoring responsibility. Duplicate
|
|
65
|
-
|
|
64
|
+
Content IDs are an authoring responsibility. Duplicate `id` declarations across
|
|
65
|
+
published notes are reported by
|
|
66
66
|
[`@riebeckite/plugin-diagnostics`](../diagnostics/README.md)
|
|
67
67
|
(`duplicate-content-id` / `invalid-content-id`) and validated by the plugin's own
|
|
68
68
|
`validateAnalyticsOptions` at `check` time.
|
package/README_ja.md
CHANGED
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
|
|
31
31
|
## ブラウザでの動作
|
|
32
32
|
|
|
33
|
-
Core の安定コンテンツ ID(frontmatter の `id
|
|
33
|
+
Core の安定コンテンツ ID(frontmatter の `id`)がある公開コンテンツにだけ識別子マーカーを出力します。汎用 `publicConfig` 経由で登録された `initAnalytics` は、ブラウザでドキュメントごとに一度だけ次のようなイベントを送ります。
|
|
34
34
|
|
|
35
35
|
```json
|
|
36
36
|
{
|
|
@@ -44,7 +44,7 @@ Core の安定コンテンツ ID(frontmatter の `id`、互換用の `uid`)
|
|
|
44
44
|
|
|
45
45
|
`path` と `lang` は補助情報であり、ID ではありません。安定 ID のないコンテンツは誤って計測しません。ビルド時・SSR 時は何もせず、同じドキュメント内での初期化も冪等です。現行リポジトリは静的なドキュメント遷移のため SPA フックは追加しておらず、SPA 遷移は自動計測しません。
|
|
46
46
|
|
|
47
|
-
コンテンツ ID は執筆側の責務です。公開ノート間での `id
|
|
47
|
+
コンテンツ ID は執筆側の責務です。公開ノート間での `id` の重複は [`@riebeckite/plugin-diagnostics`](../diagnostics/README_ja.md) が報告し(`duplicate-content-id` / `invalid-content-id`)、プラグイン自身の `validateAnalyticsOptions` が `check` 時に検証します。
|
|
48
48
|
|
|
49
49
|
## 診断
|
|
50
50
|
|
|
@@ -58,7 +58,6 @@ Core の安定コンテンツ ID(frontmatter の `id`、互換用の `uid`)
|
|
|
58
58
|
- イベント、クエリ/結果、プロバイダ/機能、公開設定の型
|
|
59
59
|
- `UnsupportedAnalyticsQueryError` と機能確認ヘルパー
|
|
60
60
|
|
|
61
|
-
##
|
|
62
|
-
|
|
63
|
-
- [?????????](../../../docs/ja/docs/reference/plugin-api.md)
|
|
61
|
+
## 関連リンク
|
|
64
62
|
|
|
63
|
+
- [プラグイン API](../../../docs/ja/docs/reference/plugin-api.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-analytics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@riebeckite/core": "0.0.
|
|
23
|
+
"@riebeckite/core": "0.0.17"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"tsx": "^4.22.4"
|