fast-tracker-browser
Advanced tools
Comparing version 1.0.1-r11 to 1.0.1-r12
{ | ||
"name": "fast-tracker-browser", | ||
"version": "1.0.1-r11", | ||
"version": "1.0.1-r12", | ||
"description": "用户行为、应用性能、应用异常一体化采集", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.min.js", |
@@ -85,10 +85,10 @@ # 天眼FAST探针(Browser) | ||
| include_search | 开启页面地址参数采集 | 否 | true | 开启后将页面URL的参数(search)部分上报为page_search字段 | true | | ||
| ignore_pages | 按页面禁用日志采集 | 否 | \[\] | 将屏蔽配置的列表中匹配到的页面的所有事件采集 | \[".mypaas.com",".baidu.com"\] | | ||
| tenant_reader | 租户读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为tenant字段上报 | {key:"org_code",range:\[”localstorage“\]} | | ||
| real_user_reader | 用户读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为real_user_id字段上报 | {key:"userinfo.code",range:\[”localstorage“\]} | | ||
| user_group_reader | 用户分组读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为user_group字段上报 | {key:"userinfo.role",range:\[”localstorage“\]} | | ||
| app_version_reader | 应用版本读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为app_version字段上报 | {key:"version",range:\[”window“\]} | | ||
| log_event_attribute | 申明式埋点事件名称属性名称 | 否 | data-event | click事件中指定作为event字段上报的由DOM读取的属性名 | data-eventname | | ||
| log_content_attribute | 申明式埋点事件内容属性名称 | 否 | data-log | click事件中指定作为logs字段上报的由DOM读取的属性名 | data-content | | ||
| log_module_attribute | 申明式埋点事件模块属性名称 | 否 | data-module | click事件中指定作为module字段上报的由DOM读取的属性名 | data-mod | | ||
| ignore_pages | 按页面禁用日志采集 | 否 | \[\] | 将屏蔽配置的列表中匹配到的页面的所有事件采集 | \["/login","/admin"\] | | ||
| tenant_reader | 租户读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为tenant字段上报 | {key:"org_code",range:\["localstorage"\]} | | ||
| real_user_reader | 用户读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为real_user_id字段上报 | {key:"userinfo.code",range:\["localstorage"\]} | | ||
| user_group_reader | 用户分组读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为user_group字段上报 | {key:"userinfo.role",range:\["localstorage"\]} | | ||
| app_version_reader | 应用版本读取 | 否 | {key: "",range:\["url","localstorage","sessionstorage","cookie","window"\]} | 根据配置的key在range指定的范围内按先后顺序读取作为app_version字段上报 | {key:"version",range:\["window"\]} | | ||
| log_event_attribute | 申明式埋点事件名称属性名称 | 否 | data-event | click事件中指定作为event字段上报的由DOM读取的属性名,仅当DOM上原有的自定义属性占用了默认值时才修改 | data-eventname | | ||
| log_content_attribute | 申明式埋点事件内容属性名称 | 否 | data-log | click事件中指定作为logs字段上报的由DOM读取的属性名,仅当DOM上原有的自定义属性占用了默认值时才修改 | data-content | | ||
| log_module_attribute | 申明式埋点事件模块属性名称 | 否 | data-module | click事件中指定作为module字段上报的由DOM读取的属性名,仅当DOM上原有的自定义属性占用了默认值时才修改 | data-mod | | ||
| collect_event_types | 采集事件类型 | 否 | \["page","api","click","error","crash","event"\] | 按照事件类型指定需要采集的日志 | \["page","api"\] | | ||
@@ -122,3 +122,3 @@ | is_spa | 开启单页应用页面切换采集 | 否 | true | 开启后将增加history.pushState、history.replaceState、hashchange事件、popstate事件的监听,用于单页应用路由切换监听 | true | | ||
| API名称 | API描述 | 参数说明 | | ||
| :---: | :---: | :--- | | ||
| :--- | :--- | :--- | | ||
| registUser({tenant_code,user_account,user_group}) | 注册用户信息 | 所有参数非必填,参数与上报字段对应关系:tenant_code→tenant,user_account→real_user_id,user_group→user_group | | ||
@@ -131,2 +131,6 @@ | setBasicInfo({custom_data,app_version,app_hotupdate_version}) | 设置附加日志内容 | custom_data公共附加信息,!!#ff9900 ~~作为cd字段上报,~~!! 追加至logs字段中 | | ||
### 1.0.1-r12 | ||
1. 把页面标题加入内部维护的页面参数中,使上报对应的page_title字段与其他(domain、page等)保持一致的更新机制 | ||
### 1.0.1-r11 | ||
@@ -133,0 +137,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
215845
176