visual-buried-point-platform-uni 1.0.0-alpha.7 → 1.0.0-alpha.8

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  ## Uni版自定义埋点SDK集成文档
2
2
 
3
+ ### SDK更新日志
4
+ - 1.0.0-alpha.07 最新uni、终端通用埋点sdk;
5
+
3
6
  ### 1、引入方式
4
7
 
5
8
  ```js
package/index.js CHANGED
@@ -109,7 +109,7 @@ export function setCustomEvent(data) {
109
109
  reportData = {
110
110
  ctk: data.$ctk ? data.$ctk : "",
111
111
  duration: "",
112
- element: null,
112
+ element: data.$element ? data.$element : null,
113
113
  eventId: data.$event_id ? data.$event_id : "",
114
114
  event: data.$event_code ? data.$event_code : "",
115
115
  groupId: "",
@@ -122,7 +122,6 @@ export function setCustomEvent(data) {
122
122
  title: _page.title ? _page.title : "",
123
123
  url: _path ? _path : getUrl(platform),
124
124
  },
125
- path: data.$path ? data.$path : "",
126
125
  properties: data.$extend_param ? JSON.stringify(data.$extend_param) : "",
127
126
  traceId: "",
128
127
  trackId: trackId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "visual-buried-point-platform-uni",
3
- "version": "1.0.0-alpha.07",
4
- "lsi": "e582f1f81f1398a0441584a6a87e5f80",
3
+ "version": "1.0.0-alpha.08",
4
+ "lsi": "ecd31a049b2d07f61d9d425b009cd74a",
5
5
  "description": "To make it easy for you to get started with GitLab, here's a list of recommended next steps.",
6
6
  "main": "index.js",
7
7
  "scripts": {
package/tools.js CHANGED
@@ -173,8 +173,8 @@ export function getTrackObj(busObj, platform) {
173
173
  path: gcp.route,
174
174
  domain: busObj.domain ? busObj.domain : "",
175
175
  url: busObj.url ? busObj.url : getUrl(platform),
176
- circulation: gcp.length > 1 ? 2 : 1,
177
- visitPage: gcp.length,
176
+ circulation: pages.length > 1 ? 2 : 1,
177
+ visitPage: pages.length,
178
178
  sourceDomain: busObj.sourceDomain ? busObj.sourceDomain : "",
179
179
  sourceUrl: busObj.sourceUrl ? busObj.sourceUrl : "",
180
180
  title: busObj.title ? busObj.title : "",