@thinkingai/ae-cli 1.0.30 → 6.0.16

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 (355) hide show
  1. package/dist/{auth-U25QJU5D.js → auth-DYC2BGLM.js} +2 -3
  2. package/dist/{auth-H3GJD55A.js → auth-GHBMJ5ZR.js} +33 -17
  3. package/dist/{chunk-CLJF7MQA.js → chunk-2DUEAXV3.js} +1 -1
  4. package/dist/{chunk-SF3KTPIC.js → chunk-5OC7CYCG.js} +2 -2
  5. package/dist/{chunk-SRJIAOBN.js → chunk-6W4QOZAL.js} +10 -0
  6. package/dist/{chunk-I42JGQ2J.js → chunk-BJX3GXWC.js} +3 -5
  7. package/dist/{chunk-GLNZSDKO.js → chunk-DMMEPCST.js} +4 -6
  8. package/dist/{chunk-VJFUB3H3.js → chunk-I5CRVM2S.js} +3 -3
  9. package/dist/{chunk-GSJGPNKK.js → chunk-PN3OS34E.js} +1 -1
  10. package/dist/{chunk-JM34JPCO.js → chunk-RSHMZ3LG.js} +178 -4
  11. package/dist/{client-IN42F223.js → client-2UJ63MVQ.js} +3 -4
  12. package/dist/{config-64G36TJL.js → config-NCUGK6NS.js} +3 -3
  13. package/dist/index.js +2526 -28
  14. package/dist/{model-VZCYNIOG.js → model-SJSOZTRS.js} +2 -2
  15. package/dist/{raw-WJIWC6YP.js → raw-7NVWSVJP.js} +5 -7
  16. package/dist/{sync-NVASAISS.js → sync-GRVO4K3U.js} +3 -3
  17. package/dist/{te-agent-YV4DXEXK.js → te-agent-KZRIEN4N.js} +468 -46
  18. package/dist/{te-analysis-CB3DA5I5.js → te-analysis-VAR4KUOK.js} +144 -29
  19. package/dist/{te-audience-W7SCQFC7.js → te-audience-KMKYI2YJ.js} +22 -15
  20. package/dist/{te-common-FBXVWBSI.js → te-common-WNCZB7R7.js} +4 -5
  21. package/dist/{te-community-LNVDZSGW.js → te-community-JEEFXPB3.js} +10 -11
  22. package/dist/{te-dataops-IPCSSWYH.js → te-dataops-GD3XBYCS.js} +11 -12
  23. package/dist/{te-engage-KARARMIR.js → te-engage-4XHCTS6I.js} +4 -5
  24. package/dist/{te-kb-2Z2CARN3.js → te-kb-B62KFP2A.js} +96 -8
  25. package/dist/{te-meta-PDKLMWXN.js → te-meta-EPZGQN56.js} +9 -10
  26. package/dist/{te-team-SW5B7DHO.js → te-team-YY24VORI.js} +6 -7
  27. package/dist/tracking/i18n/resources/cli/en.json +153 -0
  28. package/dist/tracking/i18n/resources/cli/ja.json +153 -0
  29. package/dist/tracking/i18n/resources/cli/ko.json +153 -0
  30. package/dist/tracking/i18n/resources/cli/zh.json +153 -0
  31. package/package.json +9 -3
  32. package/skills/ae-agent/SKILL.md +65 -25
  33. package/skills/ae-analysis/SKILL.md +108 -8
  34. package/skills/ae-analysis/references/cancel_query.md +39 -0
  35. package/skills/ae-analysis/references/drilldown_user_events.md +4 -2
  36. package/skills/ae-analysis/references/drilldown_users.md +4 -2
  37. package/skills/ae-analysis/references/get_bi_panel_detail.md +35 -0
  38. package/skills/ae-analysis/references/list_alerts.md +1 -1
  39. package/skills/ae-analysis/references/list_bi_panels.md +35 -0
  40. package/skills/ae-analysis/references/list_cluster_members.md +4 -1
  41. package/skills/ae-analysis/references/list_dashboards.md +1 -1
  42. package/skills/ae-analysis/references/list_entities.md +1 -1
  43. package/skills/ae-analysis/references/list_events.md +1 -1
  44. package/skills/ae-analysis/references/list_metrics.md +1 -1
  45. package/skills/ae-analysis/references/list_project_mark_times.md +1 -1
  46. package/skills/ae-analysis/references/list_properties.md +1 -1
  47. package/skills/ae-analysis/references/list_public_access_links.md +1 -1
  48. package/skills/ae-analysis/references/list_reports.md +1 -1
  49. package/skills/ae-analysis/references/list_tag_members.md +4 -1
  50. package/skills/ae-analysis/references/query_adhoc.md +6 -5
  51. package/skills/ae-analysis/references/query_bi_panel_data.md +58 -0
  52. package/skills/ae-analysis/references/query_dashboard_report_data.md +4 -1
  53. package/skills/ae-analysis/references/query_entity_details.md +5 -2
  54. package/skills/ae-analysis/references/query_event_details.md +4 -1
  55. package/skills/ae-analysis/references/query_report_data.md +2 -2
  56. package/skills/ae-analysis-global/SKILL.md +3 -1
  57. package/skills/ae-analysis-intent/SKILL.md +132 -0
  58. package/skills/ae-data-integration-helper/SKILL.md +242 -0
  59. package/skills/ae-data-integration-helper/references/android_sdk_faq.md +179 -0
  60. package/skills/ae-data-integration-helper/references/c_sdk_compilation.md +83 -0
  61. package/skills/ae-data-integration-helper/references/c_sdk_faq.md +416 -0
  62. package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +123 -0
  63. package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +365 -0
  64. package/skills/ae-data-integration-helper/references/index.md +56 -0
  65. package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +118 -0
  66. package/skills/ae-data-integration-helper/references/java_sdk_faq.md +406 -0
  67. package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +129 -0
  68. package/skills/ae-data-integration-helper/references/logbus2_guide.md +309 -0
  69. package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +348 -0
  70. package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +115 -0
  71. package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +118 -0
  72. package/skills/ae-data-integration-helper/references/python_sdk_faq.md +232 -0
  73. package/skills/ae-data-integration-helper/references/restful_api_notes.md +74 -0
  74. package/skills/ae-data-integration-helper/references/sdk_log_guide.md +316 -0
  75. package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +107 -0
  76. package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +115 -0
  77. package/skills/ae-generate-tracking-code/SKILL.md +629 -0
  78. package/skills/ae-generate-tracking-code/references/autotrack-enum.md +183 -0
  79. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +202 -0
  80. package/skills/ae-generate-tracking-code/references/datax-config.md +43 -0
  81. package/skills/ae-generate-tracking-code/references/debug-script.md +102 -0
  82. package/skills/ae-generate-tracking-code/references/logbus-config.md +200 -0
  83. package/skills/ae-generate-tracking-code/references/modes.md +83 -0
  84. package/skills/ae-generate-tracking-code/references/restful-call.md +36 -0
  85. package/skills/ae-generate-tracking-code/references/sdk-index.md +128 -0
  86. package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +206 -0
  87. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +394 -0
  88. package/skills/ae-generate-tracking-code/references/te-api.md +181 -0
  89. package/skills/ae-generate-tracking-plan/SKILL.md +1083 -0
  90. package/skills/ae-generate-tracking-plan/references/autotrack-events.md +273 -0
  91. package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +425 -0
  92. package/skills/ae-generate-tracking-plan/references/te-api.md +100 -0
  93. package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +152 -0
  94. package/skills/ae-kb/SKILL.md +38 -5
  95. package/tracking-plan-template/MMO/346/211/213/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +104 -0
  96. package/tracking-plan-template/MMO/346/211/213/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  97. package/tracking-plan-template/MMO/351/241/265/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +117 -0
  98. package/tracking-plan-template/MMO/351/241/265/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
  99. package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +72 -0
  100. package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  101. package/tracking-plan-template/SLG/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +86 -0
  102. package/tracking-plan-template/SLG/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  103. package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +80 -0
  104. package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  105. package/tracking-plan-template/TE /345/237/213/347/202/271/347/244/272/344/276/213/346/250/241/346/235/277.md" +40 -0
  106. package/tracking-plan-template/TE /345/237/213/347/202/271/347/244/272/344/276/213/346/250/241/346/235/277.xlsx +0 -0
  107. package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.md +40 -0
  108. package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.xlsx +0 -0
  109. package/tracking-plan-template//344/274/221/351/227/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +92 -0
  110. package/tracking-plan-template//344/274/221/351/227/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
  111. package/tracking-plan-template//345/215/241/347/211/214/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +119 -0
  112. package/tracking-plan-template//345/215/241/347/211/214/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  113. package/tracking-plan-template//345/241/224/351/230/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_V1.md +130 -0
  114. package/tracking-plan-template//345/241/224/351/230/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_V1.xlsx +0 -0
  115. package/tracking-plan-template//345/276/256/344/277/241/345/260/217/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +52 -0
  116. package/tracking-plan-template//345/276/256/344/277/241/345/260/217/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  117. package/tracking-plan-template//346/215/225/351/261/274/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +68 -0
  118. package/tracking-plan-template//346/215/225/351/261/274/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  119. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/215/241/347/211/214/346/270/270/346/210/217_/345/237/213/347/202/271/346/250/241/347/211/210v1.md +108 -0
  120. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/215/241/347/211/214/346/270/270/346/210/217_/345/237/213/347/202/271/346/250/241/347/211/210v1.xlsx +0 -0
  121. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +119 -0
  122. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  123. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/346/226/227/345/234/260/344/270/273/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +63 -0
  124. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/346/226/227/345/234/260/344/270/273/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  125. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/351/272/273/345/260/206/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +101 -0
  126. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/351/272/273/345/260/206/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
  127. package/tracking-plan-template//347/224/265/345/225/206/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.md +84 -0
  128. package/tracking-plan-template//347/224/265/345/225/206/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.xlsx +0 -0
  129. package/tracking-plan-template//347/237/255/345/211/247/344/272/247/345/223/201/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.md +79 -0
  130. package/tracking-plan-template//347/237/255/345/211/247/344/272/247/345/223/201/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.xlsx +0 -0
  131. package/tracking-plan-template//347/244/276/344/272/244/350/201/212/345/244/251/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +105 -0
  132. package/tracking-plan-template//347/244/276/344/272/244/350/201/212/345/244/251/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  133. package/tracking-plan-template//351/230/205/350/257/273/347/261/273APP/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +83 -0
  134. package/tracking-plan-template//351/230/205/350/257/273/347/261/273APP/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  135. package/wiki/te-docs/index.md +225 -0
  136. package/wiki/te-docs/raw/advanced-data-type/first-event-check.md +66 -0
  137. package/wiki/te-docs/raw/advanced-data-type/updated-event.md +87 -0
  138. package/wiki/te-docs/raw/advanced-data-type.md +16 -0
  139. package/wiki/te-docs/raw/data-ingestion-guide/about-gdpr.md +55 -0
  140. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/automatic-event-tracking.md +431 -0
  141. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/debugging-and-logging.md +49 -0
  142. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/multi-instance.md +66 -0
  143. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/preset-properties.md +466 -0
  144. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/third-party-integration.md +127 -0
  145. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced.md +513 -0
  146. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/compliance.md +24 -0
  147. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/release-notes.md +177 -0
  148. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android.md +228 -0
  149. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/c-advanced.md +419 -0
  150. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/release-notes.md +45 -0
  151. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c.md +110 -0
  152. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/client-side-sdk-faq.md +52 -0
  153. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/cpp-advanced.md +366 -0
  154. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/release-notes.md +103 -0
  155. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp.md +201 -0
  156. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/compliance.md +26 -0
  157. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/automatically-track-events.md +117 -0
  158. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/debugging-and-logging.md +47 -0
  159. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/preset-properties.md +52 -0
  160. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced.md +267 -0
  161. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/release-notes.md +82 -0
  162. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter.md +139 -0
  163. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/compliance.md +26 -0
  164. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/automatically-track-events.md +121 -0
  165. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/debugging-and-logging.md +54 -0
  166. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/preset-properties.md +18 -0
  167. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced.md +305 -0
  168. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/release-notes.md +79 -0
  169. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native.md +137 -0
  170. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/release-notes.md +24 -0
  171. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/automatically-track-events.md +54 -0
  172. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/debugging-and-logging.md +53 -0
  173. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/multi-instance.md +42 -0
  174. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/preset-properties.md +119 -0
  175. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/support-native.md +81 -0
  176. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced.md +331 -0
  177. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app.md +156 -0
  178. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform.md +12 -0
  179. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/automatic-event-tracking.md +29 -0
  180. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/debugging-and-logging.md +47 -0
  181. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/multi-instance.md +21 -0
  182. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/preset-properties.md +249 -0
  183. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced.md +301 -0
  184. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/compliance.md +24 -0
  185. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/release-notes.md +51 -0
  186. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x.md +281 -0
  187. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/automatic-event-tracking.md +70 -0
  188. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/debugging-and-logging.md +57 -0
  189. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/native-support.md +104 -0
  190. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/preset-properties.md +91 -0
  191. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance.md +374 -0
  192. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/compliance.md +35 -0
  193. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/release-notes.md +109 -0
  194. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator.md +170 -0
  195. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/compliance.md +28 -0
  196. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/automatic-event-tracking.md +29 -0
  197. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/debugging-and-logging.md +58 -0
  198. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/preset-properties.md +43 -0
  199. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced.md +204 -0
  200. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/release-notes.md +29 -0
  201. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona.md +269 -0
  202. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/compliance.md +24 -0
  203. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/release-notes.md +177 -0
  204. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/automatic-event-tracking.md +119 -0
  205. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/debugging-and-logging.md +47 -0
  206. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/multi-instance.md +50 -0
  207. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/native-pluggable.md +43 -0
  208. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/preset-properties.md +212 -0
  209. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/third-party-integration.md +77 -0
  210. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced.md +396 -0
  211. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity.md +176 -0
  212. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/compliance.md +24 -0
  213. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/release-notes.md +81 -0
  214. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/automatic-event-tracking.md +79 -0
  215. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/debugging-and-logging.md +31 -0
  216. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/preset-properties.md +25 -0
  217. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/third-party-integrations.md +141 -0
  218. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced.md +278 -0
  219. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal.md +190 -0
  220. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine.md +14 -0
  221. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/h5-and-app-sdk-connection.md +147 -0
  222. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/instant-app-and-game.md +24 -0
  223. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/compliance.md +24 -0
  224. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/automatic-event-tracking.md +272 -0
  225. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/debugging-and-logging.md +77 -0
  226. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/multi-instance.md +142 -0
  227. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/preset-properties.md +484 -0
  228. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/third-party-integrations.md +132 -0
  229. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced.md +682 -0
  230. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/release-notes.md +163 -0
  231. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios.md +304 -0
  232. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/compliance.md +29 -0
  233. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/automatic-event-tracking.md +136 -0
  234. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/debugging-and-logging.md +48 -0
  235. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/multi-instance.md +50 -0
  236. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/preset-properties.md +132 -0
  237. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced.md +462 -0
  238. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/release-notes.md +107 -0
  239. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript.md +208 -0
  240. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/debugging-and-logging.md +62 -0
  241. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/preset-properties.md +118 -0
  242. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced.md +556 -0
  243. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos.md +231 -0
  244. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk.md +25 -0
  245. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/filebeat-logstash-user-guide.md +610 -0
  246. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/logbus2-user-guide.md +1215 -0
  247. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/ta-datax-writer-plugin-user-guide.md +278 -0
  248. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools.md +15 -0
  249. package/wiki/te-docs/raw/data-ingestion-guide/privacy-policy.md +38 -0
  250. package/wiki/te-docs/raw/data-ingestion-guide/restful-api-user-guide.md +155 -0
  251. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-FM9Cwz.md +37 -0
  252. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-RSyfw7.md +41 -0
  253. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging.md +89 -0
  254. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-OxzWw.md +126 -0
  255. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-VuE3wr.md +126 -0
  256. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties.md +126 -0
  257. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-IauKwI.md +175 -0
  258. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-YAilwk.md +210 -0
  259. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced.md +211 -0
  260. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-PVazwa.md +62 -0
  261. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-TADbwY.md +50 -0
  262. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes.md +69 -0
  263. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-V2W3wv.md +131 -0
  264. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-Zf9Jwl.md +179 -0
  265. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c.md +189 -0
  266. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/debugging-and-logging.md +38 -0
  267. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/preset-properties.md +126 -0
  268. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced.md +113 -0
  269. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/release-notes.md +34 -0
  270. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang.md +155 -0
  271. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/debugging-and-logging.md +42 -0
  272. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/preset-properties.md +126 -0
  273. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced.md +157 -0
  274. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/release-notes.md +72 -0
  275. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang.md +148 -0
  276. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/debugging-and-logging.md +49 -0
  277. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/preset-properties.md +126 -0
  278. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced.md +223 -0
  279. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/release-notes.md +88 -0
  280. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java.md +174 -0
  281. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/debugging-and-logging.md +46 -0
  282. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/preset-properties.md +126 -0
  283. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced.md +182 -0
  284. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/release-notes.md +61 -0
  285. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua.md +121 -0
  286. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/debugging-and-logging.md +55 -0
  287. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/preset-properties.md +126 -0
  288. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced.md +225 -0
  289. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/release-notes.md +45 -0
  290. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs.md +141 -0
  291. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/debugging-and-logging.md +41 -0
  292. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/preset-properties.md +126 -0
  293. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced.md +216 -0
  294. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/release-notes.md +45 -0
  295. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php.md +173 -0
  296. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/debugging-and-logging.md +40 -0
  297. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/preset-properties.md +126 -0
  298. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced.md +206 -0
  299. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/release-notes.md +51 -0
  300. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python.md +116 -0
  301. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/release-notes.md +44 -0
  302. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/debugging-and-logging.md +47 -0
  303. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/preset-properties.md +126 -0
  304. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced.md +189 -0
  305. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby.md +142 -0
  306. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk.md +22 -0
  307. package/wiki/te-docs/raw/data-ingestion-guide/thinkingdata-privacy-policy.md +37 -0
  308. package/wiki/te-docs/raw/data-ingestion-guide.md +48 -0
  309. package/wiki/te-docs/raw/preparations-before-data-ingestion/data-rules.md +396 -0
  310. package/wiki/te-docs/raw/preparations-before-data-ingestion/preset-properties-and-system-fields.md +957 -0
  311. package/wiki/te-docs/raw/preparations-before-data-ingestion/user-identification-rules.md +723 -0
  312. package/wiki/te-docs/raw/preparations-before-data-ingestion.md +203 -0
  313. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//345/220/210/350/247/204/346/214/207/345/215/227.md +96 -0
  314. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//346/233/264/346/226/260/346/227/245/345/277/227.md +97 -0
  315. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +52 -0
  316. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +48 -0
  317. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +447 -0
  318. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227.md +370 -0
  319. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony.md +172 -0
  320. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//345/220/210/350/247/204/346/214/207/345/215/227.md +37 -0
  321. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//346/233/264/346/226/260/346/227/245/345/277/227.md +209 -0
  322. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +71 -0
  323. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +49 -0
  324. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +125 -0
  325. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +498 -0
  326. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227.md +612 -0
  327. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217.md +373 -0
  328. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//345/220/210/350/247/204/346/214/207/345/215/227.md +26 -0
  329. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//346/233/264/346/226/260/346/227/245/345/277/227.md +32 -0
  330. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +48 -0
  331. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +30 -0
  332. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +61 -0
  333. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227.md +236 -0
  334. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua.md +200 -0
  335. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//346/233/264/346/226/260/346/227/245/345/277/227.md +83 -0
  336. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +66 -0
  337. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +54 -0
  338. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +62 -0
  339. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +358 -0
  340. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227.md +615 -0
  341. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret.md +166 -0
  342. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//346/233/264/346/226/260/346/227/245/345/277/227.md +87 -0
  343. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +71 -0
  344. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +54 -0
  345. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +61 -0
  346. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +406 -0
  347. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227.md +597 -0
  348. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair.md +179 -0
  349. package/wiki/te-docs/schema.md +16 -0
  350. package/wiki/te-docs/synthesis/batch-ingest-comparison.md +324 -0
  351. package/wiki/te-docs/synthesis/js-sdk-cheatsheet.md +538 -0
  352. package/wiki/te-docs/synthesis/restful-api-reference.md +363 -0
  353. package/wiki/te-docs/synthesis/sdk-selection.md +372 -0
  354. package/wiki/te-docs/synthesis/server-sdk-overview.md +449 -0
  355. package/dist/chunk-U6TKB3IV.js +0 -171
@@ -0,0 +1,374 @@
1
+ ---
2
+ code: cocoscreator_sdk_advanced
3
+ name: "CocosCreator-Advance"
4
+ wikiToken: DHMrw6JkgiGcwxkzyPKc55VJn0c
5
+ parentWikiToken: AL6VwEXmiiAgK7kXq97c8YXNnLc
6
+ updateTime: 1774251982000
7
+ sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=cocoscreator_sdk_advanced
8
+ ---
9
+
10
+ ## 1**. Managing User Identity**
11
+ SDK instances would use random UUID as the default distinct ID of each user by default, which would be used as the identity identification ID of users under an unlogged-in state. It should be noted that the distinct ID would change after the user reinstalled the App or use the APP with a new device.
12
+ ### **1.1. Identify**
13
+ ::: tip
14
+ Generally speaking, you do not need to customize a distinct ID. Please ensure that you understand [User Identification Rules](https://thinkingdata.feishu.cn/wiki/Pov9wECdsi2QQsk4NN9cEPsvnyc)<text color="purple"> </text>before setting a distinct ID.
15
+ If you need to change the distinct ID, please call the api immediately after SDK is initialized. To avoid the generation of useless accounts, please do not call such a process multiple times.
16
+ :::
17
+ If your App has its own distinct ID management system for each user, you can call `setDistinctId` to set the distinct ID:
18
+ ```java
19
+ // set distinct ID as Thinker
20
+ TDAnalytics.setDistinctId("Thinker");
21
+ ```
22
+
23
+ If you need to get the current distinct ID, please call `getDistinctId`:
24
+ ```java
25
+ //返回访客ID
26
+ let distinctId = TDAnalytics.getDistinctId();
27
+ ```
28
+
29
+ ### **1.2 Login**
30
+ When the users log in, `login` could be called to set the account ID of the user. TE would use the account ID as the identity identification ID, and the account ID that has been set would be saved before `logout` is called. The previous account ID would be replaced if `login` has been called multiple times.
31
+ ```javascript
32
+ // The login unique identifier of the user, corresponding to the #account_id in data tracking. #Account_id now is TE
33
+ TDAnalytics.login("TE");
34
+ ```
35
+
36
+ <quote-container>
37
+ Note: Login events wouldn't be uploaded in this method.
38
+ </quote-container>
39
+
40
+ ### **1.3 Removing Account ID**
41
+ After the user logs out, `logout` could be called to remove the account ID. The distinct ID would be used as the identity identification ID before the next time `login` is called.
42
+ ```javascript
43
+ TDAnalytics.logout();
44
+ ```
45
+
46
+ It is recommended that you call logout upon explicit logout event. For example, call `logout` when the user commits the behavior of canceling an account; do not call such a process when the App is closed.
47
+ <quote-container>
48
+ Note: Logout events wouldn't be uploaded in this method.
49
+ </quote-container>
50
+
51
+ ## **2.** **Sending Events**
52
+ After SDK is initialized, you can track user behaviour data. In general, ordinary events could meet business requirements. You can also use the First/Updatable Event based on your own business requirements.
53
+ ### **2.1 Ordinary Events**
54
+ You can call `track` to upload events. It is suggested that you set event properties based on the data tracking plan drafted previously. Here is an example of a user buying an item:
55
+ ```javascript
56
+ TDAnalytics.track({
57
+ eventName: "product_buy", // event name
58
+ properties: { product_name: "product name" } // properties
59
+ });
60
+ ```
61
+
62
+ ### **2.2 First Events**
63
+ The First Events refers to events that would only be recorded once for the ID of a certain device or other dimensions. For example, under certain scenarios, you may want to record the activation event on a certain device. In this case, you can perform data tracking with the First Event.
64
+ ```javascript
65
+ TDAnalytics.trackFirst({
66
+ eventName: "device_activation",
67
+ properties: { key: "value" }
68
+ });
69
+ ```
70
+
71
+ If you want to judge whether an event is the First Event from other dimensions, you can define a first_check_id for the First Event:
72
+ ```javascript
73
+ //set the user ID as the first_check_id of the first event to track the first initialization event of the user.
74
+ TDAnalytics.trackFirst({
75
+ eventName: "account_activation",
76
+ firstCheckId: "TE",
77
+ properties: { key: "value" }
78
+ });
79
+ ```
80
+
81
+ <quote-container>
82
+ Note: Since the server has to check whether the event is the First Event, the First Event will be put in storage one hour later by default.
83
+ </quote-container>
84
+
85
+ ### **2.3 Updatable Events**
86
+ You can meet the requirements for event data modification under specific scenarios through Updatable Events. The ID of Updatable Events should be specified and uploaded when the objects of Updatable Events are created. TE would determine the data to be updated according to the event name and event ID.
87
+ ```javascript
88
+ //The event property status is 3 after reporting, with the price being 100
89
+ TDAnalytics.trackUpdate({
90
+ eventName: "UPDATABLE_EVENT",
91
+ properties: { status: 3, price: 100 },
92
+ eventId: "test_event_id"
93
+ });
94
+
95
+ //The event property status is 5 after reporting, with the price remaining the same
96
+ TDAnalytics.trackUpdate({
97
+ eventName: "UPDATABLE_EVENT",
98
+ properties: { status: 5 },
99
+ eventId: "test_event_id"
100
+ });
101
+ ```
102
+
103
+ ### **2.4 Overwritable Events**
104
+ Despite the similarity with Updatable Events, Overwritable Events would replace all historical data with the latest data. Looking from the perspective of effect, such a process is equivalent to the behavior of deleting the previous data while putting the latest data in storage. TE would determine the data to be updated according to the event name and event ID.
105
+ ```javascript
106
+ //The event property status is 3 after reporting, with the price being 100
107
+ TDAnalytics.trackOverwrite({
108
+ eventName: "OVERWRITE_EVENT",
109
+ properties: { status: 3, price: 100 },
110
+ eventId: "test_event_id"
111
+ });
112
+
113
+ //The event property status is 5 after reporting, with the price deleted
114
+ TDAnalytics.trackOverwrite({
115
+ eventName: "OVERWRITE_EVENT",
116
+ properties: { status: 5 },
117
+ eventId: "test_event_id"
118
+ });
119
+ ```
120
+
121
+ ### **2.5 Super Properties**
122
+ Super properties refer to properties that would be uploaded by each event. Super properties could be divided into `static super properties` and `dynamic super properties`based on the update frequency. You can select different methods for super property setting according to business requirements; we recommend that you set super properties first before sending events. In the same event, when the keys of super properties, self-defined event properties, and preset properties are the same, we would assign value according to the following priority: `self-defined properties>dynamic super properties>static super properties>preset properties`.
123
+ #### **2.5.1 Static Super Properties**
124
+ Static super properties are properties that all events might have and would change with a low frequency, for example, the user membership class. After setting static super properties through `setSuperProperties`, SDK would use the preset super properties as the event properties when tracking events.
125
+ ```javascript
126
+ //set super properties
127
+ TDAnalytics.setSuperProperties({ channel: "Apple" });
128
+ ```
129
+
130
+ Static super properties would be saved in local storage, and should not be called every time the App is closed. If such properties already exist, the reset properties would replace the original properties. If such properties do not exist, properties would be newly created. In addition to property setting, we also provide other APIs to set and manage static super properties and meet general business requirements.
131
+ ```javascript
132
+ //get all super properties
133
+ var superProperties = TDAnalytics.getSuperProperties();
134
+ //clear a super property named 'channel'
135
+ TDAnalytics.unsetSuperProperty("channel");
136
+ //clear all super properties
137
+ TDAnalytics.clearSuperProperties();
138
+ ```
139
+
140
+ #### **2.5.2 Dynamic super properties**
141
+ Dynamic super properties that all events might have and would change with a high frequency, for example, the quantity of the gold coins the user possesses. After setting dynamic super properties through `setDynamicSuperPropertiesTracker`, SDK would obtain the properties during event tracking automatically, and add such properties to the event triggered.
142
+ ```javascript
143
+ // set dynamic super properties
144
+ TDAnalytics.setDynamicSuperProperties(function() {
145
+ var d = new Date();
146
+ d.setHours(10);
147
+ return { date: d };
148
+ });
149
+ ```
150
+
151
+ ### **2.6 Timing Events**
152
+ If you need to record the duration of a certain event, you can call `timeEvent` . Configure the name of the event you want to record. When you upload the event, `#duration` would be added to your event property automatically to record the duration of the event (unit: second). It should be noted that only one task can be timed with the same event name.
153
+ ```javascript
154
+ //The user enters the product page and starts the timing
155
+ TDAnalytics.timeEvent({
156
+ eventName: "stay_shop"
157
+ });
158
+ /**do someting
159
+ .......
160
+ **/
161
+ //the timing would end when the user leaves the product page. "stay_shop" event would carry#duration, a property representing event duration.
162
+ TDAnalytics.track({
163
+ eventName: "stay_shop",
164
+ properties: {
165
+ product_name: "product name"
166
+ }
167
+ });
168
+ ```
169
+
170
+ ## **3. User Properties**
171
+ User property setting APIs supported by TE include: `userSet`, `userSetOnce`, `userAdd`, `userUnset`, `userDelete`, `userAppend`, `userUniqAppend`.
172
+ ### **3.1 UserSet**
173
+ You can call `userSet` to set general user properties. The original properties would be replaced if the properties uploaded via the API are used. The type of newly-created user properties must conform to that of the uploaded properties. User name setting is taken as the example here:
174
+ ```javascript
175
+ // current username is TA
176
+ TDAnalytics.userSet({
177
+ properties: {
178
+ username: "TA"
179
+ }
180
+ });
181
+ // current username is TE
182
+ TDAnalytics.userSet({
183
+ properties: {
184
+ username: "TE"
185
+ }
186
+ });
187
+ ```
188
+
189
+ ### **3.2 UserSetOnce**
190
+ If the user property you want to upload only needs to be set once, you can call `userSetOnce` to set the property. If such property had been set before, this message would be neglected. Let's take the setting of the first payment time as an example:
191
+ ```javascript
192
+ //first_payment_time is '2018-01-01 01:23:45.678'
193
+ TDAnalytics.userSetOnce({
194
+ properties: {
195
+ first_payment_time: "2018-01-01 01:23:45.678"
196
+ }
197
+ });
198
+ //first_payment_time is '2018-01-01 01:23:45.678' as before
199
+ TDAnalytics.userSetOnce({
200
+ properties: {
201
+ first_payment_time: "2018-12-31 01:23:45.678"
202
+ }
203
+ });
204
+ ```
205
+
206
+ ### **3.3 UserAdd**
207
+ When you want to upload numeric property for cumulative operation, you can call `userAdd`.
208
+ If the property has not been set, it would be given a value of 0 before computing. A negative value could be uploaded, which is equivalent to subtraction operation. Let's take the accumulative payment amount as an example:
209
+ ```javascript
210
+ //current total_revenue is 30
211
+ TDAnalytics.userAdd({
212
+ properties: {
213
+ total_revenue: 30
214
+ }
215
+ });
216
+ //current total_revenue is 678
217
+ TDAnalytics.userAdd({
218
+ properties: {
219
+ total_revenue: 648
220
+ }
221
+ });
222
+ ```
223
+
224
+ <quote-container>
225
+ The property key is a string, and the value is only allowed to be a numeric value.
226
+ </quote-container>
227
+
228
+ ### **3.4 UserUnset**
229
+ When you need to clear the user properties of users, you can call `userUnset` to clear specific properties. `userUnset` would not create properties that have not been created in the cluster.
230
+ ```javascript
231
+ // remove a user property named
232
+ TDAnalytics.userUnset({
233
+ property: "userPropertykey"
234
+ });
235
+ ```
236
+
237
+ ### **3.5 UserDelete**
238
+ You can call `userDelete` to delete a user. After deleting the user, you would no longer be able to inquire about its user property, but could still query the events data triggered by the user.
239
+ ```javascript
240
+ TDAnalytics.userDelete();
241
+ ```
242
+
243
+ ### **3.6 UserAppend**
244
+ You can call `userAppend` to add user properties of array type.
245
+ ```javascript
246
+ TDAnalytics.userAppend({
247
+ properties: {
248
+ user_list: ["apple", "ball"]
249
+ }
250
+ });
251
+ ```
252
+
253
+ ### **3.7 UserUniqAppend**
254
+ You can call `userUniqAppend` to add user properties of array type. You can delete duplicated user property by calling `userUniqAppend` interface. If you call `userAppend` API, duplicated user property will be merged.
255
+ ```javascript
256
+ //current user_list is ["apple","ball"]
257
+ TDAnalytics.userAppend({
258
+ properties: {
259
+ user_list: ["apple", "ball"]
260
+ }
261
+ });
262
+ //current user_list is ["apple","apple","ball","cube"]
263
+ TDAnalytics.userAppend({
264
+ properties: {
265
+ user_list: ["apple", "cube"]
266
+ }
267
+ });
268
+ //current user_list is ["apple","ball","cube"]
269
+ TDAnalytics.userUniqAppend({
270
+ properties: {
271
+ user_list: ["apple", "cube"]
272
+ }
273
+ });
274
+ ```
275
+
276
+ ## **4. Encryption**
277
+ The SDK supports data encryption using AES+RSA. The data encryption function requires the cooperation of the client and the server. For specific usage methods, please consult customer success manager.
278
+ ```javascript
279
+ var config = {
280
+ appId: "YOUR_APP_ID", // project APP ID
281
+ serverUrl: "YOUR_SERVER_URL", // project server URL
282
+ enableEncrypt: true, // enable data Encryption
283
+ secretKey: {
284
+ publicKey:'YOUR_PUBLIC_KEY', // public key
285
+ version:1 // key version
286
+ }
287
+ };
288
+ // initialization
289
+ TDAnalytics.init(config);
290
+ ```
291
+
292
+ ## **5. Other**
293
+ ### **5.1 ****Device ID**
294
+ You can call `getDeviceId` to obtain the device ID:
295
+ ```javascript
296
+ //the value of device ID is Android ID
297
+ var deviceId = TDAnalytics.getDeviceId();
298
+ ```
299
+
300
+ ### **5.2 Callback Function**
301
+ For interfaces such as **track**, **userSet**, **userSetOnce**, **userAdd**, **userDelete**, the onComplete callback is supported.
302
+ ```javascript
303
+ // the callback is a parameter
304
+ TDAnalytics.track("test", { testkey: 123 }, new Date(), res => {
305
+ console.log(res);
306
+ });
307
+ // the callback in object
308
+ TDAnalytics.track({
309
+ eventName: "test",
310
+ properties: { testkey: 123 },
311
+ time: new Date(),
312
+ onComplete: res => {
313
+ console.log(res);
314
+ }
315
+ });
316
+ ```
317
+
318
+ Callback parameters: code, msg
319
+ code(in Normal mode):
320
+ - 0: success
321
+ - -1: data format error
322
+ - -2: APP ID invalid
323
+ - -3: network/server err
324
+ code(in Debug mode):
325
+ - 0: success
326
+ - -1: data format error
327
+ - 1: field error
328
+ - 2: request data error
329
+ - -3: network/server err
330
+ msg is a description of code
331
+ ### 5.3 Enable Caching Event Data
332
+ Since v2.2.0, event caching is enabled.
333
+ ```javascript
334
+ // config TE SDK
335
+ var config = {
336
+ appId: "YOUR-APP-ID", // project APP ID
337
+ serverUrl: "YOUR-SERVER-URL", // event data report server URL
338
+ enableBatch: true, // enable caching event
339
+ batchConfig: {
340
+ size: 5, // event report batch size
341
+ interval: 5000 // event report time interval, Ms
342
+ }
343
+ };
344
+
345
+ // initialization
346
+ TDAnalytics.init(config);
347
+ ```
348
+
349
+ ### 5.4 **Time Calibration**
350
+ - SDK would use local time as the event time by default. If the user modifies the device time manually, analysis will be affected. At this time, time calibration could be performed to ensure the accuracy of event time.
351
+ ```typescript
352
+ TDAnalytics.calibrateTime(1585633785954);
353
+ ```
354
+
355
+ - You can also set up automatic time calibration. The SDK will then attempt to retrieve the current time from the config interface and calibrate the SDK time. If the correct result is not obtained, subsequent data will be reported using the local time.
356
+ ```typescript
357
+ var config = {
358
+ appId: "YOUR_APPID",
359
+ serverUrl: "YOUR_SERVER_URL",
360
+ enableAutoCalibrated:true
361
+ };
362
+ TDAnalytics.init(config);
363
+ ```
364
+
365
+ ### 5.4 Set the default time zone
366
+ By default, the SDK (>=3.5.0) uses the local machine time as the event occurrence time. You can also specify a time zone by setting the default time zone interface. In this way, all events will be aligned with the time zone you set.
367
+ ```typescript
368
+ var config = {
369
+ appId: "YOUR_APPID",
370
+ serverUrl: "YOUR_SERVER_URL",
371
+ zoneOffset:9
372
+ };
373
+ TDAnalytics.init(config);
374
+ ```
@@ -0,0 +1,35 @@
1
+ ---
2
+ code: cocoscreator_sdk_compliance
3
+ name: "Compliance"
4
+ wikiToken: QzbywaZoWiUHjzkEtL2cKEpmnPc
5
+ parentWikiToken: AL6VwEXmiiAgK7kXq97c8YXNnLc
6
+ updateTime: 1774249147000
7
+ sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=cocoscreator_sdk_compliance
8
+ ---
9
+
10
+ ## **1. Filling out SDK-related Contents in The Privacy Policy**
11
+ ### **1.1 Collecting and Acquiring Data**
12
+ The following content is suggested to fill out in accordance with the actual conditions in the column of collecting and acquiring your personal data in the *Privacy Policy*.
13
+ When you activate and use the APP, we would collect information about your device (including IDFV, AndroidID, OS, device model, device manufacturer, system version, application process information, etc.) through ThinkingAnalytics-SDK to analyze the effect you achieved by using the App via statistics.
14
+ ### **1.2 Sharing with authorized partners**
15
+ The following content is suggested to fill out in accordance with the actual conditions in the column of sharing with authorized partners in the *Privacy Policy*.
16
+ ThinkingAnalytics-SDK: collect information about your device (including IDFV, AndroidID, OS, device model, device manufacturer, system version, application process information, etc.) and your network information to perform data analysis ,so as to improve our products and services
17
+ ## **2. ****SDK**** Compliance Steps**
18
+ ThinkingData SDK needs to be initialized after the user agrees with the *Privacy Policy.*
19
+ ```javascript
20
+ // determine whether to enable data tracking according to the Privacy Policy
21
+ if (authorized) {
22
+ // config SDK infomation
23
+ var config = {
24
+ appId: "YOUR_APPID", // project APP ID
25
+ serverUrl: "YOUR_SERVER_URL", // receiver URL
26
+ autoTrack: { // auto-tracking
27
+ appShow: true, // open APP
28
+ appHide: true // close APP
29
+ }
30
+ };
31
+
32
+ // SDK initialization
33
+ TDAnalytics.init(config);
34
+ }
35
+ ```
@@ -0,0 +1,109 @@
1
+ ---
2
+ code: cocoscreator_sdk_release_note
3
+ name: "Release Notes"
4
+ wikiToken: Ec3FwVBJmioIvhkzJPqc1y53nac
5
+ parentWikiToken: AL6VwEXmiiAgK7kXq97c8YXNnLc
6
+ updateTime: 1780572170000
7
+ sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=cocoscreator_sdk_release_note
8
+ ---
9
+
10
+ ## **v3.6.1**
11
+ **Date:** 06/04/2026 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.6.1.zip)
12
+ **Notes:**
13
+ - Known issue fixes
14
+ ## **v3.5.2**
15
+ **Date:** 03/30/2026 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.5.2.zip)
16
+ **Notes:**
17
+ - Known issue fixes
18
+ ## **v3.5.1**
19
+ **Date:** 03/26/2026 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.5.1.zip)
20
+ **Notes:**
21
+ - Known issue fixes
22
+ ## **v3.5.0**
23
+ **Date:** 03/09/2026 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.5.0.zip)
24
+ **Notes:**
25
+ - Native layer supports timestamp calibration and automatic time calibration.
26
+ - Android and iOS support custom time zones.
27
+ - HarmonyOS is compatible with versions 2.+ and 3.+.
28
+ - Known issue fixes
29
+ ## **v3.4.2**
30
+ **Date:** 12/10/2025 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.4.2.zip)
31
+ **Notes:**
32
+ - Supports automatically collecting events with account, visitor, and static public attributes.
33
+ ## **v3.4.1**
34
+ **Date:** 11/20/2025 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.4.1.zip)
35
+ **Notes:**
36
+ - Known issues fixed
37
+ ## **v3.3.2**
38
+ **Date:** 08/13/2025 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.3.2.zip)
39
+ **Notes:**
40
+ - Support the Taobao Mini Game Platform
41
+ ## **v3.3.0**
42
+ **Date:** 06/06/2025 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.3.0.zip)
43
+ **Notes:**
44
+ - Support HarmonyOS
45
+ - Fix the error when running without automatic collection configuration on the Android platform.
46
+ ## **v3.2.1**
47
+ **Date:** 05/21/2024 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.2.1.zip)
48
+ **Notes:**
49
+ - Known issues fixed
50
+ ## **v3.0.3**
51
+ **Date:** 05/13/2024 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.0.3.zip)
52
+ **Notes:**
53
+ - Fixed the issue of data loss in weak network conditions
54
+ - Support custom time zone
55
+ ## **v3.0.2**
56
+ **Date:** 02/09/2024 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.0.2.zip)
57
+ **Notes:**
58
+ - Refactoring batch mode to send data
59
+ ## **v3.0.1**
60
+ **Date:** 11/24/2023 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.0.1.zip)
61
+ **Notes:**
62
+ - Code optimization
63
+ ## **v3.0.0**
64
+ **Date:** 08/28/2023 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.0.0.zip)
65
+ **Notes:**
66
+ - Code optimization
67
+ ## **v2.2.4**
68
+ **Date:** 07/28/2023 [Download](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v2.2.4.zip)
69
+ **Notes:**
70
+ - Code optimization
71
+ ## **v2.2.0**
72
+ **Date:** 08/15/2022
73
+ **Notes:**
74
+ - Added support for event caching
75
+ - Code optimization
76
+ ## **v2.1.0**
77
+ **Date: **06/28/2022
78
+ **Notes:**
79
+ - Added support for deduplication and appending user attributes
80
+ - Web platform supports ta_page_show/ta_page_hide events
81
+ - Added support for data encryption reporting
82
+ - Code optimization
83
+ ## **v2.0.3**
84
+ **Date: **02/21/2022
85
+ **Notes:**
86
+ - Automatic collection of events supports custom attributes
87
+ - Code optimization
88
+ ## **v2.0.2**
89
+ **Date: **12/31/2021
90
+ **Notes:**
91
+ - Support fun headlines, Facebook, GooglePlay and other small games
92
+ - Code optimization
93
+ ## **v2.0.1**
94
+ **Date:** 11/15/2021
95
+ **Notes:**
96
+ - Code optimization
97
+ - Support for complex data types
98
+ ## **v2.0.0**
99
+ **Date:** 09/15/2021
100
+ **Notes:**
101
+ - Support iOS/Android Native
102
+ - Support pause/start, stop/resume data reporting
103
+ - Support event blacklist
104
+ - Code optimization
105
+ ## **v1.8.2**
106
+ **Date: **06/24/2021
107
+ **Notes:**
108
+ - Support prefabricated attribute acquisition
109
+ - fix bug: When the native/web platform is running, the problem of data sending failure caused by network disconnection and reconnection
@@ -0,0 +1,170 @@
1
+ ---
2
+ code: cocoscreator_sdk_installation
3
+ name: "CocosCreator"
4
+ wikiToken: AL6VwEXmiiAgK7kXq97c8YXNnLc
5
+ parentWikiToken: FgrswqlHEiE45HkQve4cU0NFnbd
6
+ updateTime: 1780572148000
7
+ sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=cocoscreator_sdk_installation
8
+ ---
9
+
10
+ ::: tip
11
+ Before you begin, please read [Preparations before Data Ingestion](https://thinkingdata.feishu.cn/wiki/OhD8we9iai6Xk5kM1QNc8ITRnQe)
12
+ CocosCreator SDK support Android, iOS, Web, Wechat Mini Game, Alipay Mini Game, Bytedance Mini Game, OPPO Quick Game, Huawei Quick Game, VIVO Quick Game, Xiaomi Quick Game, Facebook Mini Game, Google Play Instant Game.
13
+ :::
14
+ **Latest version**** :** v3.6.1
15
+ **Update time****:** 06/04/2026
16
+ **Resource download**: [<text color="blue">SDK</text>](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.6.1.zip)<text color="blue">, </text>[Source Code](https%3A%2F%2Fgithub.com%2FThinkingDataAnalytics%2Fmp-sdk%2Ftags)
17
+ ::: warning Notice
18
+ The current documentation applies to v3.0.0 and later versions. For historical versions, please refer to the [Data Ingestion Guide - CocosCreator (V2)](https%3A%2F%2Fdocs.thinkingdata.cn%2Fta-manual%2Fv4.1%2Fen%2Finstallation%2Finstallation_menu%2Fclient_sdk%2Fgame_engine_sdk_installation%2Fcocoscreator_sdk_installation%2Fcocoscreator_sdk_installation.html), [SDK Download (v2.2.4)](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v2.2.4.zip).
19
+ :::
20
+ ## **1. ****SDK**** Integration**
21
+ Download and unzip [CocosCreator SDK](https%3A%2F%2Fdownload.thinkingdata.cn%2Fclient%2FMPMG%2Fta_cocoscreator_sdk_v3.6.1.zip)
22
+ :::: el-tabs
23
+ ::: el-tab-pane label=TypeScript Integration
24
+ TypeScript project data Integration:
25
+ 1. Add file **tdanalytics.cc****.d.ts** to **assets/libs**. If libs does not exist, create libs folder
26
+ 2. Copy SDK file (**tdanalytics.mg.cocoscreator.min.js**) to **assets/Script**
27
+ :::
28
+ ::: el-tab-pane label=JavaScript Integration
29
+ JavaScript project data Integration:
30
+ 1. Copy SDK file (**tdanalytics.mg.cocoscreator.min.js**) to **assets/Script**
31
+ :::
32
+ ::::
33
+ ## **2. Initialization**
34
+ Import **TDAnalytics**, then you can use CocosCreator SDK:
35
+ ```javascript
36
+ // config SDK infomation
37
+ var config = {
38
+ appId: "YOUR_APPID", // project APP ID
39
+ serverUrl: "YOUR_SERVER_URL", // receiver URL
40
+ autoTrack: { // auto-tracking
41
+ appShow: true, // open APP
42
+ appHide: true // close APP
43
+ }
44
+ };
45
+ // SDK initialization
46
+ TDAnalytics.init(config);
47
+ ```
48
+
49
+ Parameters:
50
+ - **appId**: The APPID of your project, which can be found on the project management page of TE.
51
+ - **serverUrl**:
52
+ - If you are using a SaaS version, please check the receiver URL on this page
53
+ <image token="BlxhbLmVhot19IxqgR5cW8P4nxc" width="1674" height="1318" align="center"/>
54
+
55
+ - If you use the private deployment version, you can customize the data tracking URL .
56
+ <quote-container>
57
+ Since Android 9.0+ restricts HTTP requests by default, please use HTTPS protocol only.
58
+ </quote-container>
59
+
60
+ - **autoTrack**: Optional, enable auto-tracking
61
+ - **appShow**: Enable auto-tracking APP open events
62
+ - **appHide**: Enable auto-tracking APP open events
63
+ <quote-container>
64
+ Note: Before reporting the data, please add the data receiving URL to the request list of the server domain name in the development settings of the WeChat public platform or other platforms.
65
+ </quote-container>
66
+
67
+ ## **3. Common Features**
68
+ We suggest that you read [User Identification Rules](https://thinkingdata.feishu.cn/wiki/Pov9wECdsi2QQsk4NN9cEPsvnyc) before using common functions; SDK would generate a random number that would be used as the distinct ID, and save the ID locally. Before the user logs in, the distinct ID would be used as the identification ID. Note: The distinct ID would change after the user reinstalled the App or used the APP with a new device.
69
+ ### **3.1 Login**
70
+ When the users log in , `login` could be called to set the account ID of the user. TE platform would use the account ID as the identification ID, and this ID would be saved before `logout` is called. The previous account ID would be replaced if `login` has been called multiple times.
71
+ ```javascript
72
+ // The login unique identifier of the user, corresponding to the #account_id in data tracking. #Account_id now is TE
73
+ TDAnalytics.login("TE");
74
+ ```
75
+
76
+ <quote-container>
77
+ Note: Login events wouldn't be uploaded in this method.
78
+ </quote-container>
79
+
80
+ ### 3.2 **Super Properties**
81
+ Super properties refer to properties that each event might have. You can call `setSuperProperties` to set super properties. It is recommended that you set super properties first before sending data. Some important properties (e.g., the membership class of users, source channels, etc.) should be set in each event. At this time, you can set these properties as super properties.
82
+ ```javascript
83
+ var superProperties = {
84
+ channel : "te", //string
85
+ age : 1,//number
86
+ isSuccess : true,//boolean
87
+ birthday : new Date(),//time
88
+ object : { key : "value" },//object
89
+ object_arr : [ { key : "value" } ],//object array
90
+ arr : [ "value" ]//array
91
+ };
92
+ // set super properties
93
+ TDAnalytics.setSuperProperties(superProperties);
94
+ ```
95
+
96
+ Super properties would be saved in local storage, and will not need to be called every time the App is opened. If the super properties set previously are uploaded after calling `setSuperProperties`, previous properties would be replaced.
97
+ - Key is the name of the property and refers to the string type. It must start with a character, and contain numbers, characters (insensitive to case, and upper cases would be transformed into lower cases by TE) and underscores "_", with a maximum length of 50 characters.
98
+ - Value, the value of the property, supports string, numbers, Boolean, time, object, array object, and array
99
+ <quote-container>
100
+ Note: The requirements for event properties and user properties are the same with that for super properties
101
+ </quote-container>
102
+
103
+ ### **3.4 Sending Events**
104
+ You can call `track` to upload events. It is suggested that you set event properties based on the data tracking plan drafted previously. Here is an example of a user buying an item:
105
+ ```javascript
106
+ TDAnalytics.track({
107
+ eventName: "product_buy", // event name
108
+ properties: {
109
+ product_name: "product name"
110
+ } // event properties
111
+ });
112
+ ```
113
+
114
+ The event name is string type. It could only start with a character and could contain figures, characters, and an underline "_", with a maximum length of 50 characters.
115
+ ### **3.5 User Properties**
116
+ You can set general user properties by calling `userSet` API. The original properties would be replaced by the properties uploaded via this API. The data type of newly-created user properties must be the same as the uploaded properties. User name setting is taken as the example here:
117
+ ```javascript
118
+ //current username is TA
119
+ TDAnalytics.userSet({
120
+ properties: { username: "TA" }
121
+ });
122
+ //current username is TE
123
+ TDAnalytics.userSet({
124
+ properties: { username: "TE" }
125
+ });
126
+ ```
127
+
128
+ ## **4. Best Practice**
129
+ The following sample code covers all the above-mentioned operations. It is recommended that the SDK be used in the following steps:
130
+ ```javascript
131
+ var config = {
132
+ appId: "YOUR_APPID",
133
+ serverUrl: "YOUR_SERVER_URL",
134
+ autoTrack: {
135
+ appShow: true,
136
+ appHide: true
137
+ }
138
+ };
139
+ // initialization
140
+ TDAnalytics.init(config);
141
+ //if the user has logged in, the account ID of the user could be set as the unique identifier
142
+ TDAnalytics.login("TA");
143
+ //After setting super properties, each event would have super properties
144
+ var superProperties = {
145
+ channel : "te", //string
146
+ age : 1,//number
147
+ isSuccess : true,//bool
148
+ birthday : new Date(),//object
149
+ object : { key : "value" },//object
150
+ object_arr : [ { key : "value" } ],//object-array
151
+ arr : [ "value" ]//array
152
+ };
153
+ TDAnalytics.setSuperProperties(superProperties);
154
+ // upload events
155
+ TDAnalytics.track({
156
+ eventName: "product_buy", // event name
157
+ properties: {
158
+ product_name: "product name"
159
+ } // event properties
160
+ });
161
+ // set user properties
162
+ TDAnalytics.userSet({
163
+ properties: { username: "TE" }
164
+ });
165
+ ```
166
+
167
+ ###
168
+
169
+ ##
170
+ ##