# shence-sensor **Repository Path**: hanxiaoxin/shence-sensor ## Basic Information - **Project Name**: shence-sensor - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-08 - **Last Updated**: 2026-07-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 工具神策日志上报SDK ### 版本 > node 14+ > sa-javascript-sdk 1.21.6+ > react 17+ ##### 使用方法 ``` import {shenceIdentifyUser,shenceInit,shenceSetPageProperties,shenceTrack} from '@crc/shence-sensor'; shenceInit({ project: 'default', show_log: true }); // 开发模式可以覆盖默认发送方式 shenceInit({ project: 'default', show_log: true, send_type: 'ajax' }); shenceIdentifyUser(userId); shenceSetPageProperties(fields); shenceTrack('MyModule', 'MyTarget', 'MyAction', { is_success: true }).then((properties) => { console.log('shence track event success', properties); }).catch((error) => { console.error('shence track event failed', error); }); ```