@thinkingai/ae-cli 1.0.28 → 6.0.16-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -16
- package/README.zh.md +1 -16
- package/dist/{auth-H2376DEF.js → auth-DYC2BGLM.js} +2 -2
- package/dist/{auth-5NSDQFQB.js → auth-GHBMJ5ZR.js} +31 -12
- package/dist/{chunk-CLJF7MQA.js → chunk-2DUEAXV3.js} +1 -1
- package/dist/chunk-5OC7CYCG.js +98 -0
- package/dist/{chunk-SRJIAOBN.js → chunk-6W4QOZAL.js} +10 -0
- package/dist/{chunk-LU7SXK4Q.js → chunk-BJX3GXWC.js} +2 -2
- package/dist/{chunk-WCHI7725.js → chunk-DMMEPCST.js} +47 -6
- package/dist/{chunk-IMBKVXKY.js → chunk-EGEIXA2Z.js} +82 -10
- package/dist/{chunk-AD5V3ZPJ.js → chunk-I5CRVM2S.js} +98 -10
- package/dist/chunk-NOO24N7W.js +11 -0
- package/dist/{chunk-GSJGPNKK.js → chunk-PN3OS34E.js} +1 -1
- package/dist/{chunk-CAQYQA4R.js → chunk-RSHMZ3LG.js} +15 -1
- package/dist/{client-FCMK3XEK.js → client-2UJ63MVQ.js} +3 -3
- package/dist/{config-64G36TJL.js → config-NCUGK6NS.js} +3 -3
- package/dist/index.js +2553 -29
- package/dist/{model-EZ6K7FXI.js → model-SJSOZTRS.js} +5 -7
- package/dist/{raw-VEF3D6UD.js → raw-7NVWSVJP.js} +4 -4
- package/dist/{sync-NRODEVNH.js → sync-GRVO4K3U.js} +120 -23
- package/dist/{te-agent-7U7JLJKU.js → te-agent-KZRIEN4N.js} +468 -47
- package/dist/{te-analysis-A2OSGHQ4.js → te-analysis-VAR4KUOK.js} +145 -28
- package/dist/{te-audience-LI67PPGO.js → te-audience-KMKYI2YJ.js} +23 -14
- package/dist/{te-common-35WVU3C5.js → te-common-WNCZB7R7.js} +5 -4
- package/dist/{te-community-LEAP6PWT.js → te-community-JEEFXPB3.js} +11 -10
- package/dist/{te-dataops-N2LGZBOX.js → te-dataops-GD3XBYCS.js} +33 -32
- package/dist/{te-engage-H7C72Z46.js → te-engage-4XHCTS6I.js} +5 -4
- package/dist/{te-kb-I2OKTBAI.js → te-kb-B62KFP2A.js} +97 -7
- package/dist/{te-meta-HBTIEDRO.js → te-meta-EPZGQN56.js} +10 -9
- package/dist/{te-team-EM5OWRQL.js → te-team-YY24VORI.js} +16 -12
- package/dist/tracking/i18n/resources/cli/en.json +153 -0
- package/dist/tracking/i18n/resources/cli/ja.json +153 -0
- package/dist/tracking/i18n/resources/cli/ko.json +153 -0
- package/dist/tracking/i18n/resources/cli/zh.json +153 -0
- package/package.json +9 -3
- package/skills/ae-agent/SKILL.md +66 -26
- package/skills/ae-analysis/SKILL.md +108 -8
- package/skills/ae-analysis/references/cancel_query.md +39 -0
- package/skills/ae-analysis/references/drilldown_user_events.md +4 -2
- package/skills/ae-analysis/references/drilldown_users.md +4 -2
- package/skills/ae-analysis/references/get_bi_panel_detail.md +35 -0
- package/skills/ae-analysis/references/list_alerts.md +1 -1
- package/skills/ae-analysis/references/list_bi_panels.md +35 -0
- package/skills/ae-analysis/references/list_cluster_members.md +4 -1
- package/skills/ae-analysis/references/list_dashboards.md +1 -1
- package/skills/ae-analysis/references/list_entities.md +1 -1
- package/skills/ae-analysis/references/list_events.md +1 -1
- package/skills/ae-analysis/references/list_metrics.md +1 -1
- package/skills/ae-analysis/references/list_project_mark_times.md +1 -1
- package/skills/ae-analysis/references/list_properties.md +1 -1
- package/skills/ae-analysis/references/list_public_access_links.md +1 -1
- package/skills/ae-analysis/references/list_reports.md +1 -1
- package/skills/ae-analysis/references/list_tag_members.md +4 -1
- package/skills/ae-analysis/references/query_adhoc.md +6 -5
- package/skills/ae-analysis/references/query_bi_panel_data.md +58 -0
- package/skills/ae-analysis/references/query_dashboard_report_data.md +4 -1
- package/skills/ae-analysis/references/query_entity_details.md +5 -2
- package/skills/ae-analysis/references/query_event_details.md +4 -1
- package/skills/ae-analysis/references/query_report_data.md +2 -2
- package/skills/ae-analysis-global/SKILL.md +3 -1
- package/skills/ae-analysis-intent/SKILL.md +132 -0
- package/skills/ae-data-integration-helper/SKILL.md +242 -0
- package/skills/ae-data-integration-helper/references/android_sdk_faq.md +179 -0
- package/skills/ae-data-integration-helper/references/c_sdk_compilation.md +83 -0
- package/skills/ae-data-integration-helper/references/c_sdk_faq.md +416 -0
- package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +123 -0
- package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +365 -0
- package/skills/ae-data-integration-helper/references/index.md +56 -0
- package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +118 -0
- package/skills/ae-data-integration-helper/references/java_sdk_faq.md +406 -0
- package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +129 -0
- package/skills/ae-data-integration-helper/references/logbus2_guide.md +309 -0
- package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +348 -0
- package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +115 -0
- package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +118 -0
- package/skills/ae-data-integration-helper/references/python_sdk_faq.md +232 -0
- package/skills/ae-data-integration-helper/references/restful_api_notes.md +74 -0
- package/skills/ae-data-integration-helper/references/sdk_log_guide.md +316 -0
- package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +107 -0
- package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +115 -0
- package/skills/ae-generate-tracking-code/SKILL.md +629 -0
- package/skills/ae-generate-tracking-code/references/autotrack-enum.md +183 -0
- package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +202 -0
- package/skills/ae-generate-tracking-code/references/datax-config.md +43 -0
- package/skills/ae-generate-tracking-code/references/debug-script.md +102 -0
- package/skills/ae-generate-tracking-code/references/logbus-config.md +200 -0
- package/skills/ae-generate-tracking-code/references/modes.md +83 -0
- package/skills/ae-generate-tracking-code/references/restful-call.md +36 -0
- package/skills/ae-generate-tracking-code/references/sdk-index.md +128 -0
- package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +206 -0
- package/skills/ae-generate-tracking-code/references/snippet-delivery.md +394 -0
- package/skills/ae-generate-tracking-code/references/te-api.md +181 -0
- package/skills/ae-generate-tracking-plan/SKILL.md +1083 -0
- package/skills/ae-generate-tracking-plan/references/autotrack-events.md +273 -0
- package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +425 -0
- package/skills/ae-generate-tracking-plan/references/te-api.md +100 -0
- package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +152 -0
- package/skills/ae-kb/SKILL.md +38 -5
- 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
- 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
- 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
- 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
- package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +72 -0
- package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- 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
- 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
- package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +80 -0
- package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- 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
- 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
- package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.md +40 -0
- package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.xlsx +0 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/wiki/te-docs/index.md +225 -0
- package/wiki/te-docs/raw/advanced-data-type/first-event-check.md +66 -0
- package/wiki/te-docs/raw/advanced-data-type/updated-event.md +87 -0
- package/wiki/te-docs/raw/advanced-data-type.md +16 -0
- package/wiki/te-docs/raw/data-ingestion-guide/about-gdpr.md +55 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/automatic-event-tracking.md +431 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/debugging-and-logging.md +49 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/multi-instance.md +66 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/preset-properties.md +466 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/third-party-integration.md +127 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced.md +513 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/release-notes.md +177 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android.md +228 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/c-advanced.md +419 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/release-notes.md +45 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c.md +110 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/client-side-sdk-faq.md +52 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/cpp-advanced.md +366 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/release-notes.md +103 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp.md +201 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/compliance.md +26 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/automatically-track-events.md +117 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/preset-properties.md +52 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced.md +267 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/release-notes.md +82 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter.md +139 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/compliance.md +26 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/automatically-track-events.md +121 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/debugging-and-logging.md +54 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/preset-properties.md +18 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced.md +305 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/release-notes.md +79 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native.md +137 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/release-notes.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/automatically-track-events.md +54 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/debugging-and-logging.md +53 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/multi-instance.md +42 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/preset-properties.md +119 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/support-native.md +81 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced.md +331 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app.md +156 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform.md +12 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/automatic-event-tracking.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/multi-instance.md +21 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/preset-properties.md +249 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced.md +301 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/release-notes.md +51 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x.md +281 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/automatic-event-tracking.md +70 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/debugging-and-logging.md +57 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/native-support.md +104 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/preset-properties.md +91 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance.md +374 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/compliance.md +35 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/release-notes.md +109 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator.md +170 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/compliance.md +28 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/automatic-event-tracking.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/debugging-and-logging.md +58 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/preset-properties.md +43 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced.md +204 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/release-notes.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona.md +269 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/release-notes.md +177 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/automatic-event-tracking.md +119 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/multi-instance.md +50 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/native-pluggable.md +43 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/preset-properties.md +212 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/third-party-integration.md +77 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced.md +396 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity.md +176 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/release-notes.md +81 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/automatic-event-tracking.md +79 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/debugging-and-logging.md +31 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/preset-properties.md +25 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/third-party-integrations.md +141 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced.md +278 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal.md +190 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine.md +14 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/h5-and-app-sdk-connection.md +147 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/instant-app-and-game.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/automatic-event-tracking.md +272 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/debugging-and-logging.md +77 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/multi-instance.md +142 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/preset-properties.md +484 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/third-party-integrations.md +132 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced.md +682 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/release-notes.md +163 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios.md +304 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/compliance.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/automatic-event-tracking.md +136 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/debugging-and-logging.md +48 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/multi-instance.md +50 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/preset-properties.md +132 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced.md +462 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/release-notes.md +107 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript.md +208 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/debugging-and-logging.md +62 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/preset-properties.md +118 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced.md +556 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos.md +231 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk.md +25 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/filebeat-logstash-user-guide.md +610 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/logbus2-user-guide.md +1215 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/ta-datax-writer-plugin-user-guide.md +278 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools.md +15 -0
- package/wiki/te-docs/raw/data-ingestion-guide/privacy-policy.md +38 -0
- package/wiki/te-docs/raw/data-ingestion-guide/restful-api-user-guide.md +155 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-FM9Cwz.md +37 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-RSyfw7.md +41 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging.md +89 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-OxzWw.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-VuE3wr.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-IauKwI.md +175 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-YAilwk.md +210 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced.md +211 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-PVazwa.md +62 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-TADbwY.md +50 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes.md +69 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-V2W3wv.md +131 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-Zf9Jwl.md +179 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c.md +189 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/debugging-and-logging.md +38 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced.md +113 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/release-notes.md +34 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang.md +155 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/debugging-and-logging.md +42 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced.md +157 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/release-notes.md +72 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang.md +148 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/debugging-and-logging.md +49 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced.md +223 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/release-notes.md +88 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java.md +174 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/debugging-and-logging.md +46 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced.md +182 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/release-notes.md +61 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua.md +121 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/debugging-and-logging.md +55 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced.md +225 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/release-notes.md +45 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs.md +141 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/debugging-and-logging.md +41 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced.md +216 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/release-notes.md +45 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php.md +173 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/debugging-and-logging.md +40 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced.md +206 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/release-notes.md +51 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python.md +116 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/release-notes.md +44 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced.md +189 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby.md +142 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk.md +22 -0
- package/wiki/te-docs/raw/data-ingestion-guide/thinkingdata-privacy-policy.md +37 -0
- package/wiki/te-docs/raw/data-ingestion-guide.md +48 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion/data-rules.md +396 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion/preset-properties-and-system-fields.md +957 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion/user-identification-rules.md +723 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion.md +203 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony.md +172 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/wiki/te-docs/schema.md +16 -0
- package/wiki/te-docs/synthesis/batch-ingest-comparison.md +324 -0
- package/wiki/te-docs/synthesis/js-sdk-cheatsheet.md +538 -0
- package/wiki/te-docs/synthesis/restful-api-reference.md +363 -0
- package/wiki/te-docs/synthesis/sdk-selection.md +372 -0
- package/wiki/te-docs/synthesis/server-sdk-overview.md +449 -0
- package/dist/chunk-KAEZTSXN.js +0 -99
- package/dist/chunk-OJDNO5QY.js +0 -63
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: flutter_sdk_installation
|
|
3
|
+
name: "Flutter"
|
|
4
|
+
wikiToken: OzW1wBUwbiX7D5k8ZaSc6Uy0ndh
|
|
5
|
+
parentWikiToken: JRIIwKqb5iVJMAkCwTic7H17ncg
|
|
6
|
+
updateTime: 1774251995000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=flutter_sdk_installation
|
|
8
|
+
---
|
|
9
|
+
::: tip
|
|
10
|
+
Before you begin, please read [<text color="purple" underline="true">Preparation before Data Ingestion</text>](https://thinkingdata.feishu.cn/wiki/OhD8we9iai6Xk5kM1QNc8ITRnQe)
|
|
11
|
+
:::
|
|
12
|
+
**Latest version:** 3.3.1
|
|
13
|
+
**Update time:** 11/10/2025
|
|
14
|
+
**Resource download: **[SDK](https%3A%2F%2Fgithub.com%2FThinkingDataAnalytics%2Fflutter-sdk%2Ftags)
|
|
15
|
+
## **1. ****SDK**** Integration**
|
|
16
|
+
Add thinking_analytics dependencies to your `pubspec.yaml` file for your Flutter project:
|
|
17
|
+
```yaml
|
|
18
|
+
dependencies:
|
|
19
|
+
thinking_analytics: ^3.3.1
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## **2. Initialization**
|
|
23
|
+
The ThinkingData SDK needs to be initialized after the user agrees to the Privacy Policy
|
|
24
|
+
|
|
25
|
+
<callout emoji="musical_score" background-color="light-orange" border-color="light-orange">
|
|
26
|
+
Versions 3.3.0 and later do not need to add await
|
|
27
|
+
</callout>
|
|
28
|
+
|
|
29
|
+
```dart
|
|
30
|
+
import 'package:thinking_analytics/thinking_analytics.dart';
|
|
31
|
+
if (authorized)
|
|
32
|
+
{
|
|
33
|
+
//init
|
|
34
|
+
await TDAnalytics.init(APPID, SERVER_URL);
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Instruction on parameters:
|
|
39
|
+
- `APPID`: The APPID of your project, which can be found on the project management page of the TE.
|
|
40
|
+
- `SERVER_URL`:
|
|
41
|
+
- If you are using a SaaS version, please check the receiver URL on this page
|
|
42
|
+
|
|
43
|
+
<image token="EvjEbQjETodTuLxuDl7c4KXsnFd" width="1674" height="1318" align="center"/>
|
|
44
|
+
|
|
45
|
+
- If you use the private deployment version, you can customize the data tracking URL .
|
|
46
|
+
|
|
47
|
+
<quote-container>
|
|
48
|
+
Since Android 9.0+ restricts HTTP requests by default, please use HTTPS protocol only.
|
|
49
|
+
</quote-container>
|
|
50
|
+
|
|
51
|
+
## **3. Common Features**
|
|
52
|
+
We suggested that you read [User Identification Rules](https://thinkingdata.feishu.cn/wiki/Pov9wECdsi2QQsk4NN9cEPsvnyc) before using common features; 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 use the APP with a new device.
|
|
53
|
+
### **3.1 Login**
|
|
54
|
+
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 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.
|
|
55
|
+
```dart
|
|
56
|
+
// The login unique identifier of the user, corresponding to the #account_id in data tracking. #Account_id now is TE
|
|
57
|
+
TDAnalytics.login("TA");
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
<quote-container>
|
|
61
|
+
**Login events wouldn't be uploaded in this method.**
|
|
62
|
+
</quote-container>
|
|
63
|
+
|
|
64
|
+
### 3.2 **Super Properties**
|
|
65
|
+
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.
|
|
66
|
+
```dart
|
|
67
|
+
TDAnalytics.setSuperProperties({
|
|
68
|
+
"channel": "ta",//character string
|
|
69
|
+
"age": 1,//number
|
|
70
|
+
"isSuccess": true,//boolean
|
|
71
|
+
"birthday": DateTime.now(),//time
|
|
72
|
+
"object": {"key": "value"},//object
|
|
73
|
+
"object_arr": [{"key": "value"}],//array object
|
|
74
|
+
"arr": ["value"]//array
|
|
75
|
+
});
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
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.
|
|
79
|
+
- 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.
|
|
80
|
+
- Value, the value of the property, supports string, numbers, Boolean, time, object, array object, and array
|
|
81
|
+
|
|
82
|
+
<quote-container>
|
|
83
|
+
**The requirements for event properties and user properties are the same with that for super properties**
|
|
84
|
+
</quote-container>
|
|
85
|
+
|
|
86
|
+
### **3.3 Automatically Track Events**
|
|
87
|
+
The following code is an example of install, active and inactive events. To get more information about the automatic tracking of SDK, please refer to [Detailed introduction of automatic tracking function](https://thinkingdata.feishu.cn/wiki/V2adwX3TziCBZzkaDUkcbBw6nJf)
|
|
88
|
+
```dart
|
|
89
|
+
TDAnalytics.enableAutoTrack(TDAutoTrackEventType.APP_START |
|
|
90
|
+
TDAutoTrackEventType.APP_END |
|
|
91
|
+
TDAutoTrackEventType.APP_INSTALL |
|
|
92
|
+
TDAutoTrackEventType.APP_CRASH);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### **3.4 Sending Events**
|
|
96
|
+
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:
|
|
97
|
+
```dart
|
|
98
|
+
TDAnalytics.track('product_buy', properties: <String, dynamic>{'product_name': 'tv'});
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
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.
|
|
102
|
+
### **3.5 User Properties**
|
|
103
|
+
You can set general user properties by calling `user_set` 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:
|
|
104
|
+
```dart
|
|
105
|
+
TDAnalytics.userSet(<String, dynamic>{'user_name': 'TA'}); //the username now is TA
|
|
106
|
+
TDAnalytics.userSet(<String, dynamic>{'user_name': 'TE'}); //the username now is TE
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## **4. Best Practice**
|
|
110
|
+
The following sample code covers all the above-mentioned operations. It is recommended that the SDK be used in the following steps:
|
|
111
|
+
```dart
|
|
112
|
+
import 'package:thinking_analytics/thinking_analytics.dart';
|
|
113
|
+
if (authorized)
|
|
114
|
+
{
|
|
115
|
+
//SDK init
|
|
116
|
+
await TDAnalytics.init('APP_ID', 'https://SERVER_URL');
|
|
117
|
+
//if the user has logged in, the account ID of the user could be set as the unique identifier
|
|
118
|
+
TDAnalytics.login('TA');
|
|
119
|
+
//After setting super properties, each event would have super properties
|
|
120
|
+
TDAnalytics.setSuperProperties({
|
|
121
|
+
"channel": "ta",//string
|
|
122
|
+
"age": 1,//number
|
|
123
|
+
"isSuccess": true,//boolean
|
|
124
|
+
"birthday": DateTime.now(),//time
|
|
125
|
+
"object": {"key": "value"},//object
|
|
126
|
+
"object_arr": [{"key": "value"}],//array object
|
|
127
|
+
"arr": ["value"]//array
|
|
128
|
+
});
|
|
129
|
+
//Enable auto-tracking
|
|
130
|
+
TDAnalytics.enableAutoTrack(TDAutoTrackEventType.APP_START |
|
|
131
|
+
TDAutoTrackEventType.APP_END |
|
|
132
|
+
TDAutoTrackEventType.APP_INSTALL |
|
|
133
|
+
TDAutoTrackEventType.APP_CRASH);
|
|
134
|
+
//upload events
|
|
135
|
+
TDAnalytics.track('product_buy', properties: <String, dynamic>{'product_name': 'productName'});
|
|
136
|
+
//Set user properties
|
|
137
|
+
TDAnalytics.userSet(<String, dynamic>{'user_name': 'TE'});
|
|
138
|
+
}
|
|
139
|
+
```
|
package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/compliance.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: rn_sdk_compliance
|
|
3
|
+
name: "Compliance"
|
|
4
|
+
wikiToken: IyWTwtrPYi7IupkpiTOcUuPNnRh
|
|
5
|
+
parentWikiToken: E1F3wNsc3iW7dckzhH9cA2h2nIg
|
|
6
|
+
updateTime: 1774249189000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=rn_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
|
+
```java
|
|
20
|
+
// determine whether to enable data tracking according to the Privacy Policy
|
|
21
|
+
import thinkingdata from "react-native-thinking-data";
|
|
22
|
+
if (authorized)
|
|
23
|
+
{
|
|
24
|
+
TDAnalytics.init({appId: "xxx",serverUrl: "https://xxx",});
|
|
25
|
+
}
|
|
26
|
+
```
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: rn_sdk_autotrack
|
|
3
|
+
name: "Automatically Track Events"
|
|
4
|
+
wikiToken: EVwUwiZdYi3jhEkcAhHcNxSrnkd
|
|
5
|
+
parentWikiToken: GKCGw8YI4itlKEk4miNccirjnfc
|
|
6
|
+
updateTime: 1774249183000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=rn_sdk_autotrack
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## **1. Enable Auto-Tracking**
|
|
11
|
+
You can call `enableAutoTrack` and pass in a List of type `TDAutoTrackEventType` to enable the auto-tracking function:
|
|
12
|
+
1. Install: behavior of APP installation,the corresponding type is `TDAutoTrackEventType.APP_INSTALL`
|
|
13
|
+
2. Open APP: including activiting APP and resuming APP from the background, the corresponding type is `TDAutoTrackEventType.APP_START`
|
|
14
|
+
3. Close APP: including disabling the APP and calling in the background, the corresponding type is `TDAutoTrackEventType.APP_END`
|
|
15
|
+
4. Crash:Record crash information when the APP crashes, the corresponding type is `TDAutoTrackEventType.APP_CRASH`
|
|
16
|
+
1. Page view:The APP is triggered when using Navigator route jump,the corresponding type is `TDAutoTrackEventType.APP_VIEW_SCREEN`
|
|
17
|
+
1. Element click:The APP control click event will be triggered when the user clicks the control. The corresponding type is `TDAutoTrackEventType.APP_CLICK`
|
|
18
|
+
pay attention to auto-tracking event:
|
|
19
|
+
1. The auto-tracking event is implemented in the native SDK, so Dynamic Public Properties cannot be added to the automatic collection event at present.
|
|
20
|
+
1. If you need to set the distinct ID or public properties, please complete the settings before enabling automatic event collection.
|
|
21
|
+
Example of enabling auto-tracking:
|
|
22
|
+
```typescript
|
|
23
|
+
TDAnalytics.enableAutoTrack(TDAutoTrackEventType.APP_START | TDAutoTrackEventType.APP_END | TDAutoTrackEventType.APP_INSTALL| TDAutoTrackEventType.APP_CRASH | TDAutoTrackEventType.APP_CLICK | TDAutoTrackEventType.APP_VIEW_SCREEN);
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## **2. Detailed Introduction**
|
|
27
|
+
### 2.1 Page view events
|
|
28
|
+
The app's page browsing events support React Navigation ^2.0 ~ ^6.0.
|
|
29
|
+
The APP is triggered when using Navigator route jump. The detailed event description is as follows:
|
|
30
|
+
- Event Name:ta_app_view
|
|
31
|
+
- Preset Properties:
|
|
32
|
+
`#screen_name`:String type, page name
|
|
33
|
+
`#title`:String type, page title
|
|
34
|
+
`#referrer`:String type, forward address
|
|
35
|
+
- Steps to start:
|
|
36
|
+
- Call enableAutoTrack, passing in TDAutoTrackEventType.APP_VIEW_SCREEN
|
|
37
|
+
```typescript
|
|
38
|
+
TDAnalytics.enableAutoTrack(TDAutoTrackEventType.APP_VIEW_SCREEN);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- Execute script
|
|
42
|
+
```typescript
|
|
43
|
+
node node_modules/react-native-thinking-data/ThinkingDataRNHook.js -run
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- Set custom page attributes: When navigating via Navigation, you can add custom attributes in params. The SDK will automatically use the settings in params to supplement or override the attributes of the App's page browsing events.
|
|
47
|
+
```typescript
|
|
48
|
+
navigation.navigate('PageB', {
|
|
49
|
+
thinkingdataparams: {
|
|
50
|
+
name: 'name_A',
|
|
51
|
+
'#title': 'page_two',
|
|
52
|
+
'#screen_name': "page_B"
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
If you need to customize #title and #screen_name, you can pass them in the thinkingdataparams parameter.
|
|
58
|
+
- Ignore individual page view events: Adding the TDIgnoreViewScreen property to thinkingdataparams with a value of true will ignore the page view event.
|
|
59
|
+
```typescript
|
|
60
|
+
navigation.navigate('PageB', {
|
|
61
|
+
thinkingdataparams: {
|
|
62
|
+
name: 'name_A',
|
|
63
|
+
'#title': 'page_two',
|
|
64
|
+
'#screen_name': "page_B",
|
|
65
|
+
TDIgnoreViewScreen: true
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 2.1 Element click event
|
|
71
|
+
The APP control click event will be triggered when the user clicks the control
|
|
72
|
+
- Event Name:ta_app_click
|
|
73
|
+
- Preset Properties:
|
|
74
|
+
`#screen_name`:String type, page name
|
|
75
|
+
`#title`:String type, page title
|
|
76
|
+
`#element_content`:String type, element content
|
|
77
|
+
- Steps to start:
|
|
78
|
+
- Call enableAutoTrack, passing in TDAutoTrackEventType.APP_CLICK
|
|
79
|
+
```typescript
|
|
80
|
+
TDAnalytics.enableAutoTrack(TDAutoTrackEventType.APP_CLICK);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- Execute script
|
|
84
|
+
```typescript
|
|
85
|
+
node node_modules/react-native-thinking-data/ThinkingDataRNHook.js -run
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
- Set custom properties for the control: Add the custom property thinkingdataparams to the control.
|
|
89
|
+
```typescript
|
|
90
|
+
<CustomButton
|
|
91
|
+
title="button"
|
|
92
|
+
thinkingdataparams={{
|
|
93
|
+
name: 'button',
|
|
94
|
+
pro_key:'pro_value'
|
|
95
|
+
}}
|
|
96
|
+
/>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
- Ignore click events for individual controls: Adding the TDIgnoreViewClick property to thinkingdataparams with a value of true will ignore click events for that control.
|
|
100
|
+
```typescript
|
|
101
|
+
<CustomButton
|
|
102
|
+
title="button"
|
|
103
|
+
thinkingdataparams={{
|
|
104
|
+
name: 'button',
|
|
105
|
+
pro_key:'pro_value'
|
|
106
|
+
TDIgnoreViewClick: true
|
|
107
|
+
}}
|
|
108
|
+
/>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## **3****. Set Auto-tracking Event Public Properties**
|
|
112
|
+
You can call `setAutoTrackProperties` to set or update custom properties
|
|
113
|
+
```javascript
|
|
114
|
+
TDAnalytics.enableAutoTrack({
|
|
115
|
+
autoTrackTypes: TDAutoTrackEventType.APP_START,
|
|
116
|
+
properties: {
|
|
117
|
+
auto_name: "xxx",
|
|
118
|
+
auto_age: "xxx"
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: rn_sdk_debug
|
|
3
|
+
name: "Debugging and Logging"
|
|
4
|
+
wikiToken: R4uvwDh42iiwV8kS9mcc70Zbnhc
|
|
5
|
+
parentWikiToken: GKCGw8Y4IitlKEk4miNccirjnfc
|
|
6
|
+
updateTime: 1774249185000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=rn_sdk_debug
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
During the process of SDK integration, you can perform real-time debugging by checking SDK's logs in the IDE console or using the Debug feature of TE.
|
|
11
|
+
## Printing Log
|
|
12
|
+
You can set enableLog to true when the SDK is initialized, and turn on the SDK log switch. After turning on, the reported data will be printed on the IDE console.
|
|
13
|
+
```java
|
|
14
|
+
TDAnalytics.init({
|
|
15
|
+
appId: "xxx",
|
|
16
|
+
serverUrl: "https://xxx",
|
|
17
|
+
enableLog: true
|
|
18
|
+
});
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
<quote-container>
|
|
22
|
+
After opening the log, you can check data tracking of SDK by filtering logs related to ThinkingAnalytics in IDE.
|
|
23
|
+
</quote-container>
|
|
24
|
+
|
|
25
|
+
## **2. Debugging**
|
|
26
|
+
You need to follow the following two steps to enable the Debug mode:
|
|
27
|
+
1. Enable the debug mode at the client side
|
|
28
|
+
The sample code for enabling the Debug mode on the client side is as follows:
|
|
29
|
+
```dart
|
|
30
|
+
/*
|
|
31
|
+
Set the operation mode as the Debug mode
|
|
32
|
+
NORMAL mode: the data would be saved in caches and reported according to relevant cache policies under the NORMAL mode by default. It is recommended to use the mode in an online environment
|
|
33
|
+
Debug mode: report data item by item. If problems occur, the user would be notified with logs and anomalies. It is recommended to use the Debug mode in an online environment
|
|
34
|
+
DebugOnly mode: data would be verified without being stored; it is not recommended to use the DebugOnly mode in an online environment
|
|
35
|
+
*/
|
|
36
|
+
TDAnalytics.init({
|
|
37
|
+
appId: "xxx",
|
|
38
|
+
serverUrl: "https://xxx",
|
|
39
|
+
mode:"debug"
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
2. Add Device
|
|
44
|
+
To avoid launching the Debug mode in the production environment, it is required that only specified device can enable Debug mode. The Debug mode can only be enabled for devices whose IDs have been configured in the "Debugger"sector on the "Tracking Management" page of TE when the client side has enabled the Debug mode.
|
|
45
|
+
<image token="STbkbWvtMoMYTExnVIycuhA5nAb" width="1280" height="590" align="center"/>
|
|
46
|
+
|
|
47
|
+
Device ID could be got by the following three means:
|
|
48
|
+
- #Device_id property in the event data of TE
|
|
49
|
+
- Client-side log: DeviceID would be printed as log after SDK is initialized
|
|
50
|
+
- Call API:[Device ID](https%3A%2F%2Fthinkingdata.feishu.cn%2Fwiki%2FKRaFwoiOZiprEEkEKN1cER8an6g%3FfromScene%3DspaceOverview)
|
|
51
|
+
<quote-container>
|
|
52
|
+
The Debug mode may undermine the data tracking quality and stability of the App. It could only be used for data verification at the integration stage, and should not be used in the online environment.
|
|
53
|
+
</quote-container>
|
|
54
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: rn_sdk_preset_properties
|
|
3
|
+
name: "Preset Properties"
|
|
4
|
+
wikiToken: RfDTw9QYNiY0AckcJZicnBOon7b
|
|
5
|
+
parentWikiToken: GKCGw8YI4itlKEk4miNccirjnfc
|
|
6
|
+
updateTime: 1774251993000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=rn_sdk_preset_properties
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Description of Preset Properties
|
|
11
|
+
The preset properties collected by iOS and Android platforms will have certain differences. For details, please refer to the following documents:
|
|
12
|
+
[iOS platform preset properties](https://thinkingdata.feishu.cn/wiki/Ny61w1VIbi5Qeok94fRcJhulned),[android platform preset properties](https://thinkingdata.feishu.cn/wiki/MBnZwHrO0ibkd9ksCSBc7dxEnic)
|
|
13
|
+
## **2. Getting Preset Properties**
|
|
14
|
+
```javascript
|
|
15
|
+
async () => {
|
|
16
|
+
var presetProperties = await TDAnalytics.getPresetProperties()
|
|
17
|
+
}
|
|
18
|
+
```
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: rn_sdk_advanced
|
|
3
|
+
name: "ReactNative-Advanced"
|
|
4
|
+
wikiToken: GKCGw8YI4itlKEk4miNccirjnfc
|
|
5
|
+
parentWikiToken: E1F3wNsc3iW7dckzhH9cA2h2nIg
|
|
6
|
+
updateTime: 1774251992000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v6.0&lan=en-US&code=rn_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 `identify` 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
|
+
//Return distinct ID
|
|
26
|
+
async () => {
|
|
27
|
+
var distinct_id = await TDAnalytics.getDistinctId()
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### **1.2 Login**
|
|
32
|
+
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.
|
|
33
|
+
```java
|
|
34
|
+
// The login unique identifier of the user, corresponding to the #account_id in data tracking. #Account_id now is TE
|
|
35
|
+
TDAnalytics.login("TA");
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
<quote-container>
|
|
39
|
+
**Login events wouldn't be uploaded in this method.**
|
|
40
|
+
</quote-container>
|
|
41
|
+
|
|
42
|
+
### **1.3 Removing Account ID**
|
|
43
|
+
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.
|
|
44
|
+
```java
|
|
45
|
+
TDAnalytics.logout();
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
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.
|
|
49
|
+
<quote-container>
|
|
50
|
+
**Logout events wouldn't be uploaded in this method.**
|
|
51
|
+
</quote-container>
|
|
52
|
+
|
|
53
|
+
## **Sending Events**
|
|
54
|
+
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 service scenario.
|
|
55
|
+
### **2.1 Ordinary Events**
|
|
56
|
+
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:
|
|
57
|
+
```javascript
|
|
58
|
+
TDAnalytics.track({
|
|
59
|
+
eventName:"product_buy",
|
|
60
|
+
properties:{
|
|
61
|
+
'product_name':'tv'
|
|
62
|
+
}
|
|
63
|
+
})
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### **2.2 First Events**
|
|
67
|
+
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.
|
|
68
|
+
```javascript
|
|
69
|
+
TDAnalytics.trackFirst({
|
|
70
|
+
eventName:'device_activation',
|
|
71
|
+
properties: {
|
|
72
|
+
KEY_NUMBER: 1.02,
|
|
73
|
+
KEY_STRING: "name",
|
|
74
|
+
KEY_LIST: [1, 2, 3],
|
|
75
|
+
KEY_BOOL: true,
|
|
76
|
+
KEY_DateTime: "2020-05-12 06:27:18.371"
|
|
77
|
+
},
|
|
78
|
+
eventId:'YOUR_ACCOUNT_ID'
|
|
79
|
+
})
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
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:
|
|
83
|
+
```javascript
|
|
84
|
+
//set the user ID as the first_check_id of the first event to track the first initialization event of the user.
|
|
85
|
+
TDAnalytics.trackFirst({
|
|
86
|
+
eventName:'device_activation',
|
|
87
|
+
properties: {
|
|
88
|
+
KEY_NUMBER: 1.02,
|
|
89
|
+
KEY_STRING: "name",
|
|
90
|
+
KEY_LIST: [1, 2, 3],
|
|
91
|
+
KEY_BOOL: true,
|
|
92
|
+
KEY_DateTime: "2020-05-12 06:27:18.371"
|
|
93
|
+
},
|
|
94
|
+
eventId:'TA'
|
|
95
|
+
})
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
<quote-container>
|
|
99
|
+
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.
|
|
100
|
+
</quote-container>
|
|
101
|
+
|
|
102
|
+
### **2.3 Updatable Events**
|
|
103
|
+
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.
|
|
104
|
+
```javascript
|
|
105
|
+
//The event property status is 3 after reporting, with the price being 100
|
|
106
|
+
TDAnalytics.trackUpdate({
|
|
107
|
+
eventName:'UPDATABLE_EVENT',
|
|
108
|
+
properties: { status: 3, price: 100},
|
|
109
|
+
eventId:'test_event_id'
|
|
110
|
+
})
|
|
111
|
+
//The event property status is 5 after reporting, with the price remaining the same
|
|
112
|
+
TDAnalytics.trackUpdate({
|
|
113
|
+
eventName:'UPDATABLE_EVENT',
|
|
114
|
+
properties: { status: 5},
|
|
115
|
+
eventId:'test_event_id'
|
|
116
|
+
})
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### **2.4 Overwritable Event****s**
|
|
120
|
+
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.
|
|
121
|
+
```javascript
|
|
122
|
+
//The event property status is 3 after reporting, with the price being 100
|
|
123
|
+
TDAnalytics.trackOverwrite({
|
|
124
|
+
eventName:'OVERWRITE_EVENT',
|
|
125
|
+
properties: { status: 3, price: 100},
|
|
126
|
+
eventId:'test_event_id'
|
|
127
|
+
})
|
|
128
|
+
//The event property status is 5 after reporting, with the price deleted
|
|
129
|
+
TDAnalytics.trackOverwrite({
|
|
130
|
+
eventName:'OVERWRITE_EVENT',
|
|
131
|
+
properties: { status: 5},
|
|
132
|
+
eventId:'test_event_id'
|
|
133
|
+
})
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### **2.5 Super Properties**
|
|
137
|
+
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`.
|
|
138
|
+
#### **2.5.1 Static Super Properties**
|
|
139
|
+
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.
|
|
140
|
+
```javascript
|
|
141
|
+
TDAnalytics.setSuperProperties({ vip_level: 2})
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
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.
|
|
145
|
+
```javascript
|
|
146
|
+
//clear a certain super property
|
|
147
|
+
TDAnalytics.unsetSuperProperty("superKey")
|
|
148
|
+
//clear all certain super properties
|
|
149
|
+
TDAnalytics.clearSuperProperties()
|
|
150
|
+
//obtain all certain super properties
|
|
151
|
+
async () => {
|
|
152
|
+
var properties = await TDAnalytics.getSuperProperties()
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### **2.5.2 ****Dynamic Super Properties**
|
|
157
|
+
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 get the properties in `getDynamicSuperProperties` during event tracking automatically, and add such properties to the event triggered.
|
|
158
|
+
```javascript
|
|
159
|
+
var coin = 0;
|
|
160
|
+
TDAnalytics.setDynamicSuperProperties(function () {
|
|
161
|
+
return { coin: coin++ }
|
|
162
|
+
})
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### **2.6 Timing Events**
|
|
166
|
+
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.
|
|
167
|
+
```javascript
|
|
168
|
+
//The following instance has recorded the time the user spent on a certain product page
|
|
169
|
+
//The user enters the product page and starts the timing
|
|
170
|
+
TDAnalytics.timeEvent("stay_shop")
|
|
171
|
+
/**do someting
|
|
172
|
+
.......
|
|
173
|
+
**/
|
|
174
|
+
//the timing would end when the user leaves the product page. "stay_shop" event would carry#duration, a property representing event duration.
|
|
175
|
+
TDAnalytics.track({eventName:"stay_shop")
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## **3. User Properties**
|
|
179
|
+
User property setting APIs supported by TE include: `userSet`,`userSetOnce`,`userAdd`,`userUnset`,`userDel``ete` , `userAppend`,`userUniqAppend`
|
|
180
|
+
### 3.1 userSet
|
|
181
|
+
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:
|
|
182
|
+
```javascript
|
|
183
|
+
//the username now is TA
|
|
184
|
+
TDAnalytics.userSet({ username: "TA" });
|
|
185
|
+
//the username now is TE
|
|
186
|
+
TDAnalytics.userSet({ username: "TE" });
|
|
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({first_payment_time: "2018-01-01 01:23:45.678" });
|
|
194
|
+
//first_payment_time is still 2018-01-01 01:23:45.678
|
|
195
|
+
TDAnalytics.userSetOnce({first_payment_time: "2018-12-31 01:23:45.678" });
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### 3.3 userAdd
|
|
199
|
+
When you want to upload numeric attributes for cumulative operation, you can call `userAdd`.
|
|
200
|
+
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:
|
|
201
|
+
```javascript
|
|
202
|
+
//in this case, the total_revenue is 30
|
|
203
|
+
TDAnalytics.userAdd({ total_revenue: 30 });
|
|
204
|
+
//in this case, the total_revenue is 678
|
|
205
|
+
TDAnalytics.userAdd({ total_revenue: 648 });
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
<quote-container>
|
|
209
|
+
The set attribute key is a string, and the Value is only allowed to be a numeric value.
|
|
210
|
+
</quote-container>
|
|
211
|
+
|
|
212
|
+
### 3.4 userUnset
|
|
213
|
+
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.
|
|
214
|
+
```javascript
|
|
215
|
+
TDAnalytics.userUnset("usersetkey")
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### 3.5 userDelete
|
|
219
|
+
You can call `userDel` to delete a user. After deleting the user, you would no longer be able to inquire about its user property, but could still obtain the events data triggered by the user.
|
|
220
|
+
```java
|
|
221
|
+
TDAnalytics.userDelete()
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### 3.6 userAppend
|
|
225
|
+
You can call `userAppend` to add user properties of array type.
|
|
226
|
+
```javascript
|
|
227
|
+
TDAnalytics.userAppend({ user_list: ["apple", "ball"] });
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### 3.7 userUniqAppend
|
|
231
|
+
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 might not be deleted.
|
|
232
|
+
```javascript
|
|
233
|
+
//in this case, the property value of user_list is ["apple","ball"]
|
|
234
|
+
TDAnalytics.userAppend({ user_list: ["apple", "ball"] });
|
|
235
|
+
//in this case, the property value of user_list is ["apple","apple","ball","cube"]
|
|
236
|
+
TDAnalytics.userAppend({ user_list: ["apple", "cube"] });
|
|
237
|
+
//in this case, the property value of user_list is ["apple","ball","cube"]
|
|
238
|
+
TDAnalytics.userUniqAppend({ user_list: ["apple", "cube"] });
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## **4. Encryption**
|
|
242
|
+
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.
|
|
243
|
+
```javascript
|
|
244
|
+
import TDAnalytics, { TDAutoTrackEventType,TDThirdPartyType,TDTrackStatus} from "react-native-thinking-data";
|
|
245
|
+
TDAnalytics.init({
|
|
246
|
+
appId: "xxx",
|
|
247
|
+
serverUrl: "https://xxx",
|
|
248
|
+
enableEncrypt: true,
|
|
249
|
+
secretKey: {
|
|
250
|
+
publicKey: "xxx",
|
|
251
|
+
version: 1,
|
|
252
|
+
symmetricEncryption: "AES",
|
|
253
|
+
asymmetricEncryption: "RSA"
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## **5. Enable H5 Connection **
|
|
259
|
+
If you need to connect with the JavaScript SDK that tracks the data of H5, please call the following API. For detailed information, please refer to [<text underline="true">H5 and APP SDK Connection</text>](https://thinkingdata.feishu.cn/wiki/FOFZwGHJii1Jm2ke88DcFrrJnUb)
|
|
260
|
+
```javascript
|
|
261
|
+
<WebView
|
|
262
|
+
ref={webViewRef}
|
|
263
|
+
source={localHtmlFile}
|
|
264
|
+
onMessage={ event => {
|
|
265
|
+
console.log(event.nativeEvent.data);
|
|
266
|
+
TDAnalytics.h5ClickHandler(event.nativeEvent.data);
|
|
267
|
+
}}
|
|
268
|
+
javaScriptEnabled={true}
|
|
269
|
+
injectedJavaScript='window.ThinkingData_APP_ReactNative_Bridge = function(data) { window.ReactNativeWebView.postMessage(data); };'
|
|
270
|
+
/>
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
## **6****. Other**
|
|
274
|
+
### **6****.1 ****Device ID**
|
|
275
|
+
You can call `getDeviceId` to obtain the device ID:
|
|
276
|
+
```javascript
|
|
277
|
+
async () => {
|
|
278
|
+
var device_id = await TDAnalytics.getDeviceId()
|
|
279
|
+
}
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### **6****.2 Time Calibration**
|
|
283
|
+
SDK would use local time as the event time by default. If the user modifies the device time manually, analysis would be affected. At this time, time calibration could be performed to ensure the accuracy of event time. We provide two time calibration methods: `timestamp` and `NTP.`
|
|
284
|
+
- You can use the current timestamp obtained from the server to calibrate the time of SDK. Thereafter, all calling operations not assigned with a specific time would use the calibrated time as the occurrence time, including event data and user property setting.
|
|
285
|
+
```java
|
|
286
|
+
// 1585633785954 is the current unix time stamp, with the unit being millisecond; the corresponding Beijing time is 2020-03-31 13:49:45
|
|
287
|
+
TDAnalytics.calibrateTime(1585633785954);
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
- You can also set the address of NTP server, after which SDK would try to obtain the current time from the uploaded NTP server address and calibrate the SDK time. If you failed to obtain the current return results within the default timeout interval (3s), local time would be used to track data.
|
|
291
|
+
```java
|
|
292
|
+
//use the NTP service of Apple Inc for time calibration
|
|
293
|
+
TDAnalytics.calibrateTimeWithNtp("time.apple.com");
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
<quote-container>
|
|
297
|
+
1. Time calibration may fail due to unstable NTP server. It is suggested that you use a time stamp for time calibration as the priority
|
|
298
|
+
2. You should select your NTP server address carefully to ensure that the device of the user could obtain server time rapidly under sound network conditions
|
|
299
|
+
</quote-container>
|
|
300
|
+
|
|
301
|
+
### 6.3 Flush
|
|
302
|
+
You can call the `flush` API to report data to TE immediately .
|
|
303
|
+
```javascript
|
|
304
|
+
TDAnalytics.flush();
|
|
305
|
+
```
|