@thinkingai/ae-cli 6.0.61 → 6.0.63

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 (184) hide show
  1. package/README.md +2 -0
  2. package/README.zh.md +2 -0
  3. package/dist/{ai-monitor-NUKSJPLE.js → ai-monitor-X5GL44JT.js} +5 -5
  4. package/dist/ai-monitor.js +7 -7
  5. package/dist/{auth-MVAEBGBP.js → auth-SPQ46XQ3.js} +3 -3
  6. package/dist/{automation-6L6IAYRK.js → automation-7XC3VBZI.js} +85 -9
  7. package/dist/{capability-74N7AN5X.js → capability-JZP4KXZC.js} +3 -3
  8. package/dist/{chunk-SVNED423.js → chunk-2VKMHNUU.js} +4 -4
  9. package/dist/{chunk-JZY6WWAP.js → chunk-6HOM2FOJ.js} +10 -1
  10. package/dist/{chunk-COOMXFUG.js → chunk-AAN6KBUK.js} +2 -2
  11. package/dist/{chunk-H35VDOAE.js → chunk-E457FREE.js} +2 -2
  12. package/dist/{chunk-VLOGOM7N.js → chunk-ETQXIZFP.js} +2 -1
  13. package/dist/{chunk-XZDKAR4N.js → chunk-F36ORPI6.js} +3 -28
  14. package/dist/{chunk-7WBCSJL6.js → chunk-F7TCQPQX.js} +1 -1
  15. package/dist/{chunk-HRFYYEXR.js → chunk-FGGEF7MI.js} +2 -2
  16. package/dist/chunk-N2MAYIRU.js +32 -0
  17. package/dist/{chunk-RB26WNLM.js → chunk-PRCHMOWT.js} +1 -1
  18. package/dist/{chunk-LPKIMGIU.js → chunk-RYY5NJK3.js} +2 -2
  19. package/dist/{chunk-OTZ4JQDU.js → chunk-VR2D54AA.js} +1 -1
  20. package/dist/{chunk-THTROEGD.js → chunk-YIG3L4RC.js} +1 -1
  21. package/dist/{chunk-XPARQSYS.js → chunk-YJYC5PLL.js} +2 -3
  22. package/dist/{chunk-HIMOBNEY.js → chunk-ZVUXAHEV.js} +1 -1
  23. package/dist/{compat-check-W4XC27RG.js → compat-check-JD5D77ET.js} +1 -1
  24. package/dist/{config-264GB6C7.js → config-IIMRATTP.js} +3 -3
  25. package/dist/{context-SOQDFZIB.js → context-BXHIPIIX.js} +1 -1
  26. package/dist/{data-integration-UNJ7EPW2.js → data-integration-VRJQ3HVK.js} +2 -1
  27. package/dist/index.js +33 -31
  28. package/dist/{memory-ZLTTULZK.js → memory-B44LY27L.js} +3 -3
  29. package/dist/{metadata-EN2IWCDI.js → metadata-ZVPG2MIA.js} +5 -5
  30. package/dist/{model-NAKQWK4W.js → model-ANZBYVST.js} +1 -1
  31. package/dist/{personal-semantic-preference-UGN67KTN.js → personal-semantic-preference-YNCV4QG3.js} +4 -4
  32. package/dist/{project-semantic-5OP3YPZD.js → project-semantic-E7ZAQL5S.js} +4 -4
  33. package/dist/{sync-LDJQZRQH.js → sync-Y4OZRQAY.js} +3 -3
  34. package/dist/{te-agent-WNNAD4AJ.js → te-agent-RKAUTYJZ.js} +4 -4
  35. package/dist/{te-analysis-KIMH6AGU.js → te-analysis-7N5VC4JB.js} +5 -5
  36. package/dist/{te-community-P7NNBVCS.js → te-community-SIA2UHTS.js} +4 -4
  37. package/dist/{te-dataops-ZRKSG4R7.js → te-dataops-5MJQCODU.js} +2 -2
  38. package/dist/{te-engage-PVBVNRSU.js → te-engage-ZTLOMKO3.js} +68 -16
  39. package/dist/{te-kb-W7PRC7QN.js → te-kb-LDL3MF2Y.js} +44 -13
  40. package/dist/{te-system-F4ZU2HRQ.js → te-system-473I5O53.js} +1 -1
  41. package/dist/{te-team-5ONMRGKF.js → te-team-JOWHCMZA.js} +87 -6
  42. package/dist/{things-PFENSIF4.js → things-DOQ2L3O2.js} +4 -4
  43. package/dist/{update-EUZ4GNND.js → update-KUS6TCPB.js} +2 -2
  44. package/dist/{workspace-Z7L33OBQ.js → workspace-MJFPIV7C.js} +3 -3
  45. package/package.json +3 -3
  46. package/skills/ae-automation/SKILL.md +6 -2
  47. package/skills/ae-automation/references/cli.md +9 -3
  48. package/skills/ae-engage/SKILL.md +6 -1
  49. package/skills/ae-engage/references/common-metric.md +47 -1
  50. package/skills/ae-engage/references/flow-metric-update.md +1 -1
  51. package/skills/ae-engage/references/task-metric-update.md +1 -1
  52. package/skills/ae-kb/SKILL.md +8 -6
  53. package/skills/ae-kb/references/query-workflow.md +5 -1
  54. package/skills/ae-team/SKILL.md +7 -3
  55. package/skills/ae-team/references/copy-to-personal.md +7 -0
  56. package/skills/ae-team/references/promote.md +7 -0
  57. package/skills/ae-team/references/update.md +3 -3
  58. package/skills/ae-tracking-matrix/SKILL.md +0 -170
  59. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  60. package/skills/ae-tracking-matrix/i18n.yaml +0 -12
  61. package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
  62. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
  63. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
  64. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
  65. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
  66. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
  67. package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
  68. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
  69. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
  70. package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
  71. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
  72. package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
  73. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
  74. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
  75. package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
  76. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
  77. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
  78. package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
  79. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
  80. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
  81. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
  82. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
  83. package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
  84. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
  85. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
  86. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
  87. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
  88. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
  89. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
  90. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
  91. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
  92. package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
  93. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
  94. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
  95. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
  96. package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
  97. package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
  98. package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
  99. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
  100. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
  101. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
  102. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
  103. package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
  104. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
  105. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
  106. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
  107. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
  108. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
  109. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
  110. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
  111. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
  112. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
  113. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
  114. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
  115. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
  116. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
  117. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
  118. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
  119. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
  120. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
  121. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
  122. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
  123. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
  124. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
  125. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
  126. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
  127. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
  128. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
  129. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
  130. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
  131. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
  132. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
  133. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
  134. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
  135. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
  136. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
  137. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
  138. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
  139. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
  140. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
  141. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
  142. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
  143. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
  144. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
  145. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
  146. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
  147. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
  148. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
  149. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
  150. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
  151. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
  152. package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
  153. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
  154. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
  155. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
  156. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
  157. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
  158. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
  159. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
  160. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
  161. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
  162. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
  163. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
  164. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
  165. package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
  166. package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
  167. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
  168. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
  169. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
  170. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
  171. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
  172. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
  173. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
  174. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
  175. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
  176. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
  177. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
  178. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
  179. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
  180. package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
  181. package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
  182. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
  183. package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
  184. package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
@@ -1,314 +0,0 @@
1
- # Viewing Client SDK Logs
2
-
3
- # I. Background
4
-
5
- During client SDK integration debugging and troubleshooting, you can use logs to analyze whether data collection and upload meet expectations. This document introduces how to enable SDK logs, and keywords in logs and their meanings.
6
-
7
- ### Native Client SDK Upload Mechanism
8
-
9
- First we briefly introduce native client SDK upload mechanism. Both Android and iOS SDK cache data in local database and batch upload. Local caching data is to avoid data loss under network abnormality, batch upload is to avoid system and network overhead from frequent uploading. Data upload triggers when any of the following conditions is met:
10
-
11
- - APP switches to background
12
- - Time interval from last data upload reaches upload time interval (default interval is 30 seconds, can be modified in TE)
13
- - Local cache count reaches upload count (default triggers upload when reaching 30 records, can be modified in TE)
14
-
15
- Therefore, during debugging, if conditions triggering data upload are not met, data is still cached locally.
16
-
17
- ### Data Log Printing
18
-
19
- For one record, log is printed when data is stored locally, and another log is printed when data is uploaded, therefore need to distinguish log meaning by keywords in log, don't mistakenly think duplicate data was generated.
20
-
21
- # II. Enable Log Printing
22
-
23
- ### iOS Version Before 3.0
24
-
25
- Log filter field "[THINKING]"
26
-
27
- **Enable Log Printing**
28
-
29
- ```objectivec
30
- [ThinkingAnalyticsSDK setLogLevel:TDLoggingLevelDebug];
31
- ```
32
-
33
- **Initialize SDK**
34
-
35
- mode: indicates SDK used mode
36
-
37
- ```
38
- 2024-02-01 11:36:47.862929+0800 TATest_iOS[32287:14658471] [THINKING] Thinking Analytics iOS SDK 2.8.4 instance initialized successfully with mode: NORMAL, APP ID: af6861d085e14b5c948662e1fcdce6ef, server url: https://receiver-ta-demo.thinkingdata.cn, device ID: 15F96974-CE32-44F5-9AD0-F259349FDAF2
39
- ```
40
-
41
- **Data Stored Locally** (keyword: `[THINKING] queueing data`)
42
-
43
- ```objectivec
44
- 2022-10-25 17:30:29.270504+0800 TATest_iOS[85710:698131] [THINKING] queueing data:{
45
- "properties" : {
46
- "#os" : "iOS",
47
- "#device_model" : "arm64",
48
- ...
49
- },
50
- "#type" : "track",
51
- "#uuid" : "DB2B97A5-183A-439E-B8B2-FE9AF77D7421",
52
- "#distinct_id" : "E5ABB02F-EA10-47AC-AB6C-A8E47E55B4E9",
53
- "#event_name" : "testA",
54
- "#time" : "2022-10-25 14:30:29.256"
55
- }
56
- ```
57
-
58
- **Data Upload to TA** (keyword: `[THINKING] flush success sendContent`)
59
-
60
- ```objectivec
61
- 2022-10-25 17:30:32.551796+0800 TATest_iOS[85710:698131] [THINKING] flush success sendContent---->:{
62
- "#app_id" : "af6861d085e14b5c948662e1fcdce6ef",
63
- "data" : [...],
64
- "#flush_time" : 1666690232351
65
- }
66
- ```
67
-
68
- **Upload to TA Result** (keyword: `flush success responseData`)
69
-
70
- code 0 means upload success
71
-
72
- ```objectivec
73
- 2022-10-25 17:30:32.552237+0800 TATest_iOS[85710:698131] [THINKING] flush success responseData---->{
74
- "code" : 0
75
- }
76
- ```
77
-
78
- ### iOS Version 3.0 and After
79
-
80
- Log filter field "[ThinkingData]"
81
-
82
- **Enable Log Printing**
83
-
84
- ```objectivec
85
- [TDAnalytics enableLog:YES];
86
- ```
87
-
88
- **Initialize SDK**
89
-
90
- ```
91
- 2024-02-01 12:07:05.077926+0800 TATest_iOS[32411:14665745] [ThinkingData] [ThinkingData][Info] initialized successfully!
92
- AppID: af6861d085e14b5c948662e1fcdce6ef
93
- ServerUrl: https://receiver-ta-demo.thinkingdata.cn
94
- Mode: Debug
95
- TimeZone: Local Time Zone (Asia/Shanghai (GMT+8) offset 28800)
96
- DeviceID: 15F96974-CE32-44F5-9AD0-F259349FDAF2
97
- Lib: iOS
98
- LibVersion: 3.0.0
99
- ```
100
-
101
- **Data Stored Locally** (keyword: `[ThinkingData] [Info] Enqueue data`)
102
-
103
- ```
104
- 2023-09-05 14:27:44.721461+0800 TestTAiOS[41411:3781875] [ThinkingData] [Info] Enqueue data: {
105
- "properties" : {...},
106
- "#type" : "track",
107
- "#uuid" : "0ECCD33B-8076-42A5-BA2B-89DE0773B84B",
108
- "#distinct_id" : "51C6265F-8F03-461E-91D3-D0FFB11DFCFD_2",
109
- "#event_name" : "iOS_001",
110
- "#time" : "2023-09-05 14:27:44.719"
111
- }
112
- ```
113
-
114
- **Data Upload to TA** (keyword: `[ThinkingData] [Debug] flush success sendContent`)
115
-
116
- ```
117
- 2023-09-05 14:28:14.834448+0800 TestTAiOS[41411:3782015] [ThinkingData] [Debug] flush success sendContent---->:{...}
118
- ```
119
-
120
- **Upload to TA Result**
121
-
122
- - code 0 means upload success
123
- - If flush success responseData is printed, can consider upload successful. Only look at response status code 200, not return content code
124
-
125
- ```
126
- 2023-09-05 14:28:14.835774+0800 TestTAiOS[41411:3782015] [ThinkingData] [Debug] flush success responseData---->{
127
- "code" : 0
128
- }
129
- ```
130
-
131
- ### Android Version Before 3.0
132
-
133
- Log filter field "ThinkingAnalytics"
134
-
135
- **Enable Log Printing**
136
-
137
- ```java
138
- ThinkingAnalyticsSDK.enableTrackLog(true);
139
- ```
140
-
141
- **Initialize SDK**
142
-
143
- mode: indicates SDK used mode
144
-
145
- ```
146
- 2024-04-09 13:39:23.458 12219-12219 ThinkingAnalyticsSDK cn.thinkingdata.android.demo I Thinking Analytics SDK 2.8.3 instance initialized successfully with mode: NORMAL, APP ID ends with: 3356, server url: https://receiver.ta.thinkingdata.cn/sync, device ID: d4d6419233102942
147
- ```
148
-
149
- **Data Stored Locally** (keyword: `Data enqueued`)
150
-
151
- ```
152
- 2022-10-26 10:56:54.416 6445-6528/cn.thinkingdata.android.demo I/ThinkingAnalytics.DataHandle: Data enqueued(e6ef):
153
- {
154
- "#type": "track",
155
- "#time": "2022-10-26 10:56:54.285",
156
- "#distinct_id": "04af1a3d-56b2-4c8f-a54a-2b6f655b8286",
157
- "#event_name": "testA",
158
- ...
159
- }
160
- ```
161
-
162
- **Data Upload to TA and Result** (keyword: `upload message`)
163
-
164
- code 0 means upload success
165
-
166
- ```
167
- 2022-10-26 10:56:54.637 6445-6526/cn.thinkingdata.android.demo I/ThinkingAnalytics.DataHandle: ret code: 0, upload message: {...}
168
- ```
169
-
170
- ### Android Version After 3.0
171
-
172
- Log filter field "[ThinkingData]"
173
-
174
- **Enable Log Printing**
175
-
176
- ```java
177
- TDAnalytics.enableLog(true);
178
- ```
179
-
180
- **Initialize SDK**
181
-
182
- ```
183
- 2024-04-09 13:48:02.088 13974-13974 ThinkingAnalyticsSDK cn.thinkingdata.android.demo I [ThinkingData] Info: ThinkingData SDK 3.0.2 initialize success with mode: NORMAL, APP ID ends with: 3df0, server url: https://receiver-ta-preview.thinkingdata.cn/sync
184
- ```
185
-
186
- **Data Stored Locally** (keyword: `[ThinkingData] Info: Enqueue data`)
187
-
188
- ```
189
- 2023-09-14 10:09:52.461 15126-15163/com.example.tatest_android I/ThinkingAnalytics.DataHandle: [ThinkingData] Info: Enqueue data(e6ef):
190
- {
191
- "#type": "track",
192
- "#time": "2023-09-14 10:09:52.445",
193
- "#distinct_id": "b86de4eb-12b8-4ce4-924a-54cd12b5fa25",
194
- "#event_name": "android_001",
195
- ...
196
- }
197
- ```
198
-
199
- **Data Upload to TA** (keyword: `[ThinkingData] Debug: Send event, Request =`)
200
-
201
- ```
202
- 2023-09-14 10:09:52.688 15126-15162/com.example.tatest_android D/ThinkingAnalytics.DataHandle: [ThinkingData] Debug: Send event, Request = {...}
203
- ```
204
-
205
- **Upload to TA Result** (keyword: `[ThinkingData] Debug: Send event, Response =`)
206
-
207
- code 0 means upload success
208
-
209
- ```
210
- 2023-09-14 10:09:52.688 15126-15162/com.example.tatest_android D/ThinkingAnalytics.DataHandle: [ThinkingData] Debug: Send event, Response ={
211
- "code": 0
212
- }
213
- ```
214
-
215
- ### Unity Version Before 3.0
216
-
217
- **Enable Log Printing**
218
-
219
- Note: EnableLog needs to be called after StartThinkingAnalytics
220
-
221
- ```csharp
222
- ThinkingAnalyticsAPI.EnableLog(true);
223
- ```
224
-
225
- **Data Stored Locally** (keyword: `Save event`)
226
-
227
- ```
228
- [ThinkingEngine] (Unity_V2.6.0-beta.1) Save event: {...}
229
- ```
230
-
231
- **Data Upload to TA** (keyword: `Post event`)
232
-
233
- ```
234
- [ThinkingEngine] (Unity_V2.6.0-beta.1) Post event: {...}
235
- ```
236
-
237
- **Upload to TA Result**
238
-
239
- code 0 means upload success
240
-
241
- ```
242
- [ThinkingEngine] (Unity_V2.6.0-beta.1) Response: {"code":0}
243
- ```
244
-
245
- ### Unity Version After 3.0
246
-
247
- **Enable Log Printing**
248
-
249
- Note: EnableLog needs to be called after Init. Unity log is enabled by default.
250
-
251
- ```csharp
252
- TDAnalytics.EnableLog(true);
253
- ```
254
-
255
- **Data Stored Locally** (keyword: `Enqueue data`)
256
-
257
- ```
258
- [ThinkingData] Info: Enqueue data: {...}
259
- ```
260
-
261
- **Data Upload to TA** (keyword: `Send event Request`)
262
-
263
- ```
264
- [ThinkingData] Info: Send event Request: {...}
265
- ```
266
-
267
- **Upload to TA Result** (keyword: `Send event Response`)
268
-
269
- - Normal mode, code 0 means upload success
270
- - Debug mode, if no whitelist added, "errorLevel":-1, prompts to add whitelist
271
- - Debug mode, if whitelist added, "errorLevel":0, means upload success
272
-
273
- ### OpenHarmony
274
-
275
- Log filter field "[ThinkingData]", but due to print field limit, usually no filter condition added
276
-
277
- **Enable Log Printing**
278
-
279
- ```
280
- TDAnalytics.enableLog(true);
281
- ```
282
-
283
- **Initialize SDK**
284
-
285
- ```
286
- [ThinkingData] Info: ThinkingData SDK 1.3.3 initialize success with mode: NORMAL, APP ID ends with: e6ef, server url: https://receiver-ta-demo.thinkingdata.cn, device ID: ad6a69cf-3f2c-47ed-a6e9-4808e36cc61f
287
- ```
288
-
289
- **Data Stored Locally** (keyword: `[ThinkingData] Info: Enqueue data`)
290
-
291
- ```
292
- [ThinkingData] Info: Enqueue data : {...}
293
- ```
294
-
295
- **Data Upload to TA** (keyword: `[ThinkingData] Info: Send event`)
296
-
297
- ```
298
- [ThinkingData] Info: Send event, Request = {...}
299
- ```
300
-
301
- **Upload to TA Result** (keyword: `[ThinkingData] Info: Response`)
302
-
303
- If Response is printed, can consider upload successful. Only look at response status code 200, not return content code
304
-
305
- ```
306
- [ThinkingData] Info: Response :{"responseCode":200,...}
307
- ```
308
-
309
- # III. Query Data in TE System
310
-
311
- Use SQL to query data via #device_id, here data is most timely, real-time data is also less timely than here
312
-
313
- 1. Select SQL query in Analysis
314
- 2. Parse event table, add #device_id in where clause
@@ -1,117 +0,0 @@
1
- # SDK Usage Notes
2
-
3
- # I. Client SDK
4
-
5
- 1. **Upload Mode**
6
-
7
- - Use `Normal` mode in production environment;
8
- - `Debug` and `Debug_Only` modes are only for testing phase debugging, do not use in production environment and formal phase;
9
-
10
- 2. **Cache Upload Strategy**
11
-
12
- - Android, iOS native SDK and game engine SDK and cross-platform SDK that call Android, iOS SDK at the underlying layer, default adopt data cache and batch upload strategy, upload timing defaults to 30 records/30 seconds, i.e. device local cache reaches 30 records or every 30 seconds triggers data upload. Can adjust upload frequency in TE Web "Project Management" page, but if upload too frequently (e.g. 1 record/1 second) will cause client system CPU, memory, network etc. overhead increase, causing device overheating, lagging etc. issues.
13
- - JS, Mini Game/Mini Program SDK default don't enable local cache, data will directly upload, also can enable local cache and batch upload function in SDK settings;
14
- - For native SDK, in Normal mode, calling `track()` method won't immediately trigger data upload, will upload according to cache upload strategy; if want data immediately uploaded, can call `flush()` method to trigger.
15
-
16
- 3. **Upload Failure Handling**
17
-
18
- - For enabled local cache situation, failed upload data will be saved locally and re-uploaded when next upload condition triggers;
19
- - If local cache not enabled, can customize handling for upload failure via callback, avoid data loss;
20
-
21
- 4. **Property Type**
22
-
23
- - For TE preset properties (e.g. `#account_id`, `#time`, `#ip` etc.), property type is TE system fixed setting, preset property list see Preset Properties and System Fields.
24
- - For custom properties (properties other than TE preset properties), property type is TE system auto-recognized based on property value, first record carrying that property's property value determines property type;
25
- - If uploaded data property value doesn't match TE system property type, system will attempt forced conversion, if conversion succeeds property will be stored, if conversion fails **that property will be discarded**;
26
- - Recommended to pay attention to exception storage in upload management, timely identify abnormal data and fix; if have high requirement for data quality, can also upload tracking plan, and refer to project data processing rules setting data processing rules, ensure property type matches expectation;
27
- - Metadata management tool supports modifying property type, note, **after type modification property value will be cleared to NULL**.
28
-
29
- 5. **Time Calibration**
30
-
31
- - Recommended to enable time calibration function, avoid data time deviation due to device system time inaccurate, affecting subsequent analysis;
32
- - Client upload, TE receives data within 10 days before to 3 days after time range, data exceeding time range **will be discarded**;
33
- - Only need to do time calibration once after SDK initialization, don't need multiple calibrations;
34
- - Time calibration method recommended prioritizing use of server timestamp calibration, if failed then use NTP calibration as backup, don't use both methods simultaneously.
35
-
36
- 6. **Auto-tracking Events**
37
-
38
- - After SDK initialization recommended to enable auto-tracking immediately after completing time calibration, to timely generate `ta_app_install` `ta_app_start` etc. auto-tracking events, avoid auto-tracking event generation lag;
39
-
40
- 7. **Sensitive Information Collection**
41
-
42
- - Due to legal requirements, usually need to show privacy policy to user and obtain permission before initializing TE SDK to enable data collection,please follow each country's laws and each app store's requirements to disclose and collect sensitive information;
43
- - Android SDK will collect `Android ID` etc. information, can set to block in configuration file.
44
-
45
- 8. **Key Data Upload**
46
-
47
- - Payment, order generation etc. key data recommended to upload from server-side, avoid client upload delay or loss;
48
- - Important data uploaded from client can call `flush()` to immediately trigger upload.
49
-
50
- 9. **Application Going Overseas**
51
-
52
- - If application is deployed overseas, recommended TE cluster deploy nearby, avoid crossing firewalls etc. reasons affecting data upload;
53
- - If application is globally deployed, or data needs to upload from overseas to TE cluster deployed domestically, recommended to deploy one or multiple relay points near application main deployment regions, avoid data loss and delay;
54
- - For SAAS customers, TE SAAS has already deployed relay points in multiple locations globally, please use TE SAAS overseas upload address `https://global-receiver-ta.thinkingdata.cn`.
55
-
56
- # II. Server SDK
57
-
58
- 1. **Upload Mode**
59
-
60
- - Server SDK recommended to use LoggerConsumer combined with Logbus upload, avoid data loss;
61
- - If using BatchConsumer need to handle upload failure returned exception,some SDKs do not return exceptions, refer specifically to[SDK code](https://github.com/ThinkingDataAnalytics);
62
- - Formal environment cannot use DebugConsumer;
63
-
64
- 2. **Cache Upload Strategy**
65
-
66
- - Due to performance reasons, LoggerConsumer batch writes data to file, BatchConsumer batch uploads data;
67
- - BatchConsumer calling `track()` won't immediately trigger upload, for key data needing immediate upload can call `flush()`;
68
-
69
- 3. **Upload Failure Handling**
70
-
71
- - For upload failure caused by network fluctuation, BatchConsumer will retry upload 3 times, after 3 failures will discard data and return error message, need to handle error yourself,see each SDK source code for details;
72
- - Using BatchConsumer if network long time interruption, when cached data count exceeds cache buffer limit (batch\*max_cache_size), will start discarding earliest data, **causing cached data loss**;
73
-
74
- 4. **Close SDK**
75
-
76
- - When program exits need to close SDK, otherwise will **cause cached data loss**;
77
- - Server abnormal restart causing SDK abnormal exit, will **cause cached data loss**;
78
- - Different SDK close methods differ, e.g. `close()`, `ta_free()`,see SDK interface documentation for details;
79
-
80
- 5. **Common Properties and Dynamic Common Properties**
81
-
82
- - Common properties function suitable for client SDK collecting user-level information, server SDK not recommended to use common properties function;
83
-
84
- 6. **IP, Country, Region Information**
85
-
86
- - TE data in country region information parsed based on data ip information, client upload TE will auto obtain and store IP information, server upload needs to add "#ip" in data for TE to process;
87
-
88
- 7. **Multi-threading and Multi-process**
89
-
90
- - Server SDK basically all support multi-threading, `track()` method will do lock processing, can confirm via SDK source code;
91
- - For multi-process situation, if using LoggerConsumer, each process data needs to write to independent file or independent folder, if writing to same file will **cause data disorder**;
92
-
93
- 8. **Timezone Information**
94
-
95
- - Client SDK uploaded data will auto have device system timezone information, server SDK data needs to manually add "#zone_offset" property to upload timezone information.
96
-
97
- # III. Multi-platform Upload
98
-
99
- For common issues and solutions in multi-platform upload scenarios see Multi-platform Upload Best Practices.
100
-
101
- 1. **User ID Consistency**
102
-
103
- - When uploading from multiple platforms, need to ensure same user data `#distinct_id` and `#account_id` consistent, otherwise may **cause user fragmentation**;
104
- - If using single account multi-device analysis system, need to ensure data `#account_id` same and data contains `#distinct_id`, avoid user being fragmented into multiple TE users;
105
-
106
- 2. **Multi-platform Time Alignment**
107
-
108
- - Client SDK will upload timezone offset "#zone_offset", default takes device system timezone,some SDKs support parameter specification;
109
- - Server SDK won't auto upload timezone offset "#zone_offset", needs to manually add upload in properties.
110
-
111
- 3. **Avoid Duplicate Upload**
112
-
113
- - Avoid multi-platform uploading same event, causing data duplication
114
-
115
- 4. **Key Data Upload**
116
-
117
- - Payment, order generation etc. key data recommended to upload from server-side, avoid client delay or loss.
@@ -1,148 +0,0 @@
1
- ---
2
- title: "Unity SDK FAQ"
3
- code: "unity_sdk_faq"
4
- source: "Feishu MCP"
5
- doc_id: "wikcnZ5YKmQd4b26mJQ2uiF6fvd"
6
- fetched_at: "2026-04-20T17:29:38Z"
7
- ---
8
-
9
- > This document mainly addresses issues for Unity builds on platforms other than Android / iOS. Android / iOS platforms use native SDK by default.
10
-
11
- # SDK Initialization
12
-
13
- ## Recommended SDK Initialization Location
14
-
15
- - Recommended to initialize SDK after user agrees to privacy policy
16
-
17
- ## Initialization Methods
18
-
19
- ### Manual Initialization
20
-
21
- ```csharp
22
- using ThinkingData.Analytics;
23
- TDAnalytics.Init("APPID","SERVER");
24
- // Or initialize via TDConfig
25
- TDConfig config = new TDConfig("APPID","SERVER");
26
- TDAnalytics.Init(config);
27
- ```
28
-
29
- ### Automatic Initialization
30
-
31
- - Add TDAnalytics prefab and set SDK configuration
32
-
33
- # Data Cache Mechanism
34
-
35
- ## Storage Location
36
-
37
- - Stored via PlayerPrefs, on Mac OS X stored in ~/Library/Preferences
38
-
39
- ## Cache Limit
40
-
41
- - No upper limit on cached data, cached data has no expiration deletion policy
42
-
43
- # Data Upload Strategy
44
-
45
- ## Data Upload Trigger Scenarios
46
-
47
- - APP switches to background
48
- - Auto-tracking event generated
49
- - Calling flush() interface
50
- - Cached data count reaches threshold (default 30 records)
51
- - Upload time interval exceeds threshold (default 30 seconds)
52
- - DEBUG / DEBUG_ONLY mode direct upload
53
-
54
- # Visitor ID (#distinct_id)
55
-
56
- ## Set Visitor ID
57
-
58
- ```csharp
59
- TDAnalytics.SetDistinctId("Thinker");
60
- ```
61
-
62
- ## Visitor ID Change Scenarios
63
-
64
- - User clears application data
65
- - User uninstall/reinstall or change device
66
- - Calling SetDistinctId() interface
67
-
68
- # Account ID (#account_id)
69
-
70
- ## Set Account ID
71
-
72
- ```csharp
73
- TDAnalytics.Login("TA");
74
- ```
75
-
76
- # Device ID (#device_id)
77
-
78
- ## Generation Rules
79
-
80
- - UNITY_WEBGL: Gets System.Guid.NewGuid().ToString("N")
81
- - Other platforms: Gets SystemInfo.deviceUniqueIdentifier
82
-
83
- # Debug Mode
84
-
85
- ## Differences between Normal, Debug, DebugOnly Modes
86
-
87
- | Mode | Upload Mode | Data Storage | Strict Data Check | Data Encryption |
88
- | --------- | ----------------- | ------------ | ----------------- | --------------- |
89
- | Normal | Batch Upload | Yes | No | Supported |
90
- | Debug | One-by-one Upload | Yes | Yes | Not Supported |
91
- | DebugOnly | One-by-one Upload | No | Yes | Not Supported |
92
-
93
- # Auto-tracking Events
94
-
95
- ## ta_app_install
96
-
97
- - Triggered when app is installed or reinstalled after uninstall
98
-
99
- ## ta_app_start
100
-
101
- - Application gains focus
102
-
103
- ## ta_app_end
104
-
105
- - Application loses focus or exits
106
-
107
- ## ta_app_crash
108
-
109
- - Monitors UnhandledException or LogType.Error, etc.
110
- - Version 2.2.0+ by default collects C# exceptions
111
-
112
- ## ta_scene_loaded / ta_scene_unloaded
113
-
114
- - Monitors SceneManager callbacks
115
-
116
- # Common Event Properties
117
-
118
- ## Static Common Event Properties
119
-
120
- - setSuperProperties method, stored locally
121
-
122
- ## Dynamic Common Event Properties
123
-
124
- - Callback function is called each time track() is invoked to get current value
125
-
126
- ## Property Priority
127
-
128
- - User-defined event properties > Dynamic common event properties > Static common event properties
129
-
130
- # Preset Properties
131
-
132
- ## #ip
133
-
134
- - TE server obtains ip from http request header
135
-
136
- ## #os
137
-
138
- - Unity WebGL converted WeChat Mini Game #os is "other"
139
-
140
- # Exception Issues
141
-
142
- See complete documentation for details.
143
-
144
- # Known Issues
145
-
146
- - Missing #zone_offset issue after building iOS & Android
147
- - Known bugs in multiple versions and fix versions
148
- See complete documentation for details.