costway-tracking-v2 2.0.6 → 2.0.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.
Files changed (2) hide show
  1. package/index.cjs +3 -0
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -228,6 +228,8 @@ function trackEvent(eventType, data) {
228
228
 
229
229
  }
230
230
  function trackPageView() {
231
+ console.log("trackPageView");
232
+
231
233
  let session = getSession();
232
234
  const pageViewData = {
233
235
  url: window.location.href,
@@ -423,6 +425,7 @@ module.exports = {
423
425
  userId = generateUUID();
424
426
  setuserId(userId);
425
427
  }
428
+ app && console.log("costway-app~~~~1222");
426
429
  !app && trackPageView();
427
430
  //trackPageLoadTime();
428
431
  // trackResourceLoadTimes();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "costway-tracking-v2",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "统计代码,新增vue3和vue2分别管理版本-增加多国家",
5
5
  "main": "index.cjs",
6
6
  "type": "module",