Nourishing Pizza Microservice

    nangua-h5-statistics
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    南瓜租房h5统计 js-sdk

    使用

    import NanguaStatistics from 'nangua-h5-statistics';
    const nanguaStatistics = new NanguaStatistics();
     
    // 主要函数用法
    1.pv
    /**
    * 主动发送pv请求
    @param {string} url pv请求的url
    @param {object} params 请求传递的参数
    */
    nanguaStatistics.pv(url, params);
     
     
    2.listenControlEle
    /**
    * 监听控件元素主动发送pv请求(控件元素的配置请看下面)
    @param {string} url pv请求的url
    */
    nanguaStatistics.listenControlEle(url);
     
     
    >控件元素的配置如下
    <span event-track-click event-track-param-rentUnitId="1111"></span>
    绑定`event-track-click`属性的称为控件元素
    event-track-param-xxxx1='xxxx' xxxx1为传递的参数键,属性值为传递的参数值
     
    3.配置公共参数
    NanguaStatistics.commonParams = {
        
    };

    Keywords

    none

    Install

    npm i nangua-h5-statistics

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    20.2 kB

    Total Files

    24

    Last publish

    Collaborators

    • konglx