@fle-sdk/event-tracking-web 1.2.4 → 1.2.6
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 +2 -2
- package/lib/index.esm.js +1217 -1400
- package/lib/index.esm.min.js +1 -1
- package/lib/index.js +1217 -1400
- package/lib/index.min.js +1 -1
- package/lib/types/batch-sender.d.ts +48 -0
- package/lib/types/device-manager.d.ts +16 -0
- package/lib/types/exposure.d.ts +33 -0
- package/lib/types/index.d.ts +14 -214
- package/lib/types/page-duration.d.ts +23 -0
- package/lib/types/pending-requests.d.ts +45 -0
- package/lib/types/type.d.ts +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1073,9 +1073,9 @@ WebTracking.init({
|
|
|
1073
1073
|
|
|
1074
1074
|
#### 注意事项
|
|
1075
1075
|
|
|
1076
|
-
1. **浏览器兼容性**:需要浏览器支持 `IntersectionObserver` API,不支持时会自动禁用曝光埋点
|
|
1076
|
+
1. **浏览器兼容性**:需要浏览器支持 `IntersectionObserver` 和 `MutationObserver` API,不支持时会自动禁用曝光埋点
|
|
1077
1077
|
2. **性能优化**:SDK 会自动去重,避免重复监听同一元素
|
|
1078
|
-
3.
|
|
1078
|
+
3. **动态元素**:自动监听动态添加的曝光元素,无需手动调用
|
|
1079
1079
|
4. **数据提取**:`data-*` 属性会从目标元素向上遍历到 BODY 标签,按"就近原则"提取
|
|
1080
1080
|
|
|
1081
1081
|
---
|