feat(analytics): Add 51LA Analytics Component Support#249
Merged
CuteLeaf merged 2 commits intoCuteLeaf:masterfrom Mar 15, 2026
Merged
feat(analytics): Add 51LA Analytics Component Support#249CuteLeaf merged 2 commits intoCuteLeaf:masterfrom
CuteLeaf merged 2 commits intoCuteLeaf:masterfrom
Conversation
feat(analytics): 添加51LA统计组件支持 New 51LA Analytics Component: - Created a new `src/components/analytics/La51Analytics.astro` component file - Added `la51AnalyticsId` and `la51Config` configuration options to the site configuration (`siteConfig`) - Integrated the `La51Analytics` component into the main `Layout.astro` layout - Added corresponding type declarations for the new options in the `SiteConfig` type definition Enhanced Configuration Options: - The feature supports various configurable options including: - Custom SDK URL - Data separation identifiers - Automatic page tracking - Hash-based router mode - Screen recording functionality 新增51LA分析组件: - 新增了 `src/components/analytics/La51Analytics.astro` 组件文件 - 在站点配置 (`siteConfig`) 中添加了 `la51AnalyticsId` 和 `la51Config` 配置项 - 将 `La51Analytics` 组件集成到主布局文件 `Layout.astro` 中 - 在 `SiteConfig` 类型定义中为新增选项添加了相应的类型声明 增强的配置选项: - 此功能支持多种可配置选项,包括: - 自定义 SDK URL - 数据分离标识符 - 自动页面跟踪 - 基于Hash的路由模式 - 屏幕录制功能
✅ Deploy Preview for demo-firefly ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Type of change
Checklist
Related Issue
Changes
新增 51la 网站统计支持,与现有的 Google Analytics 和 Microsoft Clarity 保持一致的代码风格。
修改文件:
src/types/config.tssrc/config/siteConfig.tssrc/components/analytics/La51Analytics.astrosrc/layouts/Layout.astro配置选项:
How To Test
src/config/siteConfig.ts中填写la51AnalyticsIdpnpm build构建项目Screenshots (if applicable)
Additional Notes
is:inline+data-swup-ignore-script属性,与 Swup 页面切换兼容