@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.
Files changed (253) hide show
  1. package/README.md +10 -5
  2. package/README.zh.md +10 -5
  3. package/bin/ai-monitor.js +2 -0
  4. package/dist/ai-monitor-FCXSLHAP.js +32 -0
  5. package/dist/ai-monitor.js +135 -0
  6. package/dist/{auth-A5OO4VS4.js → auth-ATK2SLEV.js} +10 -9
  7. package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
  8. package/dist/{capability-SKI4GHF4.js → capability-6KTSOI7L.js} +31 -35
  9. package/dist/{chunk-UYJMEHAF.js → chunk-2ETRY2CU.js} +15 -15
  10. package/dist/{chunk-QWSA3EOD.js → chunk-5E7MTTFN.js} +2 -2
  11. package/dist/{chunk-JSBLCLFE.js → chunk-5M5LBRR3.js} +1 -1
  12. package/dist/chunk-6M7ZEDT2.js +182 -0
  13. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  14. package/dist/chunk-AXTO4FTM.js +1285 -0
  15. package/dist/{chunk-HQCY3QCA.js → chunk-BEYLCUZX.js} +17 -12
  16. package/dist/chunk-CF6JTT2U.js +64 -0
  17. package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
  18. package/dist/{chunk-K2Z7QHDR.js → chunk-HSZAIPUX.js} +47 -12
  19. package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
  20. package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
  21. package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
  22. package/dist/{chunk-GBSACKFB.js → chunk-LOR4IA26.js} +564 -314
  23. package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
  24. package/dist/{chunk-EEARZNHE.js → chunk-SDKW6LYE.js} +88 -36
  25. package/dist/{chunk-WMDO53YK.js → chunk-VJUXKVRE.js} +1 -1
  26. package/dist/chunk-VRMGHQKE.js +556 -0
  27. package/dist/{compat-check-WFEKVLTH.js → compat-check-XD2U7PZ2.js} +2 -2
  28. package/dist/{config-U4I7X25P.js → config-U3GDWU6E.js} +25 -12
  29. package/dist/{context-CDB5H5PD.js → context-YAQG6YQC.js} +2 -2
  30. package/dist/{evaluation-LR4YDYWL.js → evaluation-2JSF4V47.js} +13 -158
  31. package/dist/index.js +84 -579
  32. package/dist/{memory-SNFR5M23.js → memory-WEB27VI6.js} +7 -7
  33. package/dist/{metadata-6QM6EED5.js → metadata-7FYE4234.js} +7 -7
  34. package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
  35. package/dist/{personal-semantic-preference-7VXQPP2N.js → personal-semantic-preference-O6VXM74A.js} +6 -6
  36. package/dist/{project-semantic-PSEPYH2L.js → project-semantic-2GGFJWW6.js} +15 -13
  37. package/dist/{sync-22ACDK5Z.js → sync-ULBB7WO5.js} +4 -4
  38. package/dist/{te-agent-BJ36B4QI.js → te-agent-6RMF7LUV.js} +5 -5
  39. package/dist/{te-analysis-WQ6D6YG4.js → te-analysis-HSYC7GNV.js} +382 -193
  40. package/dist/{te-community-VRWMFGI6.js → te-community-FLKZGQKB.js} +9 -9
  41. package/dist/{te-dataops-YTLFTTW7.js → te-dataops-OQQGTCUA.js} +3 -3
  42. package/dist/{te-engage-V2QW7TIC.js → te-engage-RIEBHL5T.js} +9 -9
  43. package/dist/{te-kb-4AQLISDR.js → te-kb-4HG2FMHJ.js} +18 -9
  44. package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
  45. package/dist/{te-team-6ELNGBWT.js → te-team-5O4UVUWE.js} +5 -5
  46. package/dist/{things-HFWLGCUH.js → things-TSJ64GBT.js} +5 -5
  47. package/dist/{update-3CRVVHV5.js → update-Q5LURAWV.js} +3 -3
  48. package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
  49. package/package.json +8 -6
  50. package/skills/ae-ai-monitor/SKILL.md +179 -0
  51. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  52. package/skills/ae-analysis/SKILL.md +10 -4
  53. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  54. package/skills/ae-analysis/references/ai_models.md +1 -0
  55. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  56. package/skills/ae-analysis/references/asset_search.md +1 -1
  57. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  58. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  59. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  60. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  61. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  62. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  63. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  64. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  65. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  66. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  67. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  68. package/skills/ae-analysis/references/catalog_list.md +2 -0
  69. package/skills/ae-analysis/references/command_index.md +38 -29
  70. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  71. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  72. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  73. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  74. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  75. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  76. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  77. package/skills/ae-analysis/references/folder_share.md +8 -2
  78. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  79. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  80. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  81. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  82. package/skills/ae-analysis/references/project_member_add.md +3 -1
  83. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  84. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  85. package/skills/ae-analysis/references/project_member_update.md +3 -1
  86. package/skills/ae-analysis/references/project_owner_update.md +3 -1
  87. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  88. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  89. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  90. package/skills/ae-analysis/references/project_space_share.md +8 -2
  91. package/skills/ae-analysis/references/property_get.md +2 -0
  92. package/skills/ae-analysis/references/public_link_list.md +3 -1
  93. package/skills/ae-analysis/references/query_cancel.md +4 -1
  94. package/skills/ae-analysis/references/report_data_run.md +1 -1
  95. package/skills/ae-analysis/references/report_list.md +3 -3
  96. package/skills/ae-analysis/references/scenario_append.md +2 -2
  97. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  98. package/skills/ae-analysis/references/scenario_list.md +2 -1
  99. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  100. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  101. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  102. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  103. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  104. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  105. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  106. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  107. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  108. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  109. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  110. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  111. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  112. package/skills/ae-automation/SKILL.md +4 -2
  113. package/skills/ae-capability/SKILL.md +9 -5
  114. package/skills/ae-community/SKILL.md +1 -0
  115. package/skills/ae-dataops/SKILL.md +1 -0
  116. package/skills/ae-engage/SKILL.md +1 -0
  117. package/skills/ae-evaluation/SKILL.md +17 -2
  118. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  119. package/skills/ae-kb/SKILL.md +5 -3
  120. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  121. package/skills/ae-kb/references/query-workflow.md +3 -1
  122. package/skills/ae-kb/references/versions.md +1 -1
  123. package/skills/ae-metadata/SKILL.md +1 -0
  124. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  125. package/skills/ae-team/SKILL.md +1 -1
  126. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  127. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  128. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  129. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  130. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  131. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  132. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  133. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  134. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  135. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  136. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  137. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  138. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  139. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  140. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  141. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  142. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  143. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  144. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  145. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  146. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  147. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  148. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  149. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  150. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  151. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  152. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  153. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  154. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  155. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  156. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  157. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  158. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  159. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  160. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  161. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  162. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  163. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  164. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  165. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  166. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  167. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  168. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  169. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  170. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  171. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  172. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  173. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  174. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  175. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  176. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  177. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  178. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  179. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  180. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  181. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  182. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  183. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  184. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  185. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  186. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  187. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  188. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  189. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  190. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  191. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  192. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  193. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  194. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  195. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  196. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  197. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  198. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  199. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  200. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  201. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  202. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  203. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  204. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  205. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  206. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  207. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  208. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  209. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  210. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  211. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  212. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  213. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  214. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  215. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  216. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  217. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  218. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  219. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  220. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  221. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  222. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  223. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  224. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  225. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  226. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  227. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  228. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  229. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  230. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  231. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  232. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  233. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  234. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  235. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  236. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  237. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  238. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  239. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  240. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  241. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  242. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  243. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  244. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  245. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  246. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  247. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  248. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  249. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  250. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  251. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  252. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  253. package/dist/chunk-AMBFK2K3.js +0 -28
@@ -0,0 +1,407 @@
1
+ # Card Game Tracking Plan
2
+
3
+
4
+ ## Integration Must-Know
5
+
6
+ | | | Data Collection Requirements Document | | | | | | | | | | | | | |
7
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
8
+ | | | Sheets prefixed with # in the document are the tracking design sections; other sheets cover the design principles or things to watch out for during tracking - you can browse them according to your actual business needs. | | | | | | | | | | | | | |
9
+ | | | Integration guide: it is recommended to read the following related documents before integration | | | | | | | | | | | | | |
10
+ | | | Integration Must-Know | | User Definition | | | User identification rules: how a user is defined within the TA system | | | | | | | | |
11
+ | | | | | Data Specification | | | Data rules: data format specification of the TA system | | | | | | | | |
12
+ | | | | | Preset Fields and System Fields | | | Preset fields and system fields | | | | | | | | |
13
+ | | | Integration Tools | | TA offers data integration solutions for all platforms. Main integration methods include: | | | | | | | | | | | |
14
+ | | | | | Client SDK | | | Can collect device information and user behavior data that doesn't communicate with the server | | | | | | | | |
15
+ | | | | | Server SDK | | | Collection is more accurate; suitable for collecting core business data | | | | | | | | |
16
+ | | | | | Data Import Tool | | | Usually used for historical data import; the Server SDK combined with LogBus is also a widely used server-side data collection solution | | | | | | | | |
17
+ | | | | | For general apps and Web development, we provide: | | | | | | | | | | | |
18
+ | | | | | Native SDK | | | Android SDK | | iOS SDK | | | | | | |
19
+ | | | | | Third-party frameworks | | | Flutter | RN Android | RN iOS | Weex Android | Weex iOS | | | | |
20
+ | | | | | H5 development | | | JavaScript SDK | | Integration between H5 and native SDK | | | | | | |
21
+ | | | | | Mainstream mini program / quick app platforms | | | Mini Program SDK | | | | | | | | |
22
+ | | | | | For mini game development, we provide: | | | | | | | | | | | |
23
+ | | | | | Support for mainstream game engines | | | LayaBox | Egret | Cocos Creator | | | | | | |
24
+ | | | | | Support for mainstream mini game / quick game platforms | | | Mini Game SDK | | | | | | | | |
25
+ | | | | | For mobile game development, we provide: | | | Unity SDK | | Unreal Engine 4 SDK | | | | | | |
26
+ | | | | | For server-side collection solutions, we recommend: | | | Server SDK + | Logbus solution | | | | | | | |
27
+ | | | | | This solution performs well in terms of data import stability, timeliness, and efficiency. | | | | | | | | | | | |
28
+ | | | | | If you have some heterogeneous historical data that needs to be imported, or if some data needs to be supplemented to the TA system, consider using | | | | | | | DataX | | | | |
29
+ | | | | | Unlike the Logbus solution, DataX is not a resident service and cannot monitor new data generation and import in a timely manner, so it cannot guarantee real-time data. The advantage of DataX is that it supports heterogeneous data imports from multiple data sources and is easy to operate. | | | | | | | | | | | |
30
+ | | | | | If you use Filebeat and Logstash to collect logs and want to import log data into the TA system, you can use: | | | | | | | | | | | |
31
+ | | | | | Filebeat + Logstash solution | | | | | | | | | | | |
32
+ | | | Integration Essentials | | 1. Project APP ID: when creating a project in the TA backend, the project's APP ID will be generated; you can also view it on the project management page. 2. Determine the data receiver address. If using the cloud service, the receiver address is: https://receiver.ta.thinkingdata.cn For private deployments, bind a domain on the private cluster (or integration endpoint) and configure the SSL certificate. 3. Verify the receiver address: browse https://YOUR_RECEIVER_URL/health-check; a page returning "ok" indicates correct configuration. 4. Data collection plan should include: The data integration method: Client SDK, Server SDK, data import tool, or a combination of several; The content and triggering timing of the data to be integrated. | | | | | | | | | | | |
33
+ | | | For the integration methods above, choose according to your actual business situation. If you have any questions, contact ThinkingData service personnel for assistance with selection. | | | | | | | | | | | | | |
34
+ | | | Key points to focus on: the following items directly affect tracking availability, please pay attention | | | | | | | | | | | | | |
35
+ | | | Data type design principles: the property type within the TA analytics system is determined by the type at the first ingestion of that property, so it is recommended to confirm the type of related properties when tracking to avoid subsequent modification and migration | | | | | | | Data Type Design Principles | | | | | | |
36
+ | | | If you want to integrate both server-side and client-side data, please refer to the document on the right | | | | | | | Multi-end Integration Notes | | | | | | |
37
+ | | | If multiple user ID systems need attention in the project, such as role id, account id, device id, etc., it is recommended to prioritize sorting out the user id strategy before tracking | | | | | | | Tracking Recommendations for Multi-User-ID Systems | | | | | | |
38
+ | | | Common event properties are properties that all (or most) events have. If you use the client SDK to upload data, note that after the user logs out, you need to manually clear the currently set common event properties | | | | | | | How to Set Common Event Properties | | | | | | |
39
+
40
+
41
+ ## #User ID System
42
+
43
+ | Game Type | Property Name | Property Display Name | Property Description | Assignment Description | | | | | | |
44
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
45
+ | Single account, single role | #account_id | Account ID | System property | Set to the player account ID | | | | | | |
46
+ | | #distinct_id | Visitor ID | System property | Device-related id or visitor id within the business; if using the client SDK, no need to worry about it | | | | | | |
47
+ | Single account, multiple roles | #account_id | Account ID | System property | Set to the role id; the account id the role belongs to is set as a custom property of the role | | | | | | |
48
+ | | #distinct_id | Visitor ID | System property | Device-related id or visitor id within the business; if using the client SDK, no need to worry about it | | | | | | |
49
+
50
+
51
+ ## #Event Data
52
+
53
+ | Event Name (required) | Event Display Name | Event Description | Event Tag | Property Name (required) | Property Display Name | Property Type (required) | Property Description |
54
+ | --- | --- | --- | --- | --- | --- | --- | --- |
55
+ | ta_app_install | App Install | | Basic Event | | | | |
56
+ | ta_app_start | App Start | | Basic Event | | | | |
57
+ | ta_app_end | App Close | | Basic Event | | | | |
58
+ | ta_app_crash | App Crash | | Basic Event | | | | |
59
+ | new_device | Device Activation | Reported via first-event when the device is first started | Basic Event | | | | |
60
+ | register | User Registration | Reported after user registers an account | Basic Event | register_type | Registration method | text | |
61
+ | login | User Login | Reported after user logs in | Basic Event | | | | |
62
+ | logout | User Logout | Reported after user logs out | Basic Event | | | | |
63
+ | create_role | Create Role | Reported after user creates a role | Basic Event | is_roll | Is server-migrated role | bool | |
64
+ | role_login | Role Login | Reported after user logs into a role | Basic Event | | | | |
65
+ | role_logout | Role Logout | Reported after user logs out of a role | Basic Event | #duration | Online duration | number | |
66
+ | guide_complete | Complete New Player Guide | Reported each time a step of the new player guide is completed | | guide_id | Guide category | text | |
67
+ | | | | | guide_step | Guide step | number | |
68
+ | current_online | Online Users | Reported once per specific time interval; interval can be 1 min, 5 min, 1 hour, etc. Set #distinct_id to a fixed value that does not conflict with player ids | Basic Event | online_user | Online users count | number | |
69
+ | | | | | server_id | Server ID | number | |
70
+ | rank | Leaderboard | Reported once per specific time interval. Set #distinct_id to a fixed value that does not conflict with player ids | | rank_type | Leaderboard type | text | |
71
+ | | | | | rank_sub_type | Leaderboard subtype | text | |
72
+ | | | | | server_id | Server ID | text | |
73
+ | | | | | rank_info | Ranking info | object group | Example: "rank_info": [{"id":"1000125","rank":1,"score":12000},{"id":"1000236","rank":2,"score":11005}] |
74
+ | | | | | rank_info.id | Player ID | text | |
75
+ | | | | | rank_info.rank | Rank | number | |
76
+ | | | | | rank_info.score | Score | number | |
77
+ | level_up | Role Level Up | Recorded when the role levels up | Basic Event | level | Level after level up | number | Player's level when the event occurred |
78
+ | | | | | level_before | Level before level up | number | |
79
+ | vip_levelup | VIP Level Up | Reported when the role's VIP level is raised | Basic Event | vip_level | VIP level after level up | number | Player's VIP level when the event occurred |
80
+ | | | | | vip_level_before | VIP level before level up | number | |
81
+ | init_order | Initiate Recharge | Reported when a recharge is initiated | | order_id | Order ID | text | |
82
+ | | | | | pay_amount | Payment amount | number | |
83
+ | | | | | currency_type | Payment currency | text | To use the [FX integration] feature, must conform to ISO 4217 (e.g., CNY, USD, EUR) |
84
+ | | | | | payment_name | Purchased item name | text | |
85
+ | | | | | payment_num | Purchased quantity | number | |
86
+ | | | | | payment_type | Payment method | text | Alipay/WeChat |
87
+ | payment | Recharge Success | Reported when recharge succeeds | | order_id | Order ID | text | |
88
+ | | | | | pay_amount | Payment amount | number | |
89
+ | | | | | currency_type | Payment currency | text | To use the [FX integration] feature, must conform to ISO 4217 (e.g., CNY, USD, EUR) |
90
+ | | | | | payment_name | Purchased item name | text | |
91
+ | | | | | payment_num | Purchased quantity | number | |
92
+ | | | | | payment_type | Payment method | text | Alipay/WeChat |
93
+ | | | | | is_first | Is first time | bool | Yes/No |
94
+ | payment_fail | Recharge Fail | Reported when recharge fails | | order_id | Order ID | text | |
95
+ | | | | | pay_amount | Payment amount | number | |
96
+ | | | | | currency_type | Payment currency | text | To use the [FX integration] feature, must conform to ISO 4217 (e.g., CNY, USD, EUR) |
97
+ | | | | | payment_name | Purchased item name | text | |
98
+ | | | | | payment_num | Purchased quantity | number | |
99
+ | | | | | payment_type | Payment method | text | Alipay/WeChat |
100
+ | | | | | fail_reason | Failure reason | text | |
101
+ | activity_attend | Attend Activity | Reported after attending an activity | Task and Activity | activity_type | Activity type | text | New player activity, etc. |
102
+ | | | | | activity_id | Activity ID | text | |
103
+ | | | | | activity_name | Activity name | text | |
104
+ | task_complete | Complete Task | Reported after completing a task | Task and Activity | task_type | Task type | text | |
105
+ | | | | | task_id | Task ID | text | |
106
+ | | | | | task_name | Task name | text | |
107
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [{"item_id":"1","item_num":100},{"item_id":"2","item_num":200}] |
108
+ | | | | | get_item_info.item_id | Item ID | text | |
109
+ | | | | | get_item_info.item_num | Item quantity | number | |
110
+ | achievement_finish | Achievement Finished | Reported after achieving an achievement | Task and Activity | achievement_type | Achievement type | text | |
111
+ | | | | | achievement_id | Achievement ID | text | |
112
+ | | | | | achievement_name | Achievement name | text | |
113
+ | battle_start | Battle Start | Reported after starting a battle | Gameplay | battle_type | Battle type | text | Main storyline, dungeon |
114
+ | | | | | main_id | Stage ID | text | |
115
+ | | | | | battle_id | Battle ID | text | |
116
+ | | | | | is_first | Is first time | bool | |
117
+ | | | | | total_power | Total battle power | number | |
118
+ | | | | | hero_info | Our hero info | object group | Example: "hero_info": [ {"index":"1",hero_id":"1","hero_level":100,"hero_star":4,"hero_quality":"Purple+2","hero_equipment_list":["Sword","Shield"],"hero_power":500}, {"index":"2","hero_id":"2","hero_level":200,"hero_star":3,"hero_quality":"Purple+1","hero_equipment_list":["Staff"],"hero_power":400} ] |
119
+ | | | | | hero_info.index | Our hero lineup position | text | |
120
+ | | | | | hero_info.hero_id | Our hero ID | text | |
121
+ | | | | | hero_info.hero_level | Our hero level | number | |
122
+ | | | | | hero_info.hero_star | Our hero star | number | |
123
+ | | | | | hero_info.hero_power | Our hero power | number | |
124
+ | | | | | hero_info.hero_equipment_list | Our hero equipment list | list | |
125
+ | battle_win | Battle Win | Reported after winning a battle | Gameplay | battle_type | Battle type | text | |
126
+ | | | | | main_id | Stage ID | text | |
127
+ | | | | | battle_id | Battle ID | text | |
128
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [ {"item_id":"1","item_num":100},{"item_id":"2","item_num":200} ] |
129
+ | | | | | get_item_info.item_id | Item ID | text | |
130
+ | | | | | get_item_info.item_num | Item quantity | number | |
131
+ | | | | | duration | Duration | number | |
132
+ | | | | | result | Battle result | text | |
133
+ | | | | | is_first | Is first time | bool | |
134
+ | | | | | total_power | Total battle power | number | |
135
+ | | | | | hero_info | Our hero info | object group | Example: "hero_info": [ {"index":"1",hero_id":"1","hero_level":100,"hero_star":4,"hero_quality":"Purple+2","hero_equipment_list":["Sword","Shield"],"hero_power":500}, {"index":"2","hero_id":"2","hero_level":200,"hero_star":3,"hero_quality":"Purple+1","hero_equipment_list":["Staff"],"hero_power":400} ] |
136
+ | | | | | hero_info.index | Our hero lineup position | text | |
137
+ | | | | | hero_info.hero_id | Our hero ID | text | |
138
+ | | | | | hero_info.hero_level | Our hero level | number | |
139
+ | | | | | hero_info.hero_star | Our hero star | number | |
140
+ | | | | | hero_info.hero_power | Our hero power | number | |
141
+ | | | | | hero_info.hero_equipment_list | Our hero equipment list | list | |
142
+ | battle_fail | Battle Fail | Reported after losing a battle | Gameplay | battle_type | Battle type | text | |
143
+ | | | | | main_id | Stage ID | text | |
144
+ | | | | | battle_id | Battle ID | text | |
145
+ | | | | | duration | Duration | number | |
146
+ | | | | | result | Battle result | text | |
147
+ | | | | | fail_reason | Failure reason | text | |
148
+ | | | | | is_first | Is first time | bool | |
149
+ | | | | | total_power | Total battle power | number | |
150
+ | | | | | hero_info | Our hero info | object group | Example: "hero_info": [ {"index":"1",hero_id":"1","hero_level":100,"hero_star":4,"hero_quality":"Purple+2","hero_equipment_list":["Sword","Shield"],"hero_power":500}, {"index":"2","hero_id":"2","hero_level":200,"hero_star":3,"hero_quality":"Purple+1","hero_equipment_list":["Staff"],"hero_power":400} ] |
151
+ | | | | | hero_info.index | Our hero lineup position | text | |
152
+ | | | | | hero_info.hero_id | Our hero ID | text | |
153
+ | | | | | hero_info.hero_level | Our hero level | number | |
154
+ | | | | | hero_info.hero_star | Our hero star | number | |
155
+ | | | | | hero_info.hero_power | Our hero power | number | |
156
+ | | | | | hero_info.hero_equipment_list | Our hero equipment list | list | |
157
+ | mopping_up | Game Sweep | Reported after game sweep | Gameplay | battle_type | Battle type | text | |
158
+ | | | | | main_id | Stage ID | text | |
159
+ | | | | | battle_id | Battle ID | text | |
160
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [{"item_id":"1","item_num":100},{"item_id":"2","item_num":200}] |
161
+ | | | | | get_item_info.item_id | Item ID | text | |
162
+ | | | | | get_item_info.item_num | Item quantity | number | |
163
+ | | | | | mop_num | Sweep count | number | |
164
+ | | | | | cost_type | Consumed currency type | text | |
165
+ | | | | | cost_amount | Consumed currency amount | number | |
166
+ | tower_challenge_start | Tower Climb Start | Reported after starting tower climb gameplay | Gameplay | tower_level_id | Tower stage ID | text | |
167
+ | skill_choose | Skill Choice | Reported after choosing a skill | Gameplay | skill_id | Skill ID | text | |
168
+ | | | | | choosed_skill_list | Chosen skill list | list | |
169
+ | tower_battle_end | Tower Battle End | Reported after a single-floor battle ends | Gameplay | tower_level_id | Tower stage ID | text | |
170
+ | | | | | is_success | Is win | bool | |
171
+ | | | | | choosed_skill_list | Chosen skill list | list | |
172
+ | | | | | hero_info | Our hero info | object group | Example: "hero_info": [ {"index":"1",hero_id":"1","hero_level":100,"hero_star":4,"hero_quality":"Purple+2","hero_equipment_list":["Sword","Shield"],"hero_power":500}, {"index":"2","hero_id":"2","hero_level":200,"hero_star":3,"hero_quality":"Purple+1","hero_equipment_list":["Staff"],"hero_power":400} ] |
173
+ | | | | | hero_info.index | Our hero lineup position | text | |
174
+ | | | | | hero_info.hero_id | Our hero ID | text | |
175
+ | | | | | hero_info.hero_level | Our hero level | number | |
176
+ | | | | | hero_info.hero_star | Our hero star | number | |
177
+ | | | | | hero_info.hero_power | Our hero power | number | |
178
+ | | | | | hero_info.hero_equipment_list | Our hero equipment list | list | |
179
+ | | | | | duration | Duration | number | |
180
+ | tower_challenge_end | Tower Challenge End | Reported after tower climb challenge ends | Gameplay | final_tower_level_id | Final tower stage ID | text | |
181
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [{"item_id":"1","item_num":100},{"item_id":"2","item_num":200}] |
182
+ | | | | | get_item_info.item_id | Item ID | text | |
183
+ | | | | | get_item_info.item_num | Item quantity | number | |
184
+ | | | | | choosed_skill_list | Chosen skill list | list | |
185
+ | | | | | hero_info | Our hero info | object group | Example: "hero_info": [ {"index":"1",hero_id":"1","hero_level":100,"hero_star":4,"hero_quality":"Purple+2","hero_equipment_list":["Sword","Shield"],"hero_power":500}, {"index":"2","hero_id":"2","hero_level":200,"hero_star":3,"hero_quality":"Purple+1","hero_equipment_list":["Staff"],"hero_power":400} ] |
186
+ | | | | | hero_info.index | Our hero lineup position | text | |
187
+ | | | | | hero_info.hero_id | Our hero ID | text | |
188
+ | | | | | hero_info.hero_level | Our hero level | number | |
189
+ | | | | | hero_info.hero_star | Our hero star | number | |
190
+ | | | | | hero_info.hero_power | Our hero power | number | |
191
+ | | | | | hero_info.hero_equipment_list | Our hero equipment list | list | |
192
+ | | | | | duration | Duration | number | |
193
+ | attend_arena | Attend Arena | Reported after an arena battle ends | Gameplay | battle_type | Battle type | text | |
194
+ | | | | | rival_id | Rival ID | text | |
195
+ | | | | | rival_power | Rival power | number | |
196
+ | | | | | total_power | Total battle power | number | |
197
+ | | | | | before_rival_rank | Current rival rank | number | |
198
+ | | | | | before_rival_score | Current rival score | number | |
199
+ | | | | | is_bot | Is bot | bool | Yes/No |
200
+ | | | | | before_arena_rank | Current our rank | number | |
201
+ | | | | | before_arena_score | Current our score | number | |
202
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [ {"item_id":"1","item_num":100},{"item_id":"2","item_num":200} ] |
203
+ | | | | | get_item_info.item_id | Item ID | text | |
204
+ | | | | | get_item_info.item_num | Item quantity | number | |
205
+ | | | | | hero_info | Our hero info | object group | Example: "hero_info": [ {"index":"1",hero_id":"1","hero_level":100,"hero_star":4,"hero_quality":"Purple+2","hero_equipment_list":["Sword","Shield"],"hero_power":500}, {"index":"2","hero_id":"2","hero_level":200,"hero_star":3,"hero_quality":"Purple+1","hero_equipment_list":["Staff"],"hero_power":400} ] |
206
+ | | | | | hero_info.index | Our hero lineup position | text | |
207
+ | | | | | hero_info.hero_id | Our hero ID | text | |
208
+ | | | | | hero_info.hero_level | Our hero level | number | |
209
+ | | | | | hero_info.hero_star | Our hero star | number | |
210
+ | | | | | hero_info.hero_power | Our hero power | number | |
211
+ | | | | | hero_info.hero_equipment_list | Our hero equipment list | list | |
212
+ | | | | | rival_info | Rival hero info | object group | Example: "rival_info": [ {"index":"1",hero_id":"1","hero_level":100,"hero_star":4,"hero_quality":"Purple+2","hero_equipment_list":["Sword","Shield"],"hero_power":500}, {"index":"2","hero_id":"2","hero_level":200,"hero_star":3,"hero_quality":"Purple+1","hero_equipment_list":["Staff"],"hero_power":400} ] |
213
+ | | | | | rival_info.index | Rival hero position | text | |
214
+ | | | | | rival_info.hero_id | Rival hero ID | text | |
215
+ | | | | | rival_info.hero_level | Rival hero level | number | |
216
+ | | | | | rival_info.hero_star | Rival hero star | number | |
217
+ | | | | | rival_info.hero_power | Rival hero power | number | |
218
+ | | | | | rival_info.hero_equipment_list | Rival hero equipment list | list | |
219
+ | | | | | duration | Duration | number | |
220
+ | | | | | result | Battle result | text | Win, lose, etc. |
221
+ | | | | | rival_rank | Rival rank | number | Rival rank after battle |
222
+ | | | | | arena_rank | Our rank | number | Our rank after battle |
223
+ | | | | | rival_score | Rival score | number | Rival score after battle |
224
+ | | | | | arena_score | Our score | number | Our score after battle |
225
+ | hero_starup | Hero Star Up | Reported after hero star up | Hero Progression | hero_id | Hero ID | number | |
226
+ | | | | | hero_level | Hero level | number | |
227
+ | | | | | hero_star | Hero star | number | |
228
+ | | | | | hero_power | Hero power | number | |
229
+ | hero_levelup | Hero Level Up | Reported after hero levels up | Hero Progression | hero_id | Hero ID | number | |
230
+ | | | | | hero_level | Hero level | number | |
231
+ | | | | | hero_star | Hero star | number | |
232
+ | | | | | hero_power | Hero power | number | |
233
+ | hero_skill_levelup | Hero Skill Level Up | Reported after hero skill levels up | Hero Progression | hero_id | Hero ID | number | |
234
+ | | | | | hero_level | Hero level | number | |
235
+ | | | | | hero_star | Hero star | number | |
236
+ | | | | | hero_skill_id | Hero skill ID | number | |
237
+ | | | | | hero_skill_level | Hero skill level | number | |
238
+ | | | | | hero_power | Hero power | number | |
239
+ | shop_buy | Shop Purchase | Reported after shop purchase | Resource | cost_amount | Total currency consumed | number | |
240
+ | | | | | cost_type | Consumed currency type | text | |
241
+ | | | | | shop_id | Shop ID | text | |
242
+ | | | | | item_num | Item quantity | number | |
243
+ | | | | | item_id | Item ID | number | |
244
+ | draw_card | Gacha Event | Reported when gacha completes | Resource | pond_id | Card pool ID | text | |
245
+ | | | | | draw_type | Gacha type | text | Single pull / ten pull |
246
+ | | | | | draw_num | Gacha count | number | Single pull=1, ten pull=10 |
247
+ | | | | | card_list | Card list | list | List of cards obtained from gacha |
248
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [{"item_id":"1","item_num":100},{"item_id":"2","item_num":200}] |
249
+ | | | | | get_item_info.item_id | Item ID | text | |
250
+ | | | | | get_item_info.item_num | Item quantity | number | |
251
+ | item_get | Item Get | Reported when an item is produced | Resource | resource_info | Asset info | object group | Example: "resource_info": [ {"item_id":"1001","item_type":"1","change_num":100,"after_num":"540"}, {"item_id":"5","item_type":"2","change_num":10,"after_num":"70"} ] |
252
+ | | | | | resource_info.item_id | Resource ID | text | |
253
+ | | | | | resource_info.item_type | Item type | text | |
254
+ | | | | | resource_info.change_num | Change amount | number | |
255
+ | | | | | resource_info.after_num | Amount after change | number | |
256
+ | | | | | change_reason | Change reason | text | |
257
+ | item_consume | Item Consume | Reported when an item is consumed | Resource | resource_info | Asset info | object group | Example: "resource_info": [ {"item_id":"1001","item_type":"1","change_num":100,"after_num":"540"}, {"item_id":"5","item_type":"2","change_num":10,"after_num":"70"} ] |
258
+ | | | | | resource_info.item_id | Resource ID | text | |
259
+ | | | | | resource_info.item_type | Item type | text | |
260
+ | | | | | resource_info.change_num | Change amount | number | |
261
+ | | | | | resource_info.after_num | Amount after change | number | |
262
+ | | | | | change_reason | Change reason | text | |
263
+ | token_consume | Currency Consume | Reported when currency is consumed | Resource | token_id | Currency ID | text | |
264
+ | | | | | change_reason | Change reason | text | |
265
+ | | | | | token_change_after | Currency before change | number | |
266
+ | | | | | token_change_before | Currency after change | number | |
267
+ | | | | | token_consume_amount | Currency consumed amount | number | |
268
+ | token_get | Currency Get | Reported when currency is obtained | Resource | token_id | Currency ID | text | |
269
+ | | | | | change_reason | Change reason | text | |
270
+ | | | | | token_change_after | Currency before change | number | |
271
+ | | | | | token_change_before | Currency after change | number | |
272
+ | | | | | token_get_amount | Currency obtained amount | number | |
273
+ | guild_create | Create Guild | Reported after creating a guild | Social | guild_id | Guild ID | text | |
274
+ | | | | | guild_name | Guild name | text | |
275
+ | guild_join | Join Guild | Reported after joining a guild | Social | guild_id | Guild ID | text | |
276
+ | | | | | guild_name | Guild name | text | |
277
+ | guild_game | Attend Guild Gameplay | Reported after completing guild gameplay | Social | guild_id | Guild ID | text | |
278
+ | | | | | guild_name | Guild name | text | |
279
+ | | | | | activity_type | Activity type | text | |
280
+ | guild_leave | Leave Guild | Reported when leaving a guild | Social | guild_id | Guild ID | text | |
281
+ | | | | | guild_name | Guild name | text | |
282
+ | dissolve_guild | Dissolve Guild | Reported when dissolving a guild | Social | guild_id | Guild ID | text | |
283
+ | | | | | guild_name | Guild name | text | |
284
+ | share | Game Share | Reported when player clicks share button | Social | share_id | Share position | text | |
285
+ | apply_friend | Friend Request | Reported when sending a friend request | Social | friend_id | Friend ID | text | |
286
+ | | | | | apply_friend_type | Friend request type | text | |
287
+ | add_friend | Add Friend | Reported when a friend request is accepted | Social | friend_id | Friend ID | text | |
288
+ | delete_friend | Delete Friend | Reported when deleting a friend | Social | friend_id | Friend ID | text | |
289
+ | chat | Chat | Reported during chat, channel/room/private, etc. | Social | channel_id | Channel ID | text | |
290
+ | | | | | room_id | Room ID | text | |
291
+ | | | | | target_player_id | Target player ID | text | |
292
+ | | | | | chat_content | Chat content | text | |
293
+ | | | | | hold_up | Whether matched violation keyword library | text | Muted, normal, fraud lexicon, obscene lexicon, political lexicon, etc. Record according to actual situation |
294
+ | give_gift | Give Gift | Reported when giving a gift | Social | friend_id | Friend ID | text | |
295
+ | | | | | gift_id | Gift ID | text | |
296
+ | receive_gift | Receive Gift | Reported when clicking to receive a gift | Social | friend_id | Friend ID | text | |
297
+ | | | | | gift_id | Gift ID | text | |
298
+ | get_email_reward | Get Email Reward | Reported when claiming email reward | System | email_subject | Email subject | text | |
299
+ | | | | | email_content | Email content | text | |
300
+ | | | | | send_time | Send time | time | |
301
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [ {"item_id":"1","item_num":100},{"item_id":"2","item_num":200} ] |
302
+ | | | | | get_item_info.item_id | Item ID | text | |
303
+ | | | | | get_item_info.item_num | Item quantity | number | |
304
+ | exchange_code | Redeem Exchange Code | Recorded when clicking redeem | System | code_type | Exchange code type | text | |
305
+ | | | | | code | Exchange code | text | Single-use code, multi-use code, etc. |
306
+ | | | | | return | Redemption result | text | Redeemed successfully, already used, etc. |
307
+ | | | | | get_item_info | Item details received | object group | Example: "get_item_info": [ {"item_id":"1","item_num":100},{"item_id":"2","item_num":200} ] |
308
+ | | | | | get_item_info.item_id | Item ID | text | |
309
+ | | | | | get_item_info.item_num | Item quantity | number | |
310
+
311
+
312
+ ## #Common Event Properties
313
+
314
+ | Property Name (required) | Property Display Name | Property Type (required) | Property Description |
315
+ | --- | --- | --- | --- |
316
+ | channel | Channel | text | e.g. taptap, appstore |
317
+ | account | Game account | text | |
318
+ | server_id | Server | text | |
319
+ | nick_name | Nickname | text | |
320
+ | tmp_level | Current level | number | |
321
+ | tmp_vip_level | Current VIP level | text | |
322
+ | tmp_main_id | Current main storyline stage progress | text | |
323
+ | tmp_power | Current battle power | number | |
324
+ | tmp_guild | Current guild | text | |
325
+ | tmp_diamond | Current diamond | number | |
326
+ | tmp_gold | Current gold | number | |
327
+
328
+
329
+ ## #User Data
330
+
331
+ | Property Name (required) | Property Display Name | Property Type (required) | Update Method | Property Description | Property Tag |
332
+ | --- | --- | --- | --- | --- | --- |
333
+ | channel | Source channel | string | user_setOnce | Set at game start/registration, uploads user channel info (e.g. app store, Tencent MyApp) | |
334
+ | account | Account | text | user_setOnce | Recorded on registration | |
335
+ | server_id | Server ID | text | user_setOnce | Recorded on role creation | |
336
+ | current_level | Current level | number | user_set | Reported when player level changes | |
337
+ | current_vip_level | Current VIP level | number | user_set | Reported when player VIP level changes | |
338
+ | current_diamond | Current diamond | number | user_set | Reported when player diamond changes | |
339
+ | current_gold | Current gold | number | user_set | Reported when player gold changes | |
340
+ | is_roll | Is server-migrated role | bool | user_setOnce | Reported on role creation | |
341
+ | first_pay_time | First payment time | time | user_setOnce | Reported on first payment | |
342
+ | guild_id | Current guild ID | text | user_set | Reported on guild change | |
343
+ | last_login_time | Last login time | time | user_set | Reported on each login | |
344
+ | current_main_id | Current main storyline stage progress | text | user_set | Recorded each time a new main storyline stage is cleared | |
345
+ | register_time | User add time | time | user_setOnce | Set when account or role is added | |
346
+ | total_pay_amount | Total payment amount | number | user_add | Reported on each recharge | |
347
+ | hero_info | Hero/general/card details | object group | user_set | Set on each login/logout | |
348
+ | hero_info.hero_id | Hero ID | text | | | |
349
+ | hero_info.hero_level | Hero level | number | | | |
350
+ | hero_info.hero_star | Hero star | number | | | |
351
+ | hero_info.hero_power | Hero power | number | | | |
352
+ | hero_info.hero_equipment_list | Hero equipment list | list | | | |
353
+ | bag_info | Bag details | object group | user_set | Set on each login/logout | |
354
+ | bag_info.item_id | Bag item ID | text | | | |
355
+ | bag_info.item_num | Bag item quantity | number | | | |
356
+
357
+
358
+ ## Data Type Design Principles
359
+
360
+ | | The TA system currently supports the following data types. The type of a field in the system is determined at the time of first import, so it is recommended to carefully confirm the type of related fields when tracking | | | | |
361
+ | --- | --- | --- | --- | --- | --- |
362
+ | | TA Data Type | Example Values | Value Description | JSON Data Type | Recommended Scenarios |
363
+ | | number | 123, 1.23 | Range: -9E15 to 9E15 | Number | 1. Properties that involve numeric operations (sum, median, mean, etc.), such as recharge amount, consumed diamonds, clear time (seconds), level, etc. 2. ID-related properties where the sequence of IDs correlates positively with numeric size, such as stage id, server id, etc. If these ids are not pure numbers, treat as string. 3. Continuing above, for user-related ids such as role id, even if composed of all digits, they have no numeric meaning in themselves and may have many digits; it is recommended to treat as string. |
364
+ | | string | "ABC", "Shanghai" | Default character limit is 2KB | String | For any property not suited to other types, consider using the string type, including some complex types TA currently doesn't support, such as map type |
365
+ | | time | "2019-01-01 00:00:00", "2019-01-01 00:00:00.000" | "yyyy-MM-dd HH:mm:ss.SSS" or "yyyy-MM-dd HH:mm:ss"; to represent a date, use "yyyy-MM-dd 00:00:00" | String | Such as registration time, first recharge time, monthly card expiration time, etc. |
366
+ | | bool | true, false | - | Boolean | Such as is first stage clear, is paid user, etc. |
367
+ | | list | ["a", "1", "true"] | All elements in the list will be converted to string type | Array | Such as participating card ids ["Guan Yu", "Zhang Fei", "Zhao Yun"], user tags ["high-value user", "potentially churning user"] |
368
+ | | object | {"item_name":"Hero fragment","item_num":5} | Must comply with sub-property value rules; e.g., if a sub-property is a string, its value must comply with the default 2KB character limit | Object | / |
369
+ | | object group | [ {"item_name":"Hero fragment","item_num":5}, {"item_name":"Skin fragment","item_num":2}, {"item_name":"Honor points","item_num":10} ] | Must comply with sub-property value rules; e.g., if a sub-property is a string, its value must comply with the default 2KB character limit | Array(Object) | For example, when multiple characters are deployed in a battle, an object type property can contain multiple different sub-properties to describe a hero's name, star, power, etc. The object group type can express multiple object types in array form in a single field to describe the entire deployed lineup. |
370
+
371
+
372
+ ## How to Set Common Event Properties
373
+
374
+ | | Common event properties are properties that all (or most) events have | | | | | | | | | | | | | |
375
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
376
+ | | When uploading data using the Server SDK or data import tool, manually set the user's common event properties. When uploading data using the Client SDK: for common properties that will change, such as level, current max stage, etc., it is recommended to use the "dynamic common property" approach to ensure the correctness of property values at upload time. Common event properties are saved to the cache; there is no need to call them each time the App starts. If setSuperProperties: is called to set a common event property that has already been set, it will overwrite the previous property. If a common event property has the same key as a property uploaded via track:properties:, that event's property will override the common event property. Note: after a user logs out, besides calling the logout method, you may also need to clear the currently set common event properties that depend on the account; to remove a specific common event property, call the unsetSuperProperty method; to clear all common event properties, call clearSuperProperties. Android SDK setup: https://doc.thinkingdata.cn/tdamanual/installation/android_sdk_installation.html#b%E8%AE%BE%E7%BD%AE%E5%85%AC%E5%85%B1%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7 iOS SDK setup: https://doc.thinkingdata.cn/tdamanual/installation/ios_sdk_installation.html#b-%E8%AE%BE%E7%BD%AE%E5%85%AC%E5%85%B1%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7 JS SDK setup: https://doc.thinkingdata.cn/tdamanual/installation/javascript_sdk_installation.html#c-%E8%AE%BE%E7%BD%AE%E5%85%AC%E5%85%B1%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7 Unity SDK setup: https://doc.thinkingdata.cn/tdamanual/installation/unity_sdk_installation.html#33-%E8%AE%BE%E7%BD%AE%E5%8A%A8%E6%80%81%E5%85%AC%E5%85%B1%E5%B1%9E%E6%80%A7 Flutter SDK setup: https://doc.thinkingdata.cn/tdamanual/installation/flutter_sdk_installation.html#32-%E8%AE%BE%E7%BD%AE%E5%85%AC%E5%85%B1%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7 Mini Program / Mini Game SDK setup: https://doc.thinkingdata.cn/tdamanual/installation/mp_sdk_installation.html#332-%E8%AE%BE%E7%BD%AE%E5%8A%A8%E6%80%81%E5%85%AC%E5%85%B1%E5%B1%9E%E6%80%A7 | | | | | | | | | | | | | |
377
+
378
+
379
+ ## Multi-end Integration Notes
380
+
381
+ | | The TA system supports data integration from multiple ends, such as the client, server, and third-party data, and can integrate multi-end data into one project to solve the data silo problem. There are a few considerations during the process; please pay attention before integration |
382
+ | --- | --- |
383
+ | | 1. User ID matching: During multi-end data integration (taking server + client as an example), we need to ensure that a user's data from multiple ends can be accurately associated. This involves the user ID association issue. Generally, client data tends to use the device ID while the server uses the account ID to mark users. When data from both ends is imported into the system according to the above logic, the two IDs follow different naming rules, which causes two new users to be created on receipt, so the multi-end behaviors of the same user cannot be associated. Based on the TA system's user identification rules, it is recommended to design user IDs when tracking as follows: a. Record only user behaviors after login, because after login the account ID exists; regardless of whether the data is from client or server, set #account_id to the account ID to complete the association of multi-end user behavior. b. Users will also generate behavior without being logged in, and if the business cares about these, TA supports association between visitor behavior and login behavior. However, because during multi-end tracking the order in which data arrives from different tracking ends cannot theoretically be guaranteed, special design is needed: set #account_id to the business id after login (such as account id/role id), and set #distinct_id to a device-based id (such as device id, custom visitor id, etc.). Regardless of whether the data is client or server, ensure #distinct_id always has a value. Since the server has definitely communicated with the client when it generates data, you can pass back the device id of the user (the client's #distinct_id) to the server for assignment when the server triggers tracking data. |
384
+ | | 2. Time ordering issues: During multi-end tracking, time across different ends may be inconsistent. For example, client tracking takes the local time, while the server takes the server time. Due to time differences across ends, data that factually has a sequential relationship may become ordered incorrectly when it ultimately lands as data because it was generated on client and server separately—for example, Initiate Recharge (client) later than Recharge Success (server). For the above cases, besides recommending to track consecutive events on one end, we also recommend the following solutions: a. No multi-timezone issue: it is recommended that the client, at initialization, request the current server time from the server and use that as the standard time for client data collection, avoiding client-server time differences. In addition, if the server involves multiple machines, there may be clock drift between servers themselves; you can use clock-sync components to synchronize time. b. Client cross-timezone issue: in such scenarios, the client and server may be in different timezones, causing time inconsistency when both ends collect data. In such cases, if analysis across timezones is sensitive, it is recommended that server data follows the client's timezone, i.e., the server tries to obtain the client's timezone and set the #time field to the current timestamp in that timezone. |
385
+ | | 3. Design of events and common event properties: Unless there is a special need, it is not recommended that multiple ends collect events with the same meaning simultaneously, to avoid data redundancy. For common event properties, such as level, channel, server, etc., it is recommended to include them on all ends; if only one end sets these common event properties, the TA system will not automatically fill in the gaps, leading to property misalignment in subsequent analyses. |
386
+
387
+
388
+ ## Tracking Recommendations for Multi-User-ID Systems
389
+
390
+ | | In game analysis scenarios, users often need to be analyzed from multiple angles, such as role, account, device, or some third-party ID. Therefore, the design of IDs directly affects subsequent use of the TA system | | | | | | | |
391
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- |
392
+ | | The following uses 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 communicate with ThinkingData service personnel | | | | | | | |
393
+ | | Suppose the current project has the following ID system: role id, account id, device-related id (including device id or some third-party device-based id such as adjust_id) | | | | | | | |
394
+ | | In the TA system, #account_id is used as the primary standard for identifying a single user; different #account_id values must correspond to different #user_id values, and #user_id is the basis for user identification in the TA system | | | | | | | |
395
+ | | It is generally recommended to use the smallest indivisible business id as #account_id—in the above scenario, the role id—and to use a device-related id as #distinct_id, such as device id, the visitor id generated by the ThinkingData client SDK, or a custom visitor id | | | | | | | |
396
+ | | Other ids are recommended to be recorded as common event properties (such as device id if it has a many-to-many relationship with roles) or user properties. Based on the above logic, the recommended tracking is as follows (the visitor id below is the default visitor id of the ThinkingData client SDK; it can be custom-set in actual scenarios) | | | | | | | |
397
+ | | #account_id | #distinct_id | account id (custom property) | device id (custom property) | other ids (custom property) | | | |
398
+ | | role id | visitor id | account id | device id | platform id, adjust_id, etc. | | | |
399
+ | | Of course, in actual tracking, some ids may not exist; for example, at device activation there is no role id, in which case you can leave it blank. However, the visitor id should theoretically always exist in any scenario | | | | | | | |
400
+ | | The following uses actual business scenarios to illustrate the id settings for each scenario | | | | | | | |
401
+ | | Tracking scenario | #account_id | #distinct_id | account id (custom property) | device id (custom property) | | | |
402
+ | | Device activation | - | visitor id1 | - | device id1 | | | |
403
+ | | Account registration | - | visitor id1 | account id1 | device id1 | | | |
404
+ | | Role creation | role id1 | visitor id1 | account id1 | device id1 | | | |
405
+ | | Battle start | role id1 | visitor id1 | account id1 | device id1 | | | |
406
+ | | Therefore, overall, follow the logic of "fill in when present, leave empty when absent." Based on the above tracking, data from before and after user login can be associated, and the TA system will also provide the corresponding functionality | | | | | | | |
407
+ | | Analyze users from different angles, such as device retention, account funnel conversion, etc. | | | | | | | |