feat(analytics): 博客接入火山 DataFinder 埋点 - #7
Merged
lijiarui merged 1 commit intoAug 31, 2026
Merged
Conversation
AristraHatsuyu
force-pushed
the
feat/datafinder-analytics
branch
from
August 28, 2026 19:11
56f7be8 to
26d38f4
Compare
AristraHatsuyu
force-pushed
the
feat/datafinder-analytics
branch
from
August 30, 2026 16:34
26d38f4 to
6513a40
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
本 PR 为
lijiarui.github.io接入火山 DataFinder。事件口径沿用官网当前最核心的两类事件:page_view和button_click。本次不批量修改生成后的 HTML,改为通过现有公共脚本入口加载埋点,避免无意义 file changes。
改动一览
app_type=博客、zone=Z区、site_name=李佳芮的博客js/analytics.jssearch.js自动加载埋点js/search.jsSimpleCore.js自动加载埋点js/SimpleCore.js404.html_test_site.py.github/workflows/claude-code-review.yml必要依赖项
https://lf3-data.volccdn.com/obj/data-static/log-sdk/collect/5.0/collect-rangers-v5.2.11.js无新增 npm / Python / 后端依赖。
验证
node --check js/analytics.jsnode --check js/search.jsnode --check js/SimpleCore.jspython3 -m py_compile _test_site.pygit diff --check masterpython3 _test_site.pysearch.js加载埋点并上报page_view/button_click;旧主题 tag 页通过SimpleCore.js加载埋点;404 页面上报content_type=error的page_viewpull_request无 OIDC 环境变量,已在 workflow 中规避该场景