Files
mintlify[bot] fbdd913d8e Add translation audit tracker (#5055)
* Add translation tracker for stale translations audit

Generated-By: mintlify-agent

* translations: add missing pages and update content for es, fr, zh

Phase 1: Add translations for 4 new API analytics pages (feedback-by-page,
searches, views, visitors) in es, fr, and zh.

Phase 2: Update 3 pages with content changes:
- agent/workflows: add "Disable a workflow" subsection
- ai/skillmd: add 24-hour generation note
- editor/publish: add AI PR title tip, reformat publishing workflows,
  promote "Publish your changes" heading from h3 to h2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* update descriptions

* translations

* translations

* translations

* Delete TRANSLATION_TRACKER.md

* translations

* a

* a

* translations

* translations

* translations

* translations

* translations

* translations

* translations

* translations

* Update use-cases.mdx

* translations

* translations

* Update ai-native.mdx

* Update accordions.mdx

* Update accordions.mdx

* Update accordions.mdx

* translations

* translations

* Update fonts.mdx

* translations

* translations: update SEO descriptions for es, fr, zh (150 pages)

Update the description: frontmatter field across 150 pages × 3 languages
to match the current English descriptions updated on 2026-03-31.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 10:52:59 -07:00

56 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Google Analytics 4"
description: "将 Google Analytics 4 集成到你的 Mintlify 文档,通过 GA4 ID 跟踪访客行为、页面浏览量和内容参与情况。"
keywords: ["GA4 integration", "measurement ID", "web stream", "Universal Analytics"]
---
你需要创建一个新的<Tooltip tip="Google Analytics 4">GA4</Tooltip>资源以供 Mintlify 使用。收集的数据归入与你其他 Google Analytics 数据相同的项目。
如果你仍在使用旧版 Google Analytics(Universal Analytics),依然可以创建<Tooltip tip="Google Analytics 4">GA4</Tooltip>资源。<Tooltip tip="Google Analytics 4">GA4</Tooltip>数据与 UA 数据略有差异,但都会汇集到同一个项目中。
<div id="connect-ga4-to-mintlify">
## 将 GA4 接入 Mintlify
</div>
<div id="create-a-web-stream">
### 创建 Web 流
</div>
你需要创建一个 Web 流以获取 Measurement ID,并将其填入 Mintlify。
点击 Google Analytics 界面左下角的齿轮图标,然后点击 Data Streams。
<Frame>![Google Analytics 控制台中 Data Streams 页面截图。](/images/ga4-web-streams.png)</Frame>
创建一个 Web 流,并将你的 Mintlify 文档站点的 URL 作为流的 URL。
你的 Measurement ID 类似于 `G-XXXXXXX`,创建 Web 流后会立即出现在 Stream Details 下方。
<div id="put-measurement-id-in-docsjson">
### 在 docs.json 中添加 Measurement ID
</div>
将你的 Measurement ID 添加到 `docs.json` 文件中,如下所示:
```json docs.json
"integrations": {
"ga4": {
"measurementId": "G-XXXXXXX"
}
}
```
<div id="wait">
### 请稍候
</div>
Google Analytics 通常需要两到三天才会显示你的数据。
你可以使用 [Google Analytics Debugger](https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna?hl=en) 检查你的 Analytics 配置。每当 GA4 发出请求时,该扩展都会在你的浏览器控制台中记录日志。
<Note>
预览链接的 Analytics 已禁用。
</Note>