@thinkingai/ae-cli 6.1.37 → 6.1.39

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 (191) hide show
  1. package/README.md +3 -1
  2. package/README.zh.md +3 -1
  3. package/cli-installation-guide.md +1 -2
  4. package/dist/{ai-monitor-YKNYBHN2.js → ai-monitor-DST4NDOK.js} +5 -5
  5. package/dist/ai-monitor.js +7 -7
  6. package/dist/{auth-FXRGFG37.js → auth-BD3NIY3T.js} +3 -3
  7. package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
  8. package/dist/{capability-GM7CH2LZ.js → capability-3NJOQHZQ.js} +3 -3
  9. package/dist/{chunk-46V4ZF7E.js → chunk-24DCOJBJ.js} +2 -2
  10. package/dist/{chunk-SHB7A2JE.js → chunk-2RORKIF6.js} +2 -2
  11. package/dist/{chunk-HBI7IQH3.js → chunk-6NJZSWUT.js} +3 -28
  12. package/dist/{chunk-QPUPWGZ3.js → chunk-DTODOQ6T.js} +1 -1
  13. package/dist/{chunk-EFGZFFSO.js → chunk-FRJUB66C.js} +1 -1
  14. package/dist/{chunk-OFOPYKYM.js → chunk-IY5G42YY.js} +2 -2
  15. package/dist/{chunk-NBXQSPXL.js → chunk-KBJHBVO7.js} +1 -1
  16. package/dist/{chunk-CYZV5AXW.js → chunk-KE5WGBXS.js} +2 -1
  17. package/dist/chunk-N2MAYIRU.js +32 -0
  18. package/dist/{chunk-IL2O4KDP.js → chunk-SQEK6S4X.js} +20 -21
  19. package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
  20. package/dist/{chunk-OTV5EBR5.js → chunk-TVSGS5QB.js} +5 -5
  21. package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
  22. package/dist/{chunk-JFXDUX6U.js → chunk-VXKKTUU2.js} +2 -2
  23. package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
  24. package/dist/{compat-check-ZMJWF6QG.js → compat-check-7VBBE7KO.js} +1 -1
  25. package/dist/{config-6G2LAH5D.js → config-LFRZBPH5.js} +4 -7
  26. package/dist/{context-Y2A6QIS3.js → context-WJQGJD6F.js} +1 -1
  27. package/dist/{data-integration-EIF5QHYF.js → data-integration-KMJWYAKK.js} +2 -1
  28. package/dist/index.js +34 -32
  29. package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
  30. package/dist/{metadata-6S3Z67JC.js → metadata-AR64J76Z.js} +5 -5
  31. package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
  32. package/dist/{personal-semantic-preference-PKYS73D6.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
  33. package/dist/{project-semantic-B5PG4JJB.js → project-semantic-DJLXAXLD.js} +4 -4
  34. package/dist/{sync-GB3IKG2D.js → sync-4TUIQ2PZ.js} +3 -3
  35. package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
  36. package/dist/{te-analysis-ZYL4AF34.js → te-analysis-XHAMRMTQ.js} +6 -6
  37. package/dist/{te-community-R63WXF6D.js → te-community-JSUSZEYH.js} +4 -4
  38. package/dist/{te-dataops-VHTPW433.js → te-dataops-I264BUTI.js} +2 -2
  39. package/dist/{te-engage-ZE7ROR3Z.js → te-engage-XNMQYO5N.js} +68 -16
  40. package/dist/{te-experiment-ZDR2JZTN.js → te-experiment-5SCHMYVO.js} +4 -4
  41. package/dist/{te-kb-6NXLBHE3.js → te-kb-QQ53TNRZ.js} +44 -13
  42. package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
  43. package/dist/{te-team-KOSX43ZP.js → te-team-V6BBI52R.js} +87 -6
  44. package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
  45. package/dist/{update-XPNNE7UF.js → update-53ZUXWV5.js} +2 -2
  46. package/dist/{web-runtime-7DPC4HYJ.js → web-runtime-ZJHOIPKX.js} +4 -4
  47. package/dist/{workspace-RZESYB6T.js → workspace-W5ZPVWJS.js} +3 -3
  48. package/package.json +3 -3
  49. package/skills/ae-automation/SKILL.md +6 -2
  50. package/skills/ae-automation/references/cli.md +9 -3
  51. package/skills/ae-engage/SKILL.md +6 -1
  52. package/skills/ae-engage/references/common-metric.md +47 -1
  53. package/skills/ae-engage/references/flow-metric-update.md +1 -1
  54. package/skills/ae-engage/references/task-metric-update.md +1 -1
  55. package/skills/ae-experiment/SKILL.md +1 -1
  56. package/skills/ae-experiment/references/save_experiment.md +1 -1
  57. package/skills/ae-kb/SKILL.md +8 -6
  58. package/skills/ae-kb/references/query-workflow.md +5 -1
  59. package/skills/ae-onboarding/SKILL.md +2 -2
  60. package/skills/ae-onboarding/references/onboarding_run.md +1 -1
  61. package/skills/ae-team/SKILL.md +7 -3
  62. package/skills/ae-team/references/copy-to-personal.md +7 -0
  63. package/skills/ae-team/references/promote.md +7 -0
  64. package/skills/ae-team/references/update.md +3 -3
  65. package/skills/ae-tracking-matrix/SKILL.md +0 -170
  66. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  67. package/skills/ae-tracking-matrix/i18n.yaml +0 -12
  68. package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
  69. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
  70. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
  71. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
  72. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
  73. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
  74. package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
  75. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
  76. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
  77. package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
  78. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
  79. package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
  80. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
  81. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
  82. package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
  83. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
  84. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
  85. package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
  86. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
  87. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
  88. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
  89. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
  90. package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
  91. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
  92. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
  93. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
  94. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
  95. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
  96. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
  97. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
  98. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
  99. package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
  100. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
  101. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
  102. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
  103. package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
  104. package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
  105. package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
  106. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
  107. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
  108. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
  109. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
  110. package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
  111. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
  112. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
  113. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
  114. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
  115. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
  116. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
  117. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
  118. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
  119. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
  120. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
  121. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
  122. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
  123. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
  124. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
  125. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
  126. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
  127. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
  128. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
  129. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
  130. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
  131. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
  132. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
  133. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
  134. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
  135. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
  136. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
  137. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
  138. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
  139. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
  140. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
  141. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
  142. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
  143. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
  144. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
  145. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
  146. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
  147. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
  148. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
  149. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
  150. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
  151. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
  152. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
  153. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
  154. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
  155. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
  156. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
  157. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
  158. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
  159. package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
  160. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
  161. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
  162. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
  163. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
  164. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
  165. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
  166. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
  167. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
  168. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
  169. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
  170. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
  171. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
  172. package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
  173. package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
  174. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
  175. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
  176. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
  177. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
  178. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
  179. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
  180. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
  181. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
  182. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
  183. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
  184. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
  185. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
  186. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
  187. package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
  188. package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
  189. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
  190. package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
  191. package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
@@ -1,113 +0,0 @@
1
- ---
2
- code: track_update_and_track_overwrite
3
- name: "Updatable Events"
4
- wikiToken: P5ryw0zcmi9CJBk5S0LclWSEnlh
5
- parentWikiToken: Ljs3w406DiyDLnktFuAcHogInvg
6
- updateTime: 1745309946000
7
- sourceUrl: https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=track_update_and_track_overwrite
8
- ---
9
-
10
- # Updatable Events
11
-
12
- This chapter will introduce the usage of TE system's special data structure - Updatable Events. Updatable Events are **special event data** that can update attribute values in the data, suitable for recording event data containing mutable state values or mutable cumulative values, such as cost events where the `cost_amount` attribute can be updated over time.
13
-
14
- ::: warning
15
-
16
- Updatable Events have significant storage and processing performance overhead. To ensure data processing efficiency and query performance, they are only suitable for events with small volume and strong update requirements in special business scenarios. It is strongly recommended to use them with assistance from TE staff.
17
-
18
- :::
19
-
20
- ### I. Data Structure
21
-
22
- <!-- unsupported block: 34 -->
23
-
24
- Using TE client SDK or server SDK, you can refer to the corresponding SDK's integration guide. The "Updatable Events" and "Overwritable Events" sections in the guide will provide detailed interface calling methods.
25
-
26
- To use the "Updatable Events" feature, two adjustments are needed in the data:
27
-
28
- 1. Set the data type identification field `#type` to `track_update` or `track_overwrite`. These two data types represent two event update methods: updating partial attributes and overwriting all attributes
29
- 1. Add field `#event_id`, which is the unique identifier of the event; when updating attributes, the corresponding event data will be found based on `#event_name` and `#event_id`, and that data will be updated. `#event_id` for different events are independent of each other, so each updatable event has its own separate unique identifier system
30
-
31
- Here is a sample data, you can see where `#event_id` is located:
32
-
33
- ```
34
- {
35
- "#account_id": "ABCDEFG-123-abc",
36
- "#distinct_id": "F53A58ED-E5DA-4F18-B082-7E1228746E88",
37
- "#type": "track_update",
38
- "#event_id": "F53A58ED-E5DA-4F18-B082-7E1228746E88",
39
- "#time": "2020-08-18 14:37:28.527",
40
- "#event_name": "test_event",
41
- "properties": {
42
- "argString": "abc"
43
- }
44
- }
45
- ```
46
-
47
- ### II. Data Processing Logic
48
-
49
- Updatable Events have significant differences in processing logic compared to regular event data: **Please note, if an event data's** `#type` **is** `track`**, then that data cannot be updated later**; if an event data's `#type` is `track_update` or `track_overwrite`, it will be treated as an updatable event, and then either type of data can be used to update attributes.
50
-
51
- The TE system handles `track_update` and `track_overwrite` differently. This section will detail the processing logic for these two types of data.
52
-
53
- #### 2.1 track_update Processing Logic
54
-
55
- When `#type` in the data is `track_update`, the data processing logic is event attribute update. When the system receives this type of data, it will check whether corresponding event data exists based on the `#event_id` field. If it exists, the corresponding fields will be updated. The specific processing logic is as follows:
56
-
57
- 1. If no data with the corresponding `#event_id` exists under this event, this data is treated as new data and will be directly stored
58
- 1. If `#event_id` exists, the event attributes in the newly passed data will update previous values. If there are new attributes, they will also be added. Attributes not included in the newly passed data will not be updated, so you only need to pass the attributes to be updated
59
- 1. Additionally, `#time` (event time) will also be updated by new data, so you need to reasonably set the time in the newly passed data according to actual business scenarios
60
-
61
- #### 2.2 track_overwrite Processing Logic
62
-
63
- When `#type` in the data is `track_overwrite`, the data processing logic is event overwrite. When the system receives this type of data, it will check whether corresponding event data exists based on the `#event_id` field. If it exists, it will delete that data and write the new event data to the system (equivalent to replacing the deleted data). The specific processing logic is as follows:
64
-
65
- 1. If no data with the corresponding `#event_id` exists under this event, this data is treated as new data and will be directly stored
66
- 1. If `#event_id` exists, all content of that event data will be overwritten. If you need to update partial attributes, use `track_update`
67
- 1. Additionally, `#time` (event time) will also be updated by new data, so you need to reasonably set the time in the newly passed data according to actual business scenarios
68
-
69
- ### III. Best Practices
70
-
71
- #### Advertising Cost
72
-
73
- In advertising effectiveness analysis, you often need to calculate the ROI (return on investment) for ad placements or creatives, which is the ratio of user value to user cost. User value, i.e., the sum of direct payments and value generated from other means, is easy to record; while cost data depends on the data rules from the advertising platform side, and cost amounts generally continue to update, making it unsuitable to record with regular event data.
74
-
75
- Since cost data continues to change, advertising cost data is very suitable for recording using updatable data. When first recording advertising cost data, you can upload data like the following:
76
-
77
- ```
78
- {
79
- "#account_id": "admin",
80
- "#distinct_id": "F53A58ED-E5DA-4F18-B082-7E1228746E88",
81
- "#type": "track_update",
82
- "#event_id": "2020-09-01_google_7-Tier1-0527_adset1_adname1",
83
- "#time": "2020-09-01 00:00:00.000",
84
- "#event_name": "ad_cost",
85
- "properties": {
86
- "channel": "google",
87
- "campaignid": "7-Tier1-0527",
88
- "adset": "adset1",
89
- "adname": "adname1",
90
- "cost": 100
91
- }
92
- }
93
- ```
94
-
95
- The above data will add a new updatable cost event, where `#event_id` is formed by concatenating date, channel, campaign name, ad group, and ad name, serving as the unique ID for the cost. From a data logic perspective, this is also the finest granularity at which the cost event can be updated; the `cost` field records the current advertising cost of 100 yuan.
96
-
97
- As time passes, the advertising platform pushed new cost data, and the new advertising cost is 200. You can send data like the following, where `#event_id` needs to be consistent with the previous data, representing updating the previous data; updating the `cost` field, passing the new cost value 200; since `#time` will also be updated by new data, it needs to be consistent with before, passing the cost date (converted to time type). Other fields like channel, campaign, ad placement, since they don't need updating, can be omitted from the data.
98
-
99
- ```
100
- {
101
- "#account_id": "admin",
102
- "#distinct_id": "F53A58ED-E5DA-4F18-B082-7E1228746E88",
103
- "#type": "track_update",
104
- "#event_id": "2020-09-01_google_7-Tier1-0527_adset1_adname1",
105
- "#time": "2020-09-01 00:00:00.000",
106
- "#event_name": "ad_cost",
107
- "properties": {
108
- "cost": 200
109
- }
110
- }
111
- ```
112
-
113
- When the system receives this event, it will query whether this `#event_id` already exists. After finding it exists, it will update the `#time` and `cost` field in the original data (i.e., the first sample data), completing the update operation for the cost event's cost amount.
@@ -1,466 +0,0 @@
1
- ---
2
- code: user_identify
3
- name: "User Identification Rules"
4
- wikiToken: LzHIwOjA3iyKjskrWb4crIhlnr2
5
- parentWikiToken: Bmhewqk5PiJirhk1GJzcJliqnOh
6
- updateTime: 1774407320000
7
- sourceUrl: https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=user_identify
8
- ---
9
-
10
- # User Identification Rules
11
-
12
- Users may use your product on different devices and also use it in a non-logged-in state, making accurate user identification quite complex. TE has chosen a relatively accurate and easy-to-understand solution. This document will detail the user identification rules and provide cases to help you quickly understand them.
13
-
14
- ::: tip Summary
15
-
16
- 1. A user will have three IDs for identification, namely:
17
-
18
- - TE User ID (#user_id): The unique user ID in the TE system
19
- - Account ID (#account_id): The user's login ID
20
- - Visitor ID (#distinct_id): The user's ID in non-logged-in state
21
-
22
- 2. The most critical ID for identifying a user is "TE User ID". For every data received by the TE system, the corresponding "TE User ID" will be associated based on the "Account ID" and "Visitor ID" of that data. If a data contains both "Account ID" and "Visitor ID", priority is given to associating the "TE User ID" based on the "Account ID". If the "Account ID" does not exist, then associate the "TE User ID" based on the "Visitor ID"
23
-
24
- 3. When the data received by the TE backend contains a new "Account ID" or "Visitor ID":
25
-
26
- - If the data contains a "Visitor ID", and the "Visitor ID" has already been associated with a "TE User ID", but is not bound to an "Account ID", then the "Account ID" will be bound with the "Visitor ID", sharing one "TE User ID"
27
- - If the "Visitor ID" does not exist or has been bound by another Account ID, then no binding occurs, and the "Account ID" will be associated with a new "TE User ID"
28
-
29
- 4. When the TE backend receives data containing a new "Visitor ID":
30
-
31
- - If the current data contains an "Account ID", then it will be bound with that "Account ID", and both IDs are associated with the same "TE User ID"
32
- - If the current data does not contain an "Account ID", then no binding occurs, and the "Visitor ID" will be associated with a new "TE User ID"
33
-
34
- 5. "TE User ID" corresponds one-to-one with "Account ID". An "Account ID" can be bound to multiple "Visitor IDs", but a "Visitor ID" can only be bound to one "Account ID".
35
-
36
- :::
37
-
38
- ### I. Types of User Identification IDs
39
-
40
- The TE platform mainly uses three user identification IDs, namely "Visitor ID (`#distinct_id`)", "Account ID (`#account_id`)" and "TE User ID (`#user_id`)". This section will briefly introduce the meaning of these three IDs:
41
-
42
- #### 1.1 Visitor ID (`#distinct_id`)
43
-
44
- Visitor ID is the user's identifier in non-logged-in state, used to identify user data before login or outside the game, such as pre-registration data, advertising data, etc.
45
-
46
- If you use client SDK integration, the SDK will automatically assign a unique visitor ID to the user. If you need to customize the user's visitor ID, please call `identify` immediately after SDK initialization to set it.
47
-
48
- ::: warning
49
-
50
- Please avoid calling `identify` again to change the visitor ID after uploading events, as this operation may cause serious data issues such as user matching failure or duplicate users.
51
-
52
- :::
53
-
54
- #### 1.2 Account ID (`#account_id`)
55
-
56
- Account ID is the user's identifier in logged-in state, used to identify user data after login. Games mostly use "account, character" two dimensions to identify users. Generally, we recommend using the smaller granularity, i.e., "Character ID" as the Account ID. When there is no character dimension, use "Account Login ID" as the Account ID.
57
-
58
- If you use client SDK integration, you can call `login` to set the Account ID when the user registers, logs in, or when creating a character, entering a server. The SDK will save the Account ID, and subsequent data will all contain the Account ID. If `login` is called again to configure the Account ID, the newly passed value will be used as the Account ID. You can also call `logout` to clear the Account ID, and subsequent data will not contain the Account ID.
59
-
60
- #### 1.3 TE User ID (`#user_id`)
61
-
62
- "TE User ID" is the unique identifier ID used internally by the TE system to identify users. For any correct data entering the database, the system will generate the "TE User ID" for that data based on the "Account ID" and "Visitor ID", to clarify which user that data belongs to.
63
-
64
- "TE User ID" plays a very important role in analysis. Event data, user attributes, and user segment tags etc. data tables need to be associated through "TE User ID". The user distinct count calculated in analysis models is essentially the distinct count of "TE User ID".
65
-
66
- It can be considered that the user identification rule is the rule for generating "TE User ID" for each data. The logic for generating "TE User ID" can be divided into two steps:
67
-
68
- 1. Update the user ID relationship table: When the data contains new "Account ID" or "Visitor ID", the TE system will update the internal user ID relationship table
69
- 1. Data association with "TE User ID": Based on the "Account ID" or "Visitor ID" in the data, find the corresponding "User ID" in the relationship table, and associate a "TE User ID" for each data
70
-
71
- ### II. Updating ID Relationship Table
72
-
73
- Inside the TE system, there is a user ID relationship table independent of the event table and user table. This table records the association relationship between "TE User ID" and "Account ID", "Visitor ID". When the system receives data containing new "Account ID" or "Visitor ID", this relationship table will be updated.
74
-
75
- - If the data only contains "Account ID", or only contains "Visitor ID", and that ID is received for the first time. At this time, the system will create a new "TE User ID" and associate it with the passed ID.
76
-
77
- If the data contains both "Account ID" and "Visitor ID", then there is also an ID binding mechanism. ID binding refers to binding "Account ID" and "Visitor ID" together, associating them with the same "TE User ID", equivalent to binding a user's pre-login and post-login data.
78
-
79
- - Both "Account ID" and "Visitor ID" are received for the first time, at this time the two IDs will be bound and associated with a new "TE User ID"
80
- - If the "Account ID" exists in the association table, and the "Visitor ID" is a new ID, then the "Visitor ID" will be bound with the "Account ID". An "Account ID" can bind multiple "Visitor IDs".
81
- - If the "Visitor ID" exists in the association table, and the "Account ID" is a new ID, there are two cases:
82
- - The "Visitor ID" has already been bound with another "Account ID", then the "Visitor ID" is not bound with the "Account ID", and the "Account ID" is associated with a new "TE User ID"
83
- - The "Visitor ID" has not been bound with another "Account ID", then the "Visitor ID" will be bound with the "Account ID"
84
-
85
- If both the "Account ID" and "Visitor ID" in the data exist in the relationship table, then the relationship table is not adjusted.
86
-
87
- ### III. Data Association with "TE User ID"
88
-
89
- Next is the step of data association with "TE User ID", still divided into two rules:
90
-
91
- - If the data only has "Account ID" or "Visitor ID", then directly get the "TE User ID" associated with that ID
92
- - If the data contains both "Account ID" and "Visitor ID", then get the "TE User ID" associated with the "Account ID"
93
-
94
- Simply put, "Account ID" has higher priority in judging user ID association. When there is an "Account ID", take the associated ID of the "Account ID"; when there is no "Account ID", take the associated ID of the "Visitor ID".
95
-
96
- ### IV. Case Analysis
97
-
98
- To help you better understand TE's user identification solution, this section will demonstrate the operation mechanism of the identification rules in the form of cases. The cases will present the operation of configuring "User ID" after the backend receives data. You need to focus on the value of `#user_id` in each step and the principle of association.
99
-
100
- #### 4.1 Only "Visitor ID" Case
101
-
102
- When there is only "Visitor ID", the User ID will only be generated based on `#distinct_id`
103
-
104
- **#account_id**
105
-
106
- **#distinct_id**
107
-
108
- **#user_id**
109
-
110
- null
111
-
112
- A
113
-
114
- 1
115
-
116
- null
117
-
118
- B
119
-
120
- 2
121
-
122
- null
123
-
124
- C
125
-
126
- 3
127
-
128
- null
129
-
130
- A
131
-
132
- 1
133
-
134
- In the above scenario, the backend received three new "Visitor IDs", so three new "User IDs" were created. In the fourth step, "Visitor ID" "A" has a corresponding "User ID" "1", so no new "User ID" was created, treated as a previously created user with "User ID" of "1".
135
-
136
- #### 4.2 Visitor ID is Bound to User ID, but Not Bound to Account ID
137
-
138
- When "Visitor ID" has a corresponding User ID, but is not bound to "Account ID", passing an "Account ID" will bind the "Account ID" with the "Visitor ID"
139
-
140
- **#account_id**
141
-
142
- **#distinct_id**
143
-
144
- **#user_id**
145
-
146
- null
147
-
148
- A
149
-
150
- 1
151
-
152
- Account_A
153
-
154
- A
155
-
156
- 1
157
-
158
- In the above scenario, the backend received a new "Visitor ID" and therefore created a new "User ID". Later, a new "Account ID" was received. At this time, the "Visitor ID" was not bound to an "Account ID", so the new "Account ID" was bound with the "Visitor ID".
159
-
160
- #### 4.3 Visitor ID is Bound to User ID, and Already Bound to Account ID
161
-
162
- When "Visitor ID" has already been associated with "User ID", and already bound to "Account ID", a new "Account ID" cannot bind that "Visitor ID". That "Account ID" can subsequently attempt to bind with other "Visitor IDs":
163
-
164
- **#account_id**
165
-
166
- **#distinct_id**
167
-
168
- **#user_id**
169
-
170
- Account_A
171
-
172
- A
173
-
174
- 1
175
-
176
- Account_B
177
-
178
- A
179
-
180
- 2
181
-
182
- Account_B
183
-
184
- B
185
-
186
- 2
187
-
188
- null
189
-
190
- B
191
-
192
- 2
193
-
194
- null
195
-
196
- A
197
-
198
- 1
199
-
200
- Account_C
201
-
202
- B
203
-
204
- 3
205
-
206
- In the above scenario, you can see that "Visitor ID" "A" has already been bound with "Account ID" "Account_A". At this time, the new "Account ID" "Account_B" cannot bind "Visitor ID" "A", but is associated with a new "User ID" "2". In the third step, when "Account ID" "Account_B" and "Visitor ID" "B" are passed together, "Visitor ID" "B" has not been bound to an "Account ID", so the two are bound. Therefore, the "Visitor ID" "B" passed in the fourth step is associated with "User ID" "2". Finally, when new "Account ID" "Account_C" and "Visitor ID" "B" are passed together, binding also does not occur, and "Account ID" "Account_C" is associated with new "User ID" "3". Here is the final state of the ID association table:
207
-
208
- **#user_id**
209
-
210
- **#account_id**
211
-
212
- **#distinct_id**
213
-
214
- 1
215
-
216
- Account_A
217
-
218
- A
219
-
220
- 2
221
-
222
- Account_B
223
-
224
- B
225
-
226
- 3
227
-
228
- Account_C
229
-
230
- null
231
-
232
- ### V. Complex Scenario Analysis
233
-
234
- Finally, we present user identification in complex scenarios. For easier understanding, we will show the User table structure at key steps. You can refer to the explanation of that step to understand:
235
-
236
- **Step**
237
-
238
- **#account_id**
239
-
240
- **#distinct_id**
241
-
242
- **#user_id**
243
-
244
- 1
245
-
246
- null
247
-
248
- A
249
-
250
- 1
251
-
252
- 2
253
-
254
- Account_A
255
-
256
- A
257
-
258
- 1
259
-
260
- 3
261
-
262
- Account_B
263
-
264
- A
265
-
266
- 2
267
-
268
- 4
269
-
270
- null
271
-
272
- B
273
-
274
- 3
275
-
276
- 5
277
-
278
- Account_B
279
-
280
- B
281
-
282
- 2
283
-
284
- 6
285
-
286
- Account_C
287
-
288
- B
289
-
290
- 3
291
-
292
- 7
293
-
294
- Account_C
295
-
296
- C
297
-
298
- 3
299
-
300
- 8
301
-
302
- Account_B
303
-
304
- C
305
-
306
- 2
307
-
308
- 9
309
-
310
- Account_D
311
-
312
- D
313
-
314
- 4
315
-
316
- 10
317
-
318
- null
319
-
320
- C
321
-
322
- 3
323
-
324
- For the above complex scenario, we will analyze step by step:
325
-
326
- (1) Passed new "Visitor ID" "A", bound with newly created "User ID" "1"
327
-
328
- (2) New "Account ID" "Account_A" added, "Visitor ID" "A" is not bound to Account ID, so "Account_A" and "A" are bound, associated with "User ID" "1".
329
-
330
- (3) New "Account ID" "Account_B" added, "Visitor ID" "A" has already been bound to "Account ID" "Account_A", so a new "User ID" "2" is created and associated with it. At this time, "Account ID" "Account_B" is not bound with "Visitor ID". The ID association table is as follows:
331
-
332
- **#user_id**
333
-
334
- **#account_id**
335
-
336
- **#distinct_id**
337
-
338
- 1
339
-
340
- Account_A
341
-
342
- A
343
-
344
- 2
345
-
346
- Account_B
347
-
348
- null
349
-
350
- (4) At this time, new "Visitor ID" "B" is added, newly created "User ID" "3" is associated with it
351
-
352
- (5) "Account ID" "Account_B" and "Visitor ID" "B" both exist in the ID association table, so no binding occurs. The ID association table is as follows:
353
-
354
- **#user_id**
355
-
356
- **#account_id**
357
-
358
- **#distinct_id**
359
-
360
- 1
361
-
362
- Account_A
363
-
364
- A
365
-
366
- 2
367
-
368
- Account_B
369
-
370
- null
371
-
372
- 3
373
-
374
- null
375
-
376
- B
377
-
378
- (6) New "Account ID" "Account_C" added, "Visitor ID" "B" is not bound to "Account ID", so "Account_C" and "B" are bound, associated with "User ID" "3". The ID association table is as follows:
379
-
380
- **#user_id**
381
-
382
- **#account_id**
383
-
384
- **#distinct_id**
385
-
386
- 1
387
-
388
- Account_A
389
-
390
- A
391
-
392
- 2
393
-
394
- Account_B
395
-
396
- null
397
-
398
- 3
399
-
400
- Account_C
401
-
402
- B
403
-
404
- (7) New "Visitor ID" "C" added, bound with "Account ID" "Account_C". The ID association table is as follows:
405
-
406
- **#user_id**
407
-
408
- **#account_id**
409
-
410
- **#distinct_id**
411
-
412
- 1
413
-
414
- Account_A
415
-
416
- A
417
-
418
- 2
419
-
420
- Account_B
421
-
422
- null
423
-
424
- 3
425
-
426
- Account_C
427
-
428
- B, C
429
-
430
- (8) "Account ID" "Account_B" and "Visitor ID" "C" both exist in the ID association table. At this time, the ID association table does not change
431
-
432
- (9) New "Account ID" "Account_D" and "Visitor ID" "D" added, the two are bound, and associated with new "User ID" "4"
433
-
434
- (10) Finally, the data only contains "Visitor ID" "C", returns its associated "User ID" "3"
435
-
436
- The final ID association table structure is:
437
-
438
- **#user_id**
439
-
440
- **#account_id**
441
-
442
- **#distinct_id**
443
-
444
- 1
445
-
446
- Account_A
447
-
448
- A
449
-
450
- 2
451
-
452
- Account_B
453
-
454
- null
455
-
456
- 3
457
-
458
- Account_C
459
-
460
- B, C
461
-
462
- 4
463
-
464
- Account_D
465
-
466
- D
@@ -1,22 +0,0 @@
1
- # Standard Base - Local Cache Index
2
-
3
- > Source: Feishu sheets `M71zsVFKihDEKXtZJjZcOkAvn5b` (12 sheets), exported from the cloud on 2026-09-20 (revision 502).
4
- > The cloud copy is the authoritative version; only re-fetch from the source when the user requests "use the latest cloud version" or when the cache clearly conflicts with current business reality.
5
- > See the "Standard Base" section of the parent `../category-registry.md` for the file index and usage conventions.
6
-
7
- | File | Corresponding Sheet |
8
- |-|-|
9
- | [Integration Must-Know](integration_must_know.md) | Integration Must-Know |
10
- | [Tracking Notes](tracking_notes.md) | Tracking Notes |
11
- | [User ID System](user_id_system.md) | #User ID System |
12
- | [Gameplay Event Data](gameplay_event_data.md) | #Gameplay Event Data |
13
- | [Basic Event Data](basic_event_data.md) | #Basic Event Data |
14
- | [Common Event Properties](common_event_properties.md) | #Common Event Properties |
15
- | [User Data](user_data.md) | #User Data |
16
- | [Data Type Design Principles](data_type_design_principles.md) | Data Type Design Principles |
17
- | [Common Event Properties Setup](common_event_properties_setup.md) | Common Event Properties Setup |
18
- | [Multi-Platform Integration Notes](multi_platform_integration_notes.md) | Multi-Platform Integration Notes |
19
- | [Multi-User ID System Recommendations](multi_user_id_system_recommendations.md) | Multi-User ID System Tracking Recommendations |
20
- | [ID System FAQ](id_system_faq.md) | ID System FAQ |
21
-
22
- **Update method**: After re-exporting with `lark-cli sheets +cells-get --spreadsheet-token M71zsVFKihDEKXtZJjZcOkAvn5b --sheet-id <id> --range A1:T400 --output-path <raw.json>`, run `standard-base-raw/convert.py` inside the workspace to regenerate.