@thinkingai/ae-cli 1.0.30 → 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/dist/{auth-U25QJU5D.js → auth-DYC2BGLM.js} +2 -3
- package/dist/{auth-H3GJD55A.js → auth-GHBMJ5ZR.js} +33 -17
- package/dist/{chunk-CLJF7MQA.js → chunk-2DUEAXV3.js} +1 -1
- package/dist/{chunk-SF3KTPIC.js → chunk-5OC7CYCG.js} +2 -2
- package/dist/{chunk-SRJIAOBN.js → chunk-6W4QOZAL.js} +10 -0
- package/dist/{chunk-I42JGQ2J.js → chunk-BJX3GXWC.js} +3 -5
- package/dist/{chunk-GLNZSDKO.js → chunk-DMMEPCST.js} +4 -6
- package/dist/{chunk-VJFUB3H3.js → chunk-I5CRVM2S.js} +3 -3
- package/dist/{chunk-GSJGPNKK.js → chunk-PN3OS34E.js} +1 -1
- package/dist/{chunk-JM34JPCO.js → chunk-RSHMZ3LG.js} +178 -4
- package/dist/{client-IN42F223.js → client-2UJ63MVQ.js} +3 -4
- package/dist/{config-64G36TJL.js → config-NCUGK6NS.js} +3 -3
- package/dist/index.js +2530 -28
- package/dist/{model-VZCYNIOG.js → model-SJSOZTRS.js} +2 -2
- package/dist/{raw-WJIWC6YP.js → raw-7NVWSVJP.js} +5 -7
- package/dist/{sync-NVASAISS.js → sync-GRVO4K3U.js} +3 -3
- package/dist/{te-agent-YV4DXEXK.js → te-agent-KZRIEN4N.js} +468 -46
- package/dist/{te-analysis-CB3DA5I5.js → te-analysis-VAR4KUOK.js} +144 -29
- package/dist/{te-audience-W7SCQFC7.js → te-audience-KMKYI2YJ.js} +22 -15
- package/dist/{te-common-FBXVWBSI.js → te-common-WNCZB7R7.js} +4 -5
- package/dist/{te-community-LNVDZSGW.js → te-community-JEEFXPB3.js} +10 -11
- package/dist/{te-dataops-IPCSSWYH.js → te-dataops-GD3XBYCS.js} +11 -12
- package/dist/{te-engage-KARARMIR.js → te-engage-4XHCTS6I.js} +4 -5
- package/dist/{te-kb-2Z2CARN3.js → te-kb-B62KFP2A.js} +96 -8
- package/dist/{te-meta-PDKLMWXN.js → te-meta-EPZGQN56.js} +9 -10
- package/dist/{te-team-SW5B7DHO.js → te-team-YY24VORI.js} +6 -7
- 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 +65 -25
- 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-U6TKB3IV.js +0 -171
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Auto-track Event Enum Reference
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 自动采集事件 = auto-track event | 枚举值 = enum value | 上报事件名 = reported event name | bit = bit flag | SDK 初始化后开启 = enable after SDK init | 猜测 = guess (prohibited — always lookup from this table)
|
|
4
|
+
|
|
5
|
+
> Used by `snippet-delivery.md` / `client-sdk-insert.md` when generating auto-track event switch code.
|
|
6
|
+
> **Must copy from wiki docs directly** — do not guess enum values.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Unity SDK(v3.x)— `TDAutoTrackEventType`
|
|
11
|
+
|
|
12
|
+
| 枚举值 | 上报事件名 | bit |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| `TDAutoTrackEventType.None` | (禁用) | `0` |
|
|
15
|
+
| `TDAutoTrackEventType.AppStart` | `ta_app_start` | `1 << 0` |
|
|
16
|
+
| `TDAutoTrackEventType.AppEnd` | `ta_app_end` | `1 << 1` |
|
|
17
|
+
| `TDAutoTrackEventType.AppCrash` | `ta_app_crash` | `1 << 4` |
|
|
18
|
+
| `TDAutoTrackEventType.AppInstall` | `ta_app_install` | `1 << 5` |
|
|
19
|
+
| `TDAutoTrackEventType.AppSceneLoad` | `ta_scene_loaded` | `1 << 6` |
|
|
20
|
+
| `TDAutoTrackEventType.AppSceneUnload` | `ta_scene_unloaded` | `1 << 7` |
|
|
21
|
+
| `TDAutoTrackEventType.All` | 全部 | OR 组合 |
|
|
22
|
+
|
|
23
|
+
**微信小游戏特殊映射**:
|
|
24
|
+
|
|
25
|
+
| 枚举值 | 上报事件名 |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `TDAutoTrackEventType.AppStart` | `ta_mg_show` |
|
|
28
|
+
| `TDAutoTrackEventType.AppEnd` | `ta_mg_hide` |
|
|
29
|
+
| `TDAutoTrackEventType.AppInstall` | `ta_mg_launch` |
|
|
30
|
+
|
|
31
|
+
**代码示例**(从 wiki 直接复制):
|
|
32
|
+
|
|
33
|
+
```csharp
|
|
34
|
+
// 开启全部自动采集事件
|
|
35
|
+
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.All);
|
|
36
|
+
|
|
37
|
+
// 开启启动和关闭事件的自动采集
|
|
38
|
+
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Android SDK — `TDAnalytics.TDAutoTrackEventType`
|
|
44
|
+
|
|
45
|
+
| 枚举值 | 上报事件名 |
|
|
46
|
+
|---|---|
|
|
47
|
+
| `TDAnalytics.TDAutoTrackEventType.APP_START` | `ta_app_start` |
|
|
48
|
+
| `TDAnalytics.TDAutoTrackEventType.APP_END` | `ta_app_end` |
|
|
49
|
+
| `TDAnalytics.TDAutoTrackEventType.APP_INSTALL` | `ta_app_install` |
|
|
50
|
+
| `TDAnalytics.TDAutoTrackEventType.APP_VIEW_SCREEN` | `ta_app_view` |
|
|
51
|
+
| `TDAnalytics.TDAutoTrackEventType.APP_CLICK` | `ta_app_click` |
|
|
52
|
+
| `TDAnalytics.TDAutoTrackEventType.APP_CRASH` | `ta_app_crash` |
|
|
53
|
+
|
|
54
|
+
**代码示例**(从 wiki 直接复制):
|
|
55
|
+
|
|
56
|
+
```java
|
|
57
|
+
TDAnalytics.enableAutoTrack(TDAnalytics.TDAutoTrackEventType.APP_START | TDAnalytics.TDAutoTrackEventType.APP_END
|
|
58
|
+
| TDAnalytics.TDAutoTrackEventType.APP_INSTALL | TDAnalytics.TDAutoTrackEventType.APP_VIEW_SCREEN
|
|
59
|
+
| TDAnalytics.TDAutoTrackEventType.APP_CLICK | TDAnalytics.TDAutoTrackEventType.APP_CRASH);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## iOS SDK — `TDAutoTrackEventType`
|
|
65
|
+
|
|
66
|
+
**⚠️ iOS 枚举名与 Android/Unity 不同,必须使用 iOS SDK 实际的驼峰命名,不得照搬 Android 的 `APP_START` 下划线格式。**
|
|
67
|
+
|
|
68
|
+
| Objective-C 枚举值 | Swift 枚举值 | 上报事件名 |
|
|
69
|
+
|---|---|---|
|
|
70
|
+
| `TDAutoTrackEventTypeAppStart` | `.appStart` | `ta_app_start` |
|
|
71
|
+
| `TDAutoTrackEventTypeAppEnd` | `.appEnd` | `ta_app_end` |
|
|
72
|
+
| `TDAutoTrackEventTypeAppInstall` | `.appInstall` | `ta_app_install` |
|
|
73
|
+
| `TDAutoTrackEventTypeAppViewScreen` | `.appViewScreen` | `ta_app_view` |
|
|
74
|
+
| `TDAutoTrackEventTypeAppClick` | `.appClick` | `ta_app_click` |
|
|
75
|
+
| `TDAutoTrackEventTypeAppCrash` | `.appCrash` | `ta_app_crash` |
|
|
76
|
+
|
|
77
|
+
**快捷枚举(开启全部)**:
|
|
78
|
+
|
|
79
|
+
| Objective-C | Swift |
|
|
80
|
+
|---|---|
|
|
81
|
+
| `TDAutoTrackEventTypeAll` | `.all` |
|
|
82
|
+
|
|
83
|
+
**Objective-C 代码示例**(从 wiki 直接复制):
|
|
84
|
+
|
|
85
|
+
```objc
|
|
86
|
+
// 开启全部自动采集事件(快捷方式)
|
|
87
|
+
[TDAnalytics enableAutoTrack:TDAutoTrackEventTypeAll];
|
|
88
|
+
|
|
89
|
+
// 或逐个开启
|
|
90
|
+
[TDAnalytics enableAutoTrack:TDAutoTrackEventTypeAppInstall
|
|
91
|
+
| TDAutoTrackEventTypeAppStart
|
|
92
|
+
| TDAutoTrackEventTypeAppEnd
|
|
93
|
+
| TDAutoTrackEventTypeAppViewScreen
|
|
94
|
+
| TDAutoTrackEventTypeAppClick
|
|
95
|
+
| TDAutoTrackEventTypeAppCrash];
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Swift 代码示例**:
|
|
99
|
+
|
|
100
|
+
```swift
|
|
101
|
+
// 开启全部自动采集事件(快捷方式)
|
|
102
|
+
TDAnalytics.enableAutoTrack(.all)
|
|
103
|
+
|
|
104
|
+
// 或逐个开启
|
|
105
|
+
TDAnalytics.enableAutoTrack([.appStart, .appEnd, .appInstall, .appViewScreen, .appClick, .appCrash])
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## JavaScript SDK(H5)— `autoTrack` 配置对象
|
|
111
|
+
|
|
112
|
+
| 配置项 | 说明 |
|
|
113
|
+
|---|---|
|
|
114
|
+
| `autoTrack.pageShow` | 页面显示(对应 `ta_page_show`) |
|
|
115
|
+
| `autoTrack.pageHide` | 页面隐藏(对应 `ta_page_hide`) |
|
|
116
|
+
| `autoTrack.appHide` | App 隐藏(微信小程序) |
|
|
117
|
+
|
|
118
|
+
**代码示例**(从 wiki 直接复制):
|
|
119
|
+
|
|
120
|
+
```js
|
|
121
|
+
import ta from "thinkingdata-browser";
|
|
122
|
+
ta.init({
|
|
123
|
+
appId: "YOUR_APP_ID",
|
|
124
|
+
serverUrl: "https://YOUR_SERVER_URL/sync_js",
|
|
125
|
+
autoTrack: {
|
|
126
|
+
pageShow: true,
|
|
127
|
+
pageHide: true,
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**单独开启**(调用 quick):
|
|
133
|
+
|
|
134
|
+
```js
|
|
135
|
+
ta.quick("autoTrack");
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## 微信小程序 SDK — `autoTrack` 配置对象
|
|
141
|
+
|
|
142
|
+
| 配置项 | 说明 |
|
|
143
|
+
|---|---|
|
|
144
|
+
| `autoTrack.mpLaunch` | 初始化(`ta_mp_launch`) |
|
|
145
|
+
| `autoTrack.mpShow` | 启动(`ta_mp_show`) |
|
|
146
|
+
| `autoTrack.mpHide` | 隐藏(`ta_mp_hide`) |
|
|
147
|
+
| `autoTrack.mpView` | 页面浏览(`ta_mp_view`) |
|
|
148
|
+
| `autoTrack.mpShare` | 转发(`ta_mp_share`) |
|
|
149
|
+
| `autoTrack.mpClick` | 点击(`ta_mp_click`) |
|
|
150
|
+
| `autoTrack.addFavorite` | 收藏(`ta_add_favorite`) |
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## OpenHarmony SDK — `TDAutoTrackEventType`
|
|
155
|
+
|
|
156
|
+
| 枚举值 | 上报事件名 |
|
|
157
|
+
|---|---|
|
|
158
|
+
| `TDAutoTrackEventType.APP_START` | `ta_app_start` |
|
|
159
|
+
| `TDAutoTrackEventType.APP_END` | `ta_app_end` |
|
|
160
|
+
| `TDAutoTrackEventType.APP_INSTALL` | `ta_app_install` |
|
|
161
|
+
| `TDAutoTrackEventType.APP_VIEW_SCREEN` | `ta_app_view` |
|
|
162
|
+
| `TDAutoTrackEventType.APP_CLICK` | `ta_app_click` |
|
|
163
|
+
| `TDAutoTrackEventType.APP_CRASH` | `ta_app_crash` |
|
|
164
|
+
|
|
165
|
+
**代码示例**(从 wiki 直接复制):
|
|
166
|
+
|
|
167
|
+
```typescript
|
|
168
|
+
TDAnalytics.enableAutoTrack(context,
|
|
169
|
+
TDAutoTrackEventType.APP_START | TDAutoTrackEventType.APP_INSTALL
|
|
170
|
+
| TDAutoTrackEventType.APP_END | TDAutoTrackEventType.APP_VIEW_SCREEN
|
|
171
|
+
| TDAutoTrackEventType.APP_CLICK | TDAutoTrackEventType.APP_CRASH
|
|
172
|
+
);
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Cocos2d-x / CocosCreator / LayaAir / Unreal
|
|
178
|
+
|
|
179
|
+
游戏引擎 SDK 的自动采集枚举值请直接读取对应 wiki 文档:
|
|
180
|
+
- `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/automatic-event-tracking.md`
|
|
181
|
+
- `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/automatic-event-tracking.md`
|
|
182
|
+
- `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/layaair/进阶指南/自动采集.md`
|
|
183
|
+
- `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/automatic-event-tracking.md`
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Mode A — Client SDK Code Insertion
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 客户端 SDK = client SDK | 代码插入 = code insertion/injection | 前置检查 = pre-check | 集成方式 = integration method | 埋点 = tracking/event tracking | 业务触发点 = business trigger point | 公共属性 = super property | 用户属性 = user property | 自动采集事件 = auto-track event | 插入位置预览 = insertion site preview | 语言风格校验 = language style check
|
|
4
|
+
|
|
5
|
+
## ⚠️ Mandatory Pre-checks (do not skip)
|
|
6
|
+
|
|
7
|
+
**Before inserting code, execute in the following order. Each step must be completed before proceeding to the next:**
|
|
8
|
+
|
|
9
|
+
### Stage 0: Read SDK Main Document (must complete, never skip)
|
|
10
|
+
|
|
11
|
+
1. **Read `references/sdk-index.md`** to find the SDK's main document path
|
|
12
|
+
2. **Read the SDK main document's "Integrate SDK" section** to understand:
|
|
13
|
+
- **npm package name** (e.g. `thinkingdata-browser`, `@thinkingdata/react-native-sdk`)
|
|
14
|
+
- **import/require statement** syntax
|
|
15
|
+
- **All integration methods** (e.g. JS SDK has npm / CDN sync / CDN async)
|
|
16
|
+
3. Choose integration method based on project characteristics:
|
|
17
|
+
- Has `package.json` + build tool → npm integration
|
|
18
|
+
- Plain HTML / no build tool → CDN method
|
|
19
|
+
4. Read `~/.ae-cli/wiki/te-docs/synthesis/sdk-selection.md` to confirm appType's npm package name and init signature
|
|
20
|
+
5. Read the corresponding cheatsheet (e.g. `js-sdk-cheatsheet.md`) for additional details
|
|
21
|
+
|
|
22
|
+
**⚠️ Prohibited**: Skipping Stage 0 and writing code directly, guessing integration methods, using unverified CDN URLs
|
|
23
|
+
|
|
24
|
+
### Stage 0 Mid-point Language Identification (do not skip)
|
|
25
|
+
|
|
26
|
+
When reading the SDK main document, if it uses multi-language tab format (e.g. `::: el-tab-pane label=Java` / `label=Kotlin` or ` ```java` / ` ```kotlin`), **must confirm the language for the current task**:
|
|
27
|
+
|
|
28
|
+
- Android docs: identify `label=Java` vs `label=Kotlin` code blocks
|
|
29
|
+
- iOS docs: identify `label=Objective-C` vs `label=Swift` code blocks
|
|
30
|
+
- Other multi-language docs: same principle
|
|
31
|
+
|
|
32
|
+
**⚠️ Prohibited**: Copying code examples without confirming language, mixing code snippets from different languages.
|
|
33
|
+
|
|
34
|
+
### Stage 0.5: SDK Integration Confirmation (must execute after Stage 0)
|
|
35
|
+
|
|
36
|
+
Based on the integration method chosen in Step 3, confirm with user whether SDK is already integrated:
|
|
37
|
+
|
|
38
|
+
**Integration methods that require code changes (npm / Gradle / CocoaPods / Maven / pip / go get, etc.)**:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Project detected using <integration-method>. Configuration file changes needed to add dependencies.
|
|
42
|
+
|
|
43
|
+
Should I modify the config file directly to add SDK dependencies?
|
|
44
|
+
- yes → Edit the config file (e.g. package.json / build.gradle / Podfile), then proceed to Stage 1
|
|
45
|
+
- no → Reference the docs below to complete SDK integration, then reply yes to continue
|
|
46
|
+
|
|
47
|
+
Documentation: <wiki doc path>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- User `yes` → Execute Edit on config file, then proceed to Stage 1
|
|
51
|
+
- User `no` → Display doc path, pause and wait for user completion
|
|
52
|
+
|
|
53
|
+
**Integration methods that don't require code changes (CDN script tag / UnityPackage / manual file placement, etc.)**:
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Project uses <integration-method>. No config file changes needed.
|
|
57
|
+
|
|
58
|
+
Please reference the docs below to complete SDK integration, then reply yes to continue.
|
|
59
|
+
|
|
60
|
+
Documentation: <wiki doc path>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Wait for user confirmation, then proceed to Stage 1.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Stage 1: Explore
|
|
68
|
+
1. Grep entry points: `src/main.*`, `src/App.*`, `pages/_app.*`, `index.html`
|
|
69
|
+
2. Grep existing tracking: `ta\.track|thinkingdata|TA\.init|// @tracking`
|
|
70
|
+
3. Grep routing: `react-router|vue-router|next/router`
|
|
71
|
+
4. Grep user state: `(handleLogin|onLogin|signIn|doLogin)` / `(handleLogout|signOut)`
|
|
72
|
+
5. **Grep business trigger points** (finding where to insert track() calls — the correct insertion sites):
|
|
73
|
+
- Button/click: `(onClick|handleClick|onTap|@click|\.click\()`
|
|
74
|
+
- Form submit: `(onSubmit|handleSubmit|onFormSubmit)`
|
|
75
|
+
- Page entry: `(onMounted|onShow|onLoad|componentDidMount|useEffect.*\[.*\])`
|
|
76
|
+
- Purchase/payment: `(onPurchase|handlePurchase|doPurchase|payOrder)`
|
|
77
|
+
- Search: `(onSearch|handleSearch|doSearch)`
|
|
78
|
+
- Custom events: `(emit|trigger|dispatch|sendEvent)`
|
|
79
|
+
- Astro-specific:
|
|
80
|
+
- Entry: `src/middleware.ts` (SSR middleware, suitable for page_view), `src/layouts/*.astro` (global layout for init), `astro.config.mjs` (integrations)
|
|
81
|
+
- Client components: `<script>` blocks in `*.astro` files, React/Vue island components with `client:*` directives
|
|
82
|
+
- **For each business trigger found, record its file:line and business meaning** for Stage 2 mapping
|
|
83
|
+
|
|
84
|
+
## Stage 2: Insertion Plan (markdown table)
|
|
85
|
+
|
|
86
|
+
**Platform filtering**:
|
|
87
|
+
- xlsx "Platform" value `客户端` / `client` → `platform: "client"` (client-only collection)
|
|
88
|
+
- xlsx "Platform" value `客户端,服务端` / `client,server` → `platform: "both"` (both platforms)
|
|
89
|
+
- xlsx "Platform" value `服务端` / `server` → `platform: "server"` (server-only, do NOT generate in client)
|
|
90
|
+
- Only insert events where `platform === "client"` or `platform === "both"`
|
|
91
|
+
|
|
92
|
+
**⚠️ Auto-track event handling**:
|
|
93
|
+
- Auto-track events (e.g. `ta_page_view`, `ta_app_crash`, etc.) are automatically collected by the SDK, **do NOT manually insert track() code for them**
|
|
94
|
+
- However, you MUST **enable the corresponding auto-track switch** after SDK initialization for them to take effect
|
|
95
|
+
- ⚠️ **MUST read `references/autotrack-enum.md`** first to look up correct enum values before writing code; never guess (e.g. Unity's `AppStart` ≠ `APP_START`)
|
|
96
|
+
- Mark which auto-track events need to be enabled in the insertion plan for user confirmation in Stage 3
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
## SDK Initialization
|
|
100
|
+
- File: <path>:<line>
|
|
101
|
+
- Code: init(...) with appId/SERVER_URL
|
|
102
|
+
|
|
103
|
+
## Auto-track Event Switches (if needed)
|
|
104
|
+
- Enum values: check `references/autotrack-enum.md`, do not guess
|
|
105
|
+
- File: <path>:<line>
|
|
106
|
+
- enableAutoTrack({...}) or quick("autoTrack")
|
|
107
|
+
|
|
108
|
+
## Super Properties
|
|
109
|
+
- File: <path>:<line>
|
|
110
|
+
- setSuperProperties({...})
|
|
111
|
+
|
|
112
|
+
## User Properties
|
|
113
|
+
- File: <path>:<line>
|
|
114
|
+
- user_set / user_setOnce / user_add
|
|
115
|
+
|
|
116
|
+
## Event Group: <tag>
|
|
117
|
+
- <event_name>: <file>:<line> [Business action: <business meaning>]
|
|
118
|
+
Insertion rationale: <why insert here, e.g. "called after user clicks pay button">
|
|
119
|
+
- ...
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**⚠️ Business action mapping is the core of the insertion plan**:
|
|
123
|
+
- Every event must be mapped to a concrete business action (e.g. "user clicks login button", "order submit success callback")
|
|
124
|
+
- Business actions must come from Stage 1 exploration results, never guess
|
|
125
|
+
- If no business trigger point is found for an event, mark it in the plan as `⚠️ No trigger point found; manual confirmation needed`
|
|
126
|
+
|
|
127
|
+
**⚠️ After Stage 2, MUST show the "Insertion Site Preview"** for user to confirm each event's insertion point matches business expectations:
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
## Insertion Site Preview
|
|
131
|
+
|
|
132
|
+
| Event | File Location | Business Action | Confirm |
|
|
133
|
+
|---|---|---|---|
|
|
134
|
+
| payment_success | src/pages/Pay.jsx:42 | User clicks "Confirm Payment" button | ok / change |
|
|
135
|
+
| user_login | src/pages/Login.jsx:28 | User clicks "Login" button | ok / change |
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
- User `ok` → proceed to Stage 3
|
|
139
|
+
- User says "change" → remap specific events to correct business trigger points
|
|
140
|
+
- **Do not skip this preview and go directly to Stage 3**
|
|
141
|
+
|
|
142
|
+
After showing, ask user `ok` to enter Stage 3, or "go back to event X to remap".
|
|
143
|
+
|
|
144
|
+
## Stage 3: Batched Edit
|
|
145
|
+
- Batch 1: SDK init + super properties
|
|
146
|
+
- Batch 2: User properties
|
|
147
|
+
- Batch 3..N: Grouped by `event_tag`
|
|
148
|
+
- Each batch: use Edit tool; print file list + added line count after completion, ask `ok / undo`
|
|
149
|
+
- `undo` → reverse Edit to rollback the batch
|
|
150
|
+
|
|
151
|
+
## Stage 3.5: ⚠️ Language Style Check (do not skip)
|
|
152
|
+
|
|
153
|
+
After each batch Edit, perform language style checks on modified files:
|
|
154
|
+
|
|
155
|
+
| Language | Check Rules |
|
|
156
|
+
|---|---|
|
|
157
|
+
| **Kotlin** | File must not contain `;` (trailing semicolons); fix immediately if found |
|
|
158
|
+
| **Java** | Every statement must end with `;`; fix immediately if missing |
|
|
159
|
+
| **Swift** | Do not use `var` for optional types — use `let` + `?`; do not use `@objc` unless necessary |
|
|
160
|
+
| **Objective-C** | Method calls must use `[self method]` syntax — no `.` calls; must use `nil`, not `null` |
|
|
161
|
+
|
|
162
|
+
**If language style errors are found**:
|
|
163
|
+
1. Immediately replace with correct syntax
|
|
164
|
+
2. Note in the batch confirmation: `⚠️ Auto-corrected: <error description> → <correct syntax>`
|
|
165
|
+
|
|
166
|
+
## Stage 4: Summary
|
|
167
|
+
- Print all modified files + newly added events per file
|
|
168
|
+
- Suggest user consider running Mode F (debug)
|
|
169
|
+
|
|
170
|
+
## Code Style
|
|
171
|
+
- Singleton: create `src/lib/tracking.ts` (if not exists), export `ta` singleton
|
|
172
|
+
- Prefix each track call with `// @tracking <event_name>` comment
|
|
173
|
+
- Do NOT add try/catch
|
|
174
|
+
- Event names / property names strictly from plan, do not modify
|
|
175
|
+
- Astro: SDK init goes in `<script>` block of `src/layouts/BaseLayout.astro`; page_view uses middleware or `Astro.url.pathname` listener
|
|
176
|
+
|
|
177
|
+
## Pre-check
|
|
178
|
+
- `git status --porcelain` not empty → refuse, prompt user to commit/stash first
|
|
179
|
+
|
|
180
|
+
## Stage 5: Verification Steps (insert mode only)
|
|
181
|
+
|
|
182
|
+
**⚠️ Insert mode: debug is off by default. Do not guide user to the Debug page to view data.**
|
|
183
|
+
|
|
184
|
+
### Verification Steps
|
|
185
|
+
1. **Integrate SDK** (follow steps based on integration method)
|
|
186
|
+
- **npm / package manager** (JavaScript/React Native/Flutter/uni-app): Run `npm install` or equivalent to install SDK
|
|
187
|
+
- **Build tool integration** (Unity/Unreal): Add SDK dependency via Package Manager or Epic Games Launcher
|
|
188
|
+
- **Dependency management** (Android/iOS): Add SDK dependency in `build.gradle` / `Podfile`
|
|
189
|
+
- **Manual download** (Web H5/Mini-program/Game engine, etc.): Download SDK files and place in project directory
|
|
190
|
+
|
|
191
|
+
Reference the official docs in `references/sdk-index.md` for each SDK
|
|
192
|
+
|
|
193
|
+
2. **Open AE Real-time Data page** (NOT the Debug page)
|
|
194
|
+
- `https://<host>/#/data/realtime`
|
|
195
|
+
- Since debug mode is off, data goes through the normal upload pipeline — only the real-time data page can show it
|
|
196
|
+
|
|
197
|
+
3. **Trigger events by interacting with the app** and check if data appears
|
|
198
|
+
|
|
199
|
+
### Pre-launch Checklist
|
|
200
|
+
- [ ] Confirm `debug: false` or no debug field in config
|
|
201
|
+
- [ ] SDK correctly integrated (dependencies added / files placed)
|
|
202
|
+
- [ ] Real-time data page shows event uploads
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Mode D — DataX job.json
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 数据源类型 = data source type | 连接信息 = connection info | 库表名 = database/table name | 查询条件 = query condition | reader 插件 = reader plugin | columnMapping = column-to-property mapping | push_url = TE receiver URL
|
|
4
|
+
|
|
5
|
+
## Ask User
|
|
6
|
+
1. Data source type (MySQL / Oracle / PostgreSQL / OSS / HDFS / Other)
|
|
7
|
+
2. Connection info / database & table names / query conditions (or file path)
|
|
8
|
+
|
|
9
|
+
## Deliverable
|
|
10
|
+
`.ae-cli/output/datax-job.json`:
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"job": {
|
|
15
|
+
"content": [{
|
|
16
|
+
"reader": {
|
|
17
|
+
"name": "<mysqlreader|oraclereader|...>",
|
|
18
|
+
"parameter": { "connection": [ { "jdbcUrl": ["<TODO>"], "table": ["<TODO>"] } ], "username": "<TODO>", "password": "<TODO>", "column": ["*"] }
|
|
19
|
+
},
|
|
20
|
+
"writer": {
|
|
21
|
+
"name": "tewriter",
|
|
22
|
+
"parameter": {
|
|
23
|
+
"push_url": "<SERVER_URL>",
|
|
24
|
+
"appid": "<appId>",
|
|
25
|
+
"eventName": "<from plan>",
|
|
26
|
+
"columnMapping": { "<db_col>": "<te_prop>" }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}],
|
|
30
|
+
"setting": { "speed": { "channel": 2 } }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`.ae-cli/output/datax-README.md`:
|
|
36
|
+
- Launch: `python datax.py datax-job.json`
|
|
37
|
+
- Prerequisite: DataX runtime environment
|
|
38
|
+
- `<TODO>` checklist
|
|
39
|
+
|
|
40
|
+
## Generation Steps
|
|
41
|
+
1. Determine the reader plugin name
|
|
42
|
+
2. Fill `eventName` + `columnMapping` using the first event from plan (or user-specified event)
|
|
43
|
+
3. Write both files
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Mode F — Debug / Validation Script
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 校验脚本 = validation/debug script | 设备绑定 = device binding | Debug 模式 = debug mode | TDDebugConsumer = debug mode consumer (validates data format, does NOT persist to production) | 实时调试 = real-time debugging | 代表业务事件 = representative business events | SDK 日志打印 = SDK log printing
|
|
4
|
+
|
|
5
|
+
## Deliverable
|
|
6
|
+
`te-debug.<ext>` single file; used to quickly verify SDK configuration is correct.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Debug Mode Verification
|
|
11
|
+
|
|
12
|
+
When using debug mode, you must add the debug device ID in AE Admin before data will appear on the AE **Debug Data** page.
|
|
13
|
+
|
|
14
|
+
### Verification Steps
|
|
15
|
+
|
|
16
|
+
| Step | Action |
|
|
17
|
+
|---|---|
|
|
18
|
+
| 1 | Add debug device ID in AE Admin: Tracking Management → Debug Data → Add Device |
|
|
19
|
+
| 2 | Run debug script to send test events |
|
|
20
|
+
| 3 | Open AE Debug page: `https://<host>/#/data/debug` |
|
|
21
|
+
| 4 | Filter by `distinct_id` or `device_id` to view uploaded data |
|
|
22
|
+
|
|
23
|
+
### Common Notes for Client and Server SDKs
|
|
24
|
+
|
|
25
|
+
- Both use **TDDebugConsumer** (or the platform's equivalent debug mode API)
|
|
26
|
+
- Both require adding device ID in AE Admin to view data on the Debug page
|
|
27
|
+
- On validation failure, the SDK prints error logs or throws exceptions (behavior varies by language)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Debug Mode API by Platform
|
|
32
|
+
|
|
33
|
+
### Client SDK
|
|
34
|
+
|
|
35
|
+
| SDK | Debug Mode API | Reference Doc |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| Unity SDK | `TDConfig config = new TDConfig(appId, serverUrl); config.mode = TDMode.DEBUG; TDAnalytics.Init(config);` | `data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/debugging-and-logging.md` |
|
|
38
|
+
| Android SDK | `TDConfig config = new TDConfig(this, serverUrl, appId); config.setMode(TDConfig.Mode.DEBUG); TDAnalytics.init(this, config);` | `data-ingestion-guide/client-sdk/android/android-advanced/debugging-and-logging.md` |
|
|
39
|
+
| iOS SDK | `TDConfig *config = [[TDConfig alloc] initWithAppId:appId serverUrl:serverUrl]; config.mode = TDModeDebug; [TDAnalytics startWithConfig:config];` | `data-ingestion-guide/client-sdk/ios/ios-advanced/debugging-and-logging.md` |
|
|
40
|
+
| JavaScript SDK | `ta.init({ appId: appId, server_url: serverUrl, debug: true });` | `data-ingestion-guide/client-sdk/javascript/javascript-advanced/debugging-and-logging.md` |
|
|
41
|
+
| Mini Program SDK | `ta.init({ appId: appId, server_url: serverUrl, debug: true });` | `客户端-sdk/小程序小游戏/进阶指南/实时调试.md` |
|
|
42
|
+
| CocosCreator | See doc | `data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/debugging-and-logging.md` |
|
|
43
|
+
| Cocos2d-x | See doc | `data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/debugging-and-logging.md` |
|
|
44
|
+
| Unreal SDK | See doc | `data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/debugging-and-logging.md` |
|
|
45
|
+
| Flutter SDK | See doc | `data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/debugging-and-logging.md` |
|
|
46
|
+
| React Native | See doc | `data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/debugging-and-logging.md` |
|
|
47
|
+
|
|
48
|
+
### Server SDK
|
|
49
|
+
|
|
50
|
+
| Language | DebugConsumer API | Reference Doc |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| Java | `new TDDebugConsumer(serverUrl, appId, deviceId)` | `data-ingestion-guide/server-sdk/java/java-advanced/debugging-and-logging.md` |
|
|
53
|
+
| Python | `TDDebugConsumer(serverUrl, appId, device_id="...")` | `data-ingestion-guide/server-sdk/python/python-advanced/debugging-and-logging.md` |
|
|
54
|
+
| Go | `NewDebugConsumerWithDeviceId(serverUrl, appId, false, deviceId)` | `data-ingestion-guide/server-sdk/golang/golang-advanced/debugging-and-logging.md` |
|
|
55
|
+
| Node.js | `ThinkingData.initWithDebugMode(appId, serverUrl, { deviceId: "..." })` | `data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/debugging-and-logging.md` |
|
|
56
|
+
| PHP | `new TDDebugConsumer(serverUrl, appId, deviceId)` | `data-ingestion-guide/server-sdk/php/php-advanced/debugging-and-logging.md` |
|
|
57
|
+
| Ruby | `TDDebugConsumer.new(serverUrl, appId, deviceId)` | `data-ingestion-guide/server-sdk/ruby/ruby-advanced/debugging-and-logging.md` |
|
|
58
|
+
| Erlang | `tddebug_consumer:new(ServerUrl, AppId, DeviceId)` | `data-ingestion-guide/server-sdk/erlang/erlang-advanced/debugging-and-logging.md` |
|
|
59
|
+
| Lua | `TDDebugConsumer.new(serverUrl, appId, deviceId)` | `data-ingestion-guide/server-sdk/lua/lua-advanced/debugging-and-logging.md` |
|
|
60
|
+
| C | `td_debug_consumer_new(serverUrl, appId, deviceId)` | `data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging.md` |
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Skill Generation Checkpoints
|
|
65
|
+
|
|
66
|
+
When generating a debug script, the skill must:
|
|
67
|
+
|
|
68
|
+
1. **First read the corresponding SDK's "Real-time Debug" doc** (see reference doc paths below) to confirm the SDK's debug mode API and usage (the table above is an index reference only; actual usage may differ)
|
|
69
|
+
2. Use the corresponding platform's **TDDebugConsumer** or debug mode API
|
|
70
|
+
3. Set `deviceId` (e.g. `claude-test-device`) for AE Admin device registration
|
|
71
|
+
4. Read `SERVER_URL` and `appId` from plan (NOT web host)
|
|
72
|
+
5. Pick 3 representative business events from plan (if object array properties exist, construct them fully)
|
|
73
|
+
6. Recommend enabling SDK log printing (for easier troubleshooting)
|
|
74
|
+
7. File name must match class name (e.g. Unity: `TEDebugScript.cs`)
|
|
75
|
+
|
|
76
|
+
### Post-delivery Prompt
|
|
77
|
+
|
|
78
|
+
**Platform filtering notes**:
|
|
79
|
+
- xlsx "Platform" column values map to `platform` field:
|
|
80
|
+
- `客户端` / `client` → `platform: "client"`
|
|
81
|
+
- `服务端` / `server` → `platform: "server"`
|
|
82
|
+
- `客户端,服务端` / `client,server` → `platform: "both"`
|
|
83
|
+
- Client debug script: only include events where `platform === "client"` or `platform === "both"`
|
|
84
|
+
- Server debug script: only include events where `platform === "server"` or `platform === "both"`
|
|
85
|
+
- If xlsx has no platform column: include all events (backward compatible)
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Verification steps:
|
|
89
|
+
1. Add debug device ID in AE Admin: Tracking Management → Debug Data → Add Device (enter deviceId)
|
|
90
|
+
2. Run debug script
|
|
91
|
+
3. Open AE Debug page: https://<host>/#/data/debug
|
|
92
|
+
4. Filter by distinct_id or device_id to view uploaded data
|
|
93
|
+
5. Check event property structure correctness (especially object array properties)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Reference Doc Paths
|
|
97
|
+
|
|
98
|
+
All SDK debug/logging docs are located at:
|
|
99
|
+
- `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/<sdk>/<sdk>-advanced/debugging-and-logging.md`
|
|
100
|
+
- `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/<language>/<language>-advanced/debugging-and-logging.md`
|
|
101
|
+
|
|
102
|
+
For zh-CN only SDKs (Mini Program, LayaAir, etc.), refer to sdk-index.md for exact paths.
|