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.
- package/index.cjs +3 -0
- 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();
|