feat: multi-dimension optimization (analytics, CRO, schema, UI)#54
Merged
calderbuild merged 4 commits intomainfrom Feb 18, 2026
Merged
feat: multi-dimension optimization (analytics, CRO, schema, UI)#54calderbuild merged 4 commits intomainfrom
calderbuild merged 4 commits intomainfrom
Conversation
added 4 commits
February 19, 2026 00:19
…cture - Inject Baidu Tongji via Jinja2 globals on all SSR pages (base.html) - Add /api/config/analytics endpoint for static pages to fetch tracking ID - Inject tracking into tool page (meetspot_finder.html) via config fetch - Inject tracking into generated results page (meetspot_recommender.py) - Add data-track click handler for CTA event tracking on SSR pages - Track tool_submit and recommendation_result events on tool page - Track result_page_view event on generated results page - Add structured loguru logging for recommendation completions - All tracking gated behind BAIDU_TONGJI_ID env var (no-op when unset)
- City page CTA now links directly to tool page (skip homepage hop) - Add sticky navigation bar to generated results page (MeetSpot logo, re-search link, copy-link share button) - Add data-track attributes for CTA and share event tracking
- WebApplication schema: add url property - Organization schema: add logo property (favicon.svg)
- Sticky nav with MeetSpot logo linking to homepage - "使用指南" link for guidance
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.
Summary
MeetSpot 多维度优化,覆盖 4 个方面:
变更详情
templates/base.htmlapi/routers/seo_pages.pyapi/index.pypublic/meetspot_finder.htmlapp/tool/meetspot_recommender.pyapi/services/seo_content.pytemplates/pages/home.html新增环境变量
BAIDU_TONGJI_ID-- 百度统计站点 ID(可选,不设则不注入追踪代码)后续工作
Test plan