@thinkingai/ae-cli 6.0.58 → 6.0.60
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 +10 -5
- package/README.zh.md +10 -5
- package/bin/ai-monitor.js +2 -0
- package/dist/ai-monitor-FCXSLHAP.js +32 -0
- package/dist/ai-monitor.js +135 -0
- package/dist/{auth-A5OO4VS4.js → auth-ATK2SLEV.js} +10 -9
- package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
- package/dist/{capability-SKI4GHF4.js → capability-6KTSOI7L.js} +31 -35
- package/dist/{chunk-UYJMEHAF.js → chunk-2ETRY2CU.js} +15 -15
- package/dist/{chunk-QWSA3EOD.js → chunk-5E7MTTFN.js} +2 -2
- package/dist/{chunk-JSBLCLFE.js → chunk-5M5LBRR3.js} +1 -1
- package/dist/chunk-6M7ZEDT2.js +182 -0
- package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
- package/dist/chunk-AXTO4FTM.js +1285 -0
- package/dist/{chunk-HQCY3QCA.js → chunk-BEYLCUZX.js} +17 -12
- package/dist/chunk-CF6JTT2U.js +64 -0
- package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
- package/dist/{chunk-K2Z7QHDR.js → chunk-HSZAIPUX.js} +47 -12
- package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
- package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
- package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
- package/dist/{chunk-GBSACKFB.js → chunk-LOR4IA26.js} +564 -314
- package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
- package/dist/{chunk-EEARZNHE.js → chunk-SDKW6LYE.js} +88 -36
- package/dist/{chunk-WMDO53YK.js → chunk-VJUXKVRE.js} +1 -1
- package/dist/chunk-VRMGHQKE.js +556 -0
- package/dist/{compat-check-WFEKVLTH.js → compat-check-XD2U7PZ2.js} +2 -2
- package/dist/{config-U4I7X25P.js → config-U3GDWU6E.js} +25 -12
- package/dist/{context-CDB5H5PD.js → context-YAQG6YQC.js} +2 -2
- package/dist/{evaluation-LR4YDYWL.js → evaluation-2JSF4V47.js} +13 -158
- package/dist/index.js +84 -579
- package/dist/{memory-SNFR5M23.js → memory-WEB27VI6.js} +7 -7
- package/dist/{metadata-6QM6EED5.js → metadata-7FYE4234.js} +7 -7
- package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
- package/dist/{personal-semantic-preference-7VXQPP2N.js → personal-semantic-preference-O6VXM74A.js} +6 -6
- package/dist/{project-semantic-PSEPYH2L.js → project-semantic-2GGFJWW6.js} +15 -13
- package/dist/{sync-22ACDK5Z.js → sync-ULBB7WO5.js} +4 -4
- package/dist/{te-agent-BJ36B4QI.js → te-agent-6RMF7LUV.js} +5 -5
- package/dist/{te-analysis-WQ6D6YG4.js → te-analysis-HSYC7GNV.js} +382 -193
- package/dist/{te-community-VRWMFGI6.js → te-community-FLKZGQKB.js} +9 -9
- package/dist/{te-dataops-YTLFTTW7.js → te-dataops-OQQGTCUA.js} +3 -3
- package/dist/{te-engage-V2QW7TIC.js → te-engage-RIEBHL5T.js} +9 -9
- package/dist/{te-kb-4AQLISDR.js → te-kb-4HG2FMHJ.js} +18 -9
- package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
- package/dist/{te-team-6ELNGBWT.js → te-team-5O4UVUWE.js} +5 -5
- package/dist/{things-HFWLGCUH.js → things-TSJ64GBT.js} +5 -5
- package/dist/{update-3CRVVHV5.js → update-Q5LURAWV.js} +3 -3
- package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
- package/package.json +8 -6
- package/skills/ae-ai-monitor/SKILL.md +179 -0
- package/skills/ae-ai-monitor/references/read-commands.md +866 -0
- package/skills/ae-analysis/SKILL.md +10 -4
- package/skills/ae-analysis/references/adhoc_export.md +3 -1
- package/skills/ae-analysis/references/ai_models.md +1 -0
- package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
- package/skills/ae-analysis/references/asset_search.md +1 -1
- package/skills/ae-analysis/references/bad_case_begin.md +12 -0
- package/skills/ae-analysis/references/bad_case_get.md +12 -0
- package/skills/ae-analysis/references/bad_case_history.md +12 -0
- package/skills/ae-analysis/references/bad_case_list.md +12 -0
- package/skills/ae-analysis/references/bad_case_review.md +51 -0
- package/skills/ae-analysis/references/bad_case_run.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
- package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
- package/skills/ae-analysis/references/bi_panel_list.md +1 -1
- package/skills/ae-analysis/references/bi_panel_share.md +3 -1
- package/skills/ae-analysis/references/catalog_list.md +2 -0
- package/skills/ae-analysis/references/command_index.md +38 -29
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
- package/skills/ae-analysis/references/dashboard_handover.md +3 -1
- package/skills/ae-analysis/references/dashboard_list.md +3 -3
- package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
- package/skills/ae-analysis/references/dashboard_share.md +3 -1
- package/skills/ae-analysis/references/dashboard_update.md +3 -2
- package/skills/ae-analysis/references/filter_value_list.md +2 -0
- package/skills/ae-analysis/references/folder_share.md +8 -2
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
- package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
- package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
- package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
- package/skills/ae-analysis/references/project_member_add.md +3 -1
- package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
- package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
- package/skills/ae-analysis/references/project_member_update.md +3 -1
- package/skills/ae-analysis/references/project_owner_update.md +3 -1
- package/skills/ae-analysis/references/project_role_upsert.md +5 -3
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
- package/skills/ae-analysis/references/project_space_share.md +8 -2
- package/skills/ae-analysis/references/property_get.md +2 -0
- package/skills/ae-analysis/references/public_link_list.md +3 -1
- package/skills/ae-analysis/references/query_cancel.md +4 -1
- package/skills/ae-analysis/references/report_data_run.md +1 -1
- package/skills/ae-analysis/references/report_list.md +3 -3
- package/skills/ae-analysis/references/scenario_append.md +2 -2
- package/skills/ae-analysis/references/scenario_collect.md +15 -4
- package/skills/ae-analysis/references/scenario_list.md +2 -1
- package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
- package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
- package/skills/ae-analysis/references/user_tag_create.md +4 -1
- package/skills/ae-analysis/references/user_tag_get.md +2 -0
- package/skills/ae-analysis/references/user_tag_models.md +8 -2
- package/skills/ae-analysis/references/user_tag_update.md +5 -2
- package/skills/ae-analysis/references/virtual_property_create.md +12 -1
- package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
- package/skills/ae-automation/SKILL.md +4 -2
- package/skills/ae-capability/SKILL.md +9 -5
- package/skills/ae-community/SKILL.md +1 -0
- package/skills/ae-dataops/SKILL.md +1 -0
- package/skills/ae-engage/SKILL.md +1 -0
- package/skills/ae-evaluation/SKILL.md +17 -2
- package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
- package/skills/ae-kb/SKILL.md +5 -3
- package/skills/ae-kb/references/analysis-workflow.md +11 -2
- package/skills/ae-kb/references/query-workflow.md +3 -1
- package/skills/ae-kb/references/versions.md +1 -1
- package/skills/ae-metadata/SKILL.md +1 -0
- package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
- package/skills/ae-team/SKILL.md +1 -1
- package/skills/ae-tracking-matrix/SKILL.md +170 -0
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +12 -0
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
- package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
- package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
- package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
- package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
- package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
- package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
- package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
- package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
- package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
- package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
- package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
- package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
- package/dist/chunk-AMBFK2K3.js +0 -28
package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Standard Base - Multi-User ID System Tracking Recommendations
|
|
2
|
+
|
|
3
|
+
> Source: Feishu sheets `M71zsVFKihDEKXtZJjZcOkAvn5b` / sheet "Multi-User ID System Tracking Recommendations", cached on 2026-09-20. The cloud copy is the authoritative version; the cloud takes precedence on conflict.
|
|
4
|
+
|
|
5
|
+
| In game analysis scenarios, you often need to analyze users from multiple angles, such as role, account, device, or some third-party IDs; therefore, the ID design directly affects the subsequent usage of the TA system | Col2 | Col3 | Col4 | Col5 |
|
|
6
|
+
|---|---|---|---|---|
|
|
7
|
+
| Below we use a basic scenario to explain how to design the user ID system when tracking in the TA system. For more complex scenarios, feel free to contact ThinkingData's service staff. | | | | |
|
|
8
|
+
| Assume the current project has the following ID system: role ID, account ID, device-related IDs (including device ID or some third-party IDs based on the device, such as adjust_id) | | | | |
|
|
9
|
+
| In the TA system, `#account_id` is the primary standard to identify a single user; i.e., different `#account_id`s must correspond to different `#user_id`s. `#user_id` is the basis for user identification in the TA system. | | | | |
|
|
10
|
+
| In general, we recommend using the smallest, indivisible business ID as `#account_id`; in the above scenario, that is the role ID. Use a device-related ID as `#distinct_id`, such as the device ID, the guest ID generated by the ThinkingData client-side SDK, or a custom guest ID. | | | | |
|
|
11
|
+
| Other IDs are recommended to be recorded as common event properties (if the ID has a many-to-many relationship with the role, such as device ID) or as user properties. Based on the above logic, we recommend tracking as follows (below, the guest ID is the default guest ID from the ThinkingData client-side SDK; in practice this can be set as a custom one). | | | | |
|
|
12
|
+
| #account_id | #distinct_id | Account ID (custom property) | Device ID (custom property) | Other IDs (custom property) |
|
|
13
|
+
| Role ID | Guest ID | Account ID | Device ID | Platform ID, adjust_id, etc. |
|
|
14
|
+
| Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. |
|
|
15
|
+
| Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. | Of course, in actual tracking, some IDs may not exist at some stages. For example, at device activation there is no role ID; in that case leave it empty. The guest ID, in theory, should always exist regardless of the situation. |
|
|
16
|
+
| Tracking Scenario | #account_id | #distinct_id | Account ID (custom property) | Device ID (custom property) |
|
|
17
|
+
| Device activation | - | guest_id1 | - | device_id1 |
|
|
18
|
+
| SDK initialization | - | guest_id1 | - | device_id1 |
|
|
19
|
+
| Account registration | - | guest_id1 | account_id1 | device_id1 |
|
|
20
|
+
| Role creation | role_id1 | guest_id1 | account_id1 | device_id1 |
|
|
21
|
+
| Start battle | role_id1 | guest_id1 | account_id1 | device_id1 |
|
|
22
|
+
| Overall, follow the logic of "fill in if present, leave empty if absent". Based on the tracking above, data from before and after user login can be linked; the TA system will also provide corresponding features later. | | | | |
|
|
23
|
+
| Analyze users from various angles, such as device retention, account funnel conversion, etc. | | | | |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Standard Base - Tracking Notes
|
|
2
|
+
|
|
3
|
+
> Source: Feishu sheets `M71zsVFKihDEKXtZJjZcOkAvn5b` / sheet "Tracking Notes", cached on 2026-09-20. The cloud copy is the authoritative version; the cloud takes precedence on conflict.
|
|
4
|
+
|
|
5
|
+
| Col1 | Type | Description | Link |
|
|
6
|
+
|---|---|---|---|
|
|
7
|
+
| Q1 | Tracking Data Types | See "Data Type Design Principles" for details;<br>1. Event names / property names: String type; may begin with a digit or letter, may contain digits, letters, and underscores "\_"; max length 50 characters; case-insensitive for letters; only preset properties may begin with "#".<br><br>2. The type of a property field is determined by the type at the time of its first ingestion; when the ingested type is wrong:<br>Option 1: Use the secondary development tool to forcibly change the type, but the field values of already-ingested data will be set to null (usable during the early data testing phase)<br>Option 2: Use type virtual properties to convert the type; subsequent analysis simply uses the corresponding virtual property<br>Option 3: Keep the original field, use a new field to report data with the correct type, and later use virtual properties for joint deduplication<br><br>3. For number-type fields, pay attention to value limits. For fields that do not need numeric operations, we recommend using string type. | Modify data type: https://docs.thinkingdata.cn/ta-manual/latest/technical_document/ta_tool/modify_meta.html |
|
|
8
|
+
| Q2 | ID System | See "ID System FAQ" for details;<br>1. First, determine the data reporting order and method for each type of data; confirm the ID plan with the analyst before tracking;<br>2. If the client-side SDK needs to customize `#distinct_id`, configure it before uploading data;<br><br>[In one sentence: when first reporting `#account_id`, you must bring `#distinct_id`; otherwise binding will fail] | Android SDK custom guest ID: https://doc.thinkingdata.cn/ta-manual/latest/installation/installation_menu/client_sdk/android_sdk_installation/android_sdk_installation.html#_2-1-%E8%AE%BE%E7%BD%AE%E8%AE%BF%E5%AE%A2-id-%E5%8F%AF%E9%80%89 |
|
|
9
|
+
| Q3 | Timezone Setting (`#zone_offset`) | 1. Overseas, multi-region launches:<br>Recommended plan: report using local time + timezone<br>Client-side SDK:<br>By default, uses [local machine time + timezone] as the event occurrence time for reporting;<br>You can also specify an offset to a certain timezone before reporting; see the SDK docs for configuration;<br>Server-side SDK: You need to set the timezone field yourself (`"#zone_offset":8`);<br>If the server cannot obtain the client's local time, report using the server's timezone.<br><br>2. China-only or single-region launches:<br>Report using local time by default. | Android SDK set default timezone: https://docs.thinkingdata.cn/ta-manual/latest/installation/installation_menu/client_sdk/android_sdk_installation/android_sdk_installation.html#_6-7-%E8%AE%BE%E7%BD%AE%E9%BB%98%E8%AE%A4%E6%97%B6%E5%8C%BA |
|
|
10
|
+
| Q4 | Time Calibration | 1. We recommend calibrating the time at client-side SDK initialization, before data is reported, to prevent the user from modifying the local machine time so that the time is advanced too far forward, which would prevent the data from being ingested (client-side data ingestion time range: 10 days before to 3 days after); the calibration here only calibrates the current timestamp, not the timezone; for timezone setup, see the docs;<br>2. When reporting data from multiple platforms, note the chronological order of events. | Android SDK time calibration: https://docs.thinkingdata.cn/ta-manual/latest/installation/installation_menu/client_sdk/android_sdk_installation/android_sdk_installation.html#_6-8-%E6%A0%A1%E5%87%86%E6%97%B6%E9%97%B4 |
|
|
11
|
+
| Q5 | Print Logs | The client-side SDK has a log-print switch; if there are issues to debug with data reporting, you can print logs and then analyze. | Android SDK print logs: https://doc.thinkingdata.cn/ta-manual/latest/installation/installation_menu/client_sdk/android_sdk_installation/android_sdk_installation.html#_6-2-%E6%89%93%E5%8D%B0%E4%B8%8A%E4%BC%A0%E6%95%B0%E6%8D%AE-log |
|
|
12
|
+
| Q6 | Debug Mode | During early data reporting, you can enable debug mode in the SDK for reporting, combined with the ThinkingData backend [Data Management - Tracking Management - Debug Mode] feature, to do one-to-one validation of tracking data; the device ID here can be obtained by viewing the client-side logs. | Android enable debug mode: https://docs.thinkingdata.cn/ta-manual/latest/installation/installation_menu/client_sdk/android_sdk_installation/android_sdk_installation.html#_6-6-%E5%BC%80%E5%90%AF-debug-%E6%A8%A1%E5%BC%8F |
|
|
13
|
+
| Q7 | Server-Side Data Reporting | 1. When reporting data from the server, the `#time` field should be set to the event occurrence time, and `#ip` should take the client's IP.<br>2. In production, we recommend reporting via server-side SDK (LogConsumer) + logbus; if using the batch reporting method, data may be lost during long network outages. | |
|
|
14
|
+
| Q8 | Data Validation | After integration is complete, please first run a small amount of test data to validate; pay special attention to whether the ID system binding succeeded. | |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Standard Base - User Data
|
|
2
|
+
|
|
3
|
+
> Source: Feishu sheets `M71zsVFKihDEKXtZJjZcOkAvn5b` / sheet "User Data", cached on 2026-09-20. The cloud copy is the authoritative version; the cloud takes precedence on conflict.
|
|
4
|
+
|
|
5
|
+
| Property Name | Property Display Name | Property Type | Update Method | Property Description |
|
|
6
|
+
|---|---|---|---|---|
|
|
7
|
+
| device_id | Device ID | Text | user_setOnce | Set when the game starts / at registration |
|
|
8
|
+
| channel | Registration Channel | Text | user_setOnce | Set when the game starts / at registration; uploads the user's channel info, such as app store, Yingyongbao, etc. |
|
|
9
|
+
| account | Account | Text | user_setOnce | Recorded at registration |
|
|
10
|
+
| server_id | Server ID | Text | user_setOnce | Recorded at role creation |
|
|
11
|
+
| player_id | Role ID | Text | user_setOnce | Recorded at role creation |
|
|
12
|
+
| role_type | Role Class | Text | user_setOnce | Recorded at role creation |
|
|
13
|
+
| nick_name | Role Nickname | Text | user_set | Overwrites on update |
|
|
14
|
+
| is_roll | Is Server-Rolling | Boolean | user_setOnce | Recorded at role creation |
|
|
15
|
+
| current_level | Current Level | Number | user_set | Recorded when the player's level changes |
|
|
16
|
+
| current_vip_level | Current VIP Level | Number | user_set | Recorded when the player's VIP level changes |
|
|
17
|
+
| current_power | Current Total Combat Power | Number | user_set | Set at each login / logout |
|
|
18
|
+
| current_main_id | Current Main Storyline Stage Progress | Text | user_set | Recorded each time a new main-storyline stage is cleared |
|
|
19
|
+
| current_pvp_winrate | Current Arena Win Rate | Number | user_set | Set at each login / logout |
|
|
20
|
+
| current_pvp_rank | Current Arena Rank | Number | user_set | Set each time the arena rank changes |
|
|
21
|
+
| current_pvp_maxwin | Current Arena Max Win Streak | Number | user_set | Set at each login / logout |
|
|
22
|
+
| current_explore_rate | Current Map Exploration Progress | Number | user_set | Set at each login / logout |
|
|
23
|
+
| hero_info | Hero / General / Card Details | ObjectGroup | user_set | Set at each login / logout |
|
|
24
|
+
| hero_info.hero_id | Hero ID | Text | user_set | Set at each login / logout |
|
|
25
|
+
| hero_info.hero_level | Hero Level | Number | user_set | Set at each login / logout |
|
|
26
|
+
| hero_info.hero_star | Hero Star Level | Number | user_set | Set at each login / logout |
|
|
27
|
+
| hero_info.hero_quanlity | Hero Grade | Text | user_set | Set at each login / logout |
|
|
28
|
+
| hero_info.hero_power | Hero Combat Power | Number | user_set | Set at each login / logout |
|
|
29
|
+
| hero_info.hero_equipment_list | Hero Equipment List | List | user_set | Set at each login / logout |
|
|
30
|
+
| guild_id | Current Guild | Text | user_set | Set each time it changes |
|
|
31
|
+
| bag_info | Inventory Details | ObjectGroup | user_set | Set at each login / logout |
|
|
32
|
+
| bag_info.item_id | Inventory Item ID | Text | user_set | Set at each login / logout |
|
|
33
|
+
| bag_info.item_type | Inventory Item Type | Text | user_set | Set at each login / logout |
|
|
34
|
+
| bag_info.item_num | Inventory Item Count | Number | user_set | Set at each login / logout |
|
|
35
|
+
| register_time | User Added Time | Datetime | user_setOnce | Recorded when the user is added (activation / registration / role-creation time; consistent with the user ID system) |
|
|
36
|
+
| first_login_time | First Login Time | Datetime | user_setOnce | Recorded at first login |
|
|
37
|
+
| last_login_time | Last Login Time | Datetime | user_set | Overwrites at each login |
|
|
38
|
+
| first_pay_time | First Recharge Time | Datetime | user_setOnce | Recorded at first recharge completion |
|
|
39
|
+
| last_pay_time | Last Recharge Time | Datetime | user_set | Overwrites at each recharge completion |
|
|
40
|
+
| total_pay_amount | Total Payment Amount | Number | user_set | Overwrites at each recharge completion (user_add may also be used) |
|
|
41
|
+
| total_pay_times | Total Payment Count | Number | user_set | Incremented at each recharge completion (user_add may also be used) |
|
|
42
|
+
| total_login_day | Total Login Days | Number | user_set | Set at each login / logout |
|
|
43
|
+
| current_coin | Current Silver Coins | Number | user_set | Set at each login / logout |
|
|
44
|
+
| current_gold | Current Gold Ingots | Number | user_set | Set at each login / logout |
|
|
45
|
+
| current_jade | Current Jade | Number | user_set | Set at each login / logout |
|
|
46
|
+
| current_diomand | Current Diamonds | Number | user_set | Set at each login / logout |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Standard Base - User ID System
|
|
2
|
+
|
|
3
|
+
> Source: Feishu sheets `M71zsVFKihDEKXtZJjZcOkAvn5b` / sheet "User ID System", cached on 2026-09-20. The cloud copy is the authoritative version; the cloud takes precedence on conflict.
|
|
4
|
+
|
|
5
|
+
| Game Type | Property Name | Property Display Name | Property Description | Assignment Description |
|
|
6
|
+
|---|---|---|---|---|
|
|
7
|
+
| No account system | #account_id | Account ID | System property | NULL |
|
|
8
|
+
| No account system | #distinct_id | Guest ID | System property | Device-related ID or in-business guest ID; no need to care if using the client-side SDK |
|
|
9
|
+
| Single account, single role | #account_id | Account ID | System property | Simply set it to the player's unique account ID |
|
|
10
|
+
| Single account, single role | #distinct_id | Guest ID | System property | Device-related ID or in-business guest ID; no need to care if using the client-side SDK |
|
|
11
|
+
| Single account, multiple roles | #account_id | Account ID | System property | Set to role ID; the account ID that the role belongs to is set as a custom property of the role |
|
|
12
|
+
| Single account, multiple roles | #distinct_id | Guest ID | System property | Device-related ID or in-business guest ID; no need to care if using the client-side SDK |
|
|
13
|
+
| Reference: see the User ID System section of "How to Design Tracking" | | | | |
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
## Background Knowledge
|
|
2
|
+
|
|
3
|
+
### What Are System Fields
|
|
4
|
+
The TE analysis engine presets a set of system fields that:
|
|
5
|
+
- **In SQL queries**: can be used directly without any additional configuration
|
|
6
|
+
- **In frontend analysis models**: hidden by default and cannot be used directly
|
|
7
|
+
|
|
8
|
+
System fields are divided into two categories:
|
|
9
|
+
1. **System fields in the event table** (within the event property scope)
|
|
10
|
+
2. **System fields in the user table** (within the user property scope)
|
|
11
|
+
|
|
12
|
+
### Prerequisites for Using System Fields in Frontend Models
|
|
13
|
+
Different categories of system fields have different requirements for use in frontend analysis models:
|
|
14
|
+
|
|
15
|
+
| Field Category | Required Steps | Description |
|
|
16
|
+
|---------------|----------------|-------------|
|
|
17
|
+
| **Event table system fields** | Two steps: ① Create and Connect → ② Create virtual property | Event properties must be wrapped as a virtual property with `relation_always` before they can be used in frontend models |
|
|
18
|
+
| **User table system fields** | One step: Create and Connect | User properties can be used directly in frontend analysis models once "Connected", **no virtual property needed** |
|
|
19
|
+
|
|
20
|
+
### System Field Reference List
|
|
21
|
+
The following list is sourced from the AE system's preset system fields. Fields prefixed with `$` are partition fields; fields prefixed with `#` are system attribute fields.
|
|
22
|
+
|
|
23
|
+
**System fields in the event table**:
|
|
24
|
+
|
|
25
|
+
| Field Name | Display Name | Type | Description |
|
|
26
|
+
|------------|--------------|------|-------------|
|
|
27
|
+
| $part_event | Event Partition Field | Text | Event partition field, derived from #event_name |
|
|
28
|
+
| $part_date | Date Partition Field | Time | Date partition field, derived from #event_time |
|
|
29
|
+
| #app_id | Project ID | Text | Project ID that the event belongs to |
|
|
30
|
+
| #user_id | Unique User ID | Numeric | Unique user identifier in the system |
|
|
31
|
+
| #account_id | Account ID | Text | Account ID, equivalent to #account_id in the data |
|
|
32
|
+
| #distinct_id | Visitor ID | Text | Visitor ID, equivalent to #distinct_id in the data |
|
|
33
|
+
| #event_name | Event Name | Text | Event name, equivalent to #event_name in the data |
|
|
34
|
+
| #event_time | Event Time | Time | Event time, equivalent to #time in the data |
|
|
35
|
+
| #server_time | Server Time | Time | Server time when the data was received |
|
|
36
|
+
| #dw_create_time | First Ingestion Time | Time | First data warehouse ingestion time |
|
|
37
|
+
| #dw_update_time | Ingestion Update Time | Time | Data warehouse update time |
|
|
38
|
+
| #kafka_offset | Kafka Offset | Numeric | Kafka offset where the event is stored |
|
|
39
|
+
| #uuid | UUID | Text | Unique identifier of the event |
|
|
40
|
+
|
|
41
|
+
**System fields in the user table**:
|
|
42
|
+
|
|
43
|
+
| Field Name | Display Name | Type | Description |
|
|
44
|
+
|------------|--------------|------|-------------|
|
|
45
|
+
| #user_id | Unique User ID | Numeric | Unique user identifier in the system |
|
|
46
|
+
| #account_id | Account ID | Text | Account ID, equivalent to #account_id in the data |
|
|
47
|
+
| #distinct_id | Visitor ID | Text | Visitor ID, equivalent to #distinct_id in the data |
|
|
48
|
+
| #active_time | Activation Time | Time | Time of the user's first data ingestion |
|
|
49
|
+
| #reg_time | Registration Time | Time | Time of the first data ingestion containing an account ID |
|
|
50
|
+
| #update_time | Update Time | Time | #time of the last received user property data |
|
|
51
|
+
| #server_time | Server Time | Time | Server time of the last received user property data |
|
|
52
|
+
| #dw_update_time | Ingestion Update Time | Time | Latest update time of this user record |
|
|
53
|
+
| #event_date | Latest Event Date | Numeric | Ingestion date of the user's latest event |
|
|
54
|
+
| #user_operation | User Operation Type | Text | Operation type of the user property data |
|
|
55
|
+
| #kafka_offset | Kafka Offset | Numeric | Kafka offset where the user property data is stored |
|
|
56
|
+
| #uuid | UUID | Text | Unique identifier of the user property data |
|
|
57
|
+
|
|
58
|
+
**Fields existing in both tables (require user confirmation)**:
|
|
59
|
+
The following fields exist in both the event table and the user table. The category cannot be determined by name alone. Guide the user to confirm:
|
|
60
|
+
- `#user_id`
|
|
61
|
+
- `#account_id`
|
|
62
|
+
- `#distinct_id`
|
|
63
|
+
- `#server_time`
|
|
64
|
+
- `#dw_update_time`
|
|
65
|
+
- `#kafka_offset`
|
|
66
|
+
- `#uuid`
|
|
67
|
+
|
|
68
|
+
> Note: The system field list may change as the AE version evolves. If you encounter a field not listed, prioritize using the tool query method in "Step 2: Check Field Status" to determine its category.
|
|
69
|
+
|
|
70
|
+
## Workflow
|
|
71
|
+
|
|
72
|
+
### Step 1: Clarify User Requirements
|
|
73
|
+
1. Ask the user which system field they want to use (field name)
|
|
74
|
+
2. Ask the user about their usage scenario:
|
|
75
|
+
- For SQL query only → inform them that no action is needed and it can be used directly
|
|
76
|
+
- If it is a system field in the event table, it can be queried directly in the event table in SQL
|
|
77
|
+
- If it is a system field in the user table, it can be queried directly in the user table in SQL and used directly
|
|
78
|
+
- For use in frontend analysis models → proceed to Step 2
|
|
79
|
+
|
|
80
|
+
### Step 2: Identify Field Status and Category
|
|
81
|
+
After obtaining the field name, judge in the following priority order:
|
|
82
|
+
|
|
83
|
+
#### 2.1 Query whether the field is connected (priority)
|
|
84
|
+
Use the current metadata gateway and query both scopes when the field may exist in
|
|
85
|
+
both tables:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
ae-cli analysis-meta property list \
|
|
89
|
+
--project-id <project_id> \
|
|
90
|
+
--queries '["<field_name>"]' \
|
|
91
|
+
--fields '["prop_id","prop_name","prop_desc","select_type","table_type","authentication_status"]' \
|
|
92
|
+
--limit 20 \
|
|
93
|
+
--offset 0
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Match the exact `prop_name`; do not treat a fuzzy-name match as the requested
|
|
97
|
+
field.
|
|
98
|
+
- **If the field is found** → the field is already in "Connected" status. Determine the category directly from the returned `scope` field:
|
|
99
|
+
- `scope = "event"` → event property
|
|
100
|
+
- `scope = "user"` → user property
|
|
101
|
+
- After confirming the category, **proceed directly to the "Connected Fast Path"** (see below)
|
|
102
|
+
- **If the field is not found** → the field is still hidden (not connected), proceed to 2.2
|
|
103
|
+
|
|
104
|
+
> Note: `list_properties` can only query connected system fields. When unconnected, it returns empty, which can be used as a status judgment basis.
|
|
105
|
+
|
|
106
|
+
#### 2.2 Match against the system field list (fallback)
|
|
107
|
+
When the field is not connected (query returns empty), match against the "System Field Reference List":
|
|
108
|
+
- Field uniquely matches the event table list → determined as an event table system field
|
|
109
|
+
- Field uniquely matches the user table list → determined as a user table system field
|
|
110
|
+
- Field exists in both lists (e.g., `#user_id`) → guide the user to confirm: "Is this field reported along with events (event property), or does it describe user characteristics (user property)?"
|
|
111
|
+
- Field is not in the list → guide the user to confirm the category, and suggest adding it to the list later
|
|
112
|
+
|
|
113
|
+
### Connected Fast Path
|
|
114
|
+
After confirming the field is **connected** via 2.1, perform different actions based on the field category:
|
|
115
|
+
|
|
116
|
+
#### Scenario A: Event table field is connected
|
|
117
|
+
Event properties must be wrapped as a virtual property before they can be used in frontend analysis models, even when connected. Directly propose a virtual property creation plan to the user:
|
|
118
|
+
|
|
119
|
+
1. **Inform the user that the field is connected**:
|
|
120
|
+
- "`#field_name` is currently in 'Connected' status and belongs to event properties. Since event properties must be wrapped as a virtual property before they can be used in frontend analysis models, I can create one for you directly."
|
|
121
|
+
|
|
122
|
+
2. **Propose a virtual property creation plan and ask for user consent**:
|
|
123
|
+
- "I can create a virtual property for you that references this field, keeping the data type unchanged, with the associated event automatically set to all events (`relation_always`). Its machine name must start with `#vp@`; by default I will use `#vp@field_name` and keep the original field name as the display name. Do you agree to create it?"
|
|
124
|
+
|
|
125
|
+
3. **Execute based on user feedback**:
|
|
126
|
+
- **User agrees** → call `analysis-meta virtual-property create`, set the associated event to `relation_always`, and inform the user of the result upon completion
|
|
127
|
+
- **User disagrees or has other requirements** (e.g., wants to change the name or data type) → adjust according to the user's wishes before creating
|
|
128
|
+
- **User only wants to confirm availability** → inform the user that although the field is connected, event properties still require a virtual property to be usable in frontend models
|
|
129
|
+
|
|
130
|
+
#### Scenario B: User table field is connected
|
|
131
|
+
User properties can be used directly in frontend analysis models once set to "Connected".
|
|
132
|
+
|
|
133
|
+
1. **Inform the user that the field is connected and ready to use**:
|
|
134
|
+
- "`#field_name` is currently in 'Connected' status and belongs to user properties. You can use it directly in frontend analysis models. You can search for `#field_name` in the property list to find it."
|
|
135
|
+
|
|
136
|
+
2. **User still wants to create a virtual property** (for special needs) → handle according to the user's wishes, but inform them that user properties typically do not require this step
|
|
137
|
+
|
|
138
|
+
### Step 3: Guide the User to Set an Unconnected Field to "Connected"
|
|
139
|
+
Execute this step **only when the field is in an unconnected status**.
|
|
140
|
+
|
|
141
|
+
#### Scenario A: System Fields in the Event Table
|
|
142
|
+
Instruct the user to operate as follows:
|
|
143
|
+
1. Navigate to **"Data" → "Data Management" → "Event Properties" → "Source Event Property Management"**
|
|
144
|
+
2. Find the desired system field in the list
|
|
145
|
+
3. Click the **"Create and Connect"** button on the right side of the field
|
|
146
|
+
4. Confirm that the field status changes to **"Connected"**
|
|
147
|
+
|
|
148
|
+
After connection is complete, **proceed to Step 4** to create a virtual property.
|
|
149
|
+
|
|
150
|
+
#### Scenario B: System Fields in the User Table
|
|
151
|
+
Instruct the user to operate as follows:
|
|
152
|
+
1. Navigate to **"Data" → "Data Management" → "User Properties" → "Source User Property Management"**
|
|
153
|
+
2. Find the desired system field in the list
|
|
154
|
+
3. Click the **"Create and Connect"** button on the right side of the field
|
|
155
|
+
4. Confirm that the field status changes to **"Connected"**
|
|
156
|
+
|
|
157
|
+
After connection is complete, inform the user that the field can now be used directly in frontend analysis models.
|
|
158
|
+
|
|
159
|
+
### Step 4: Create a Virtual Property for Event Table Fields
|
|
160
|
+
Execute this step **only for event table system fields**. When the user confirms that an event field is in the **"Connected"** status (or when the user agrees to create via the "Connected Fast Path"), perform the following actions:
|
|
161
|
+
|
|
162
|
+
1. **Confirm the virtual property name**:
|
|
163
|
+
- Ask if the user has any special naming requirements
|
|
164
|
+
- The machine name must start with `#vp@`; if the user has no special requirement, derive `#vp@field_name` from the original system field and keep the original name as `property-desc`
|
|
165
|
+
|
|
166
|
+
2. **Use `analysis-meta virtual-property create` to create a virtual event property**:
|
|
167
|
+
- The property definition directly references the target system field
|
|
168
|
+
- The data type remains consistent with the original system field and is not modified
|
|
169
|
+
- The associated event is automatically set to **relation_always (all events)** to ensure the virtual property is available for all events
|
|
170
|
+
- Quote system-field identifiers containing `#`, `$`, or `@` in the SQL expression
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
ae-cli analysis-meta virtual-property create \
|
|
174
|
+
--project-id <project_id> \
|
|
175
|
+
--property-name '#vp@field_name' \
|
|
176
|
+
--property-desc '#field_name' \
|
|
177
|
+
--table-type event \
|
|
178
|
+
--select-type <metadata_select_type> \
|
|
179
|
+
--sql-expression '"#field_name"' \
|
|
180
|
+
--sql-event-relation-type relation_always
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Use the exact `select_type` returned by `property list`. Do not copy the
|
|
184
|
+
placeholder command without substituting metadata-verified values.
|
|
185
|
+
|
|
186
|
+
3. **Inform the user of the result**:
|
|
187
|
+
- After the virtual property is successfully created, the field can be used in frontend analysis models (such as Event Analysis, Funnel Analysis, Retention Analysis, etc.)
|
|
188
|
+
- Prompt the user that they can search for the virtual property in the property list to use it
|
|
189
|
+
|
|
190
|
+
## Important Rules
|
|
191
|
+
|
|
192
|
+
1. **Must distinguish the field category**: the operation paths and usage conditions for event table system fields and user table system fields are different. Be sure to identify first and then guide to avoid the user navigating to the wrong page.
|
|
193
|
+
|
|
194
|
+
2. **Event table fields must create a virtual property**: event properties must be wrapped as a virtual property with `relation_always` before they can be used in frontend models, even when already connected. Do not omit this step.
|
|
195
|
+
|
|
196
|
+
3. **User table fields do not need a virtual property**: user properties can be used directly in frontend analysis models once set to "Connected". If a user table field is already connected, do not guide the user to create a virtual property unless the user actively requests it for special needs.
|
|
197
|
+
|
|
198
|
+
4. **No action needed for SQL queries**: if the user only needs to use system fields in SQL queries, directly inform them that "it can be used directly in SQL without creating and connecting or creating a virtual property" to avoid unnecessary workflows.
|
|
199
|
+
|
|
200
|
+
5. **Status confirmation is critical**: for event table fields, confirm the "Connected" status before creating a virtual property; for user table fields, confirming "Connected" completes the workflow.
|
|
201
|
+
|
|
202
|
+
6. **Respect the user's naming preference and the CLI contract**: ask whether the user has custom naming requirements. The machine name must start with `#vp@`; preserve the original field label with `property-desc` when appropriate.
|
|
203
|
+
|
|
204
|
+
7. **Keep the data type unchanged**: the data type of the virtual property must be completely consistent with the original system field and cannot be arbitrarily converted or mapped, unless the user explicitly specifies a different data type.
|
|
205
|
+
|
|
206
|
+
8. **Associated event must be set to all events**: when creating a virtual property, the associated event must be automatically set to **relation_always (all events)** to ensure the virtual property is available for all events. Do not omit this or set it to a specific event.
|
|
207
|
+
|
|
208
|
+
9. **Cross-table fields must be confirmed with the user**: for fields that may exist in both the event table and the user table, such as `#user_id`, `#account_id`, `#distinct_id`, `#server_time`, `#dw_update_time`, `#kafka_offset`, and `#uuid`, do not guess the category. You must guide the user to confirm.
|
|
209
|
+
|
|
210
|
+
## Example Conversation
|
|
211
|
+
|
|
212
|
+
### Example 1: Event table field is connected, create virtual property
|
|
213
|
+
|
|
214
|
+
**User**: I want to use the `#event_time` field in Event Analysis.
|
|
215
|
+
|
|
216
|
+
**Assistant**: Let me check the status of `#event_time` for you.
|
|
217
|
+
|
|
218
|
+
> (Runs `analysis-meta property list`, finds that `#event_time` exists with `table_type = event`)
|
|
219
|
+
|
|
220
|
+
**Assistant**: `#event_time` is currently in "Connected" status and belongs to event properties. Since event properties must be wrapped as a virtual property before they can be used in frontend analysis models, I can create one for you directly.
|
|
221
|
+
|
|
222
|
+
I can create a virtual property for you that references this field, keeping the data type unchanged, with the associated event automatically set to all events (`relation_always`). Its machine name will be `#vp@event_time`, and the display name will remain `#event_time`. If you have other naming requirements, please let me know. Do you agree to create it?
|
|
223
|
+
|
|
224
|
+
**User**: Yes, please use the original name.
|
|
225
|
+
|
|
226
|
+
**Assistant**: Okay, I will now create the virtual property for you.
|
|
227
|
+
|
|
228
|
+
> (Runs `analysis-meta virtual-property create`, references `"#event_time"`, keeps the metadata-reported data type, and uses `relation_always`)
|
|
229
|
+
|
|
230
|
+
**Assistant**: The virtual property `#vp@event_time` (display name `#event_time`) has been successfully created. You can now use it directly in frontend models such as Event Analysis, Funnel Analysis, and Retention Analysis.
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
### Example 2: User table field is connected, inform direct usage
|
|
235
|
+
|
|
236
|
+
**User**: I want to use the `#update_time` field in Retention Analysis.
|
|
237
|
+
|
|
238
|
+
**Assistant**: Let me check the status of `#update_time` for you.
|
|
239
|
+
|
|
240
|
+
> (Runs `analysis-meta property list`, finds that `#update_time` exists with `table_type = user`)
|
|
241
|
+
|
|
242
|
+
**Assistant**: `#update_time` is currently in "Connected" status and belongs to user properties. You can use it directly in frontend analysis models. You can search for `#update_time` in the property list to find it.
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
### Example 3: User table field is not connected, guide connection
|
|
247
|
+
|
|
248
|
+
**User**: I want to use `#reg_time` in Funnel Analysis.
|
|
249
|
+
|
|
250
|
+
**Assistant**: Let me check the status of `#reg_time` for you.
|
|
251
|
+
|
|
252
|
+
> (Runs `analysis-meta property list`; no exact `#reg_time` match is returned, indicating it is not connected)
|
|
253
|
+
|
|
254
|
+
**Assistant**: `#reg_time` is currently in an unconnected status and belongs to the user table system fields (registration time). You need to set it to "Connected" status first:
|
|
255
|
+
1. Navigate to "Data" → "Data Management" → "User Properties" → "Source User Property Management"
|
|
256
|
+
2. Find `#reg_time` and click "Create and Connect"
|
|
257
|
+
3. Confirm the status changes to "Connected"
|
|
258
|
+
|
|
259
|
+
After it is connected, the field can be used directly in frontend analysis models.
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
### Example 4: Event table field is not connected, guide connection then create virtual property
|
|
264
|
+
|
|
265
|
+
**User**: I want to use `#dw_update_time` in Event Analysis.
|
|
266
|
+
|
|
267
|
+
**Assistant**: Let me check the status of `#dw_update_time` for you.
|
|
268
|
+
|
|
269
|
+
> (Runs `analysis-meta property list`; no exact `#dw_update_time` match is returned, indicating it is not connected)
|
|
270
|
+
|
|
271
|
+
**Assistant**: `#dw_update_time` is currently in an unconnected status. This field exists in both the event table and the user table. Please confirm which one you want to use:
|
|
272
|
+
- If it is the data warehouse update time reported along with events (event property)
|
|
273
|
+
- If it is the data warehouse update time describing user profile updates (user property)
|
|
274
|
+
|
|
275
|
+
**User**: It is an event property.
|
|
276
|
+
|
|
277
|
+
**Assistant**: Okay, `#dw_update_time` is a system field in the event table. You need to set it to "Connected" status first:
|
|
278
|
+
1. Navigate to "Data" → "Data Management" → "Event Properties" → "Source Event Property Management"
|
|
279
|
+
2. Find `#dw_update_time` and click "Create and Connect"
|
|
280
|
+
3. Confirm the status changes to "Connected"
|
|
281
|
+
|
|
282
|
+
Let me know after it is connected, and I will create a virtual property for you so it can be used in frontend analysis models.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
### Example 5: SQL query fast path
|
|
287
|
+
|
|
288
|
+
**User**: How do I query `#event_time` in SQL?
|
|
289
|
+
|
|
290
|
+
**Assistant**: `#event_time` is a system field in the event table. It can be queried directly in SQL without creating and connecting or creating a virtual property. You can use it directly in the event table.
|
|
291
|
+
|
|
292
|
+
## Language Policy
|
|
293
|
+
|
|
294
|
+
**CRITICAL**: Always respond in the user's language.
|
|
295
|
+
- If user writes in English → Respond in English
|
|
296
|
+
- If user writes in Chinese → Respond in Chinese
|
|
297
|
+
- Never translate the user's language; match their input language exactly
|