Ver código fonte

feat: 荟聚埋点调整 (关闭退出页面上报)

zhangyuhan 3 anos atrás
pai
commit
9dc4926b59

+ 1 - 0
src/jfw/modules/app/src/web/templates/common/baiducc.html

@@ -253,6 +253,7 @@ function grafana_statistics(advName){
                     clab_tracker.ready(function () {
                         this.push({"pageType":"web"});
                         this.track("open_page", jyClabUtils.getNowPageInfo());
+                        clab_tracker.setEnableAutoTrackExitPage(false)
                     })
                     /* 自定义事件传递 */
                     if (checkHasJquery()) {

+ 1 - 0
src/web/staticres/common-module/public/fotter.js

@@ -141,6 +141,7 @@ try {
                 clab_tracker.ready(function () {
                     this.push({"pageType":"web"});
                     this.track("open_page", jyClabUtils.getNowPageInfo());
+                    clab_tracker.setEnableAutoTrackExitPage(false)
                 })
                 /* 自定义事件传递 */
                 if (checkHasJquery()) {

+ 3 - 2
src/web/staticres/public-pc/js/baiducc.js

@@ -425,8 +425,9 @@ try {
       }
       if (typeof clab_tracker !== 'undefined' && typeof clab_tracker.track === 'function') {
         clab_tracker.ready(function () {
-          this.push({"pageType": "web"});
-          this.track("open_page", jyClabUtils.getNowPageInfo());
+          this.push({"pageType": "web"})
+          this.track("open_page", jyClabUtils.getNowPageInfo())-
+          clab_tracker.setEnableAutoTrackExitPage(false)
         })
         /* 自定义事件传递 */
         if (checkHasJquery()) {