pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <legend id='4r7oz'><style id='4r7oz'><dir id='4r7oz'><q id='4r7oz'></q></dir></style></legend>
  • <small id='4r7oz'></small><noframes id='4r7oz'>

  • <tfoot id='4r7oz'></tfoot>
    <i id='4r7oz'><tr id='4r7oz'><dt id='4r7oz'><q id='4r7oz'><span id='4r7oz'><b id='4r7oz'><form id='4r7oz'><ins id='4r7oz'></ins><ul id='4r7oz'></ul><sub id='4r7oz'></sub></form><legend id='4r7oz'></legend><bdo id='4r7oz'><pre id='4r7oz'><center id='4r7oz'></center></pre></bdo></b><th id='4r7oz'></th></span></q></dt></tr></i><div class="kiukqck" id='4r7oz'><tfoot id='4r7oz'></tfoot><dl id='4r7oz'><fieldset id='4r7oz'></fieldset></dl></div>

      <bdo id='4r7oz'></bdo><ul id='4r7oz'></ul>

      1. 為什么從 Firefox 瀏覽器訪問時,現場時間數據沒

        Why is time-on-site data not getting saved in DB when accessed from Firefox browser?(為什么從 Firefox 瀏覽器訪問時,現場時間數據沒有保存在數據庫中?)
        <i id='LeGL7'><tr id='LeGL7'><dt id='LeGL7'><q id='LeGL7'><span id='LeGL7'><b id='LeGL7'><form id='LeGL7'><ins id='LeGL7'></ins><ul id='LeGL7'></ul><sub id='LeGL7'></sub></form><legend id='LeGL7'></legend><bdo id='LeGL7'><pre id='LeGL7'><center id='LeGL7'></center></pre></bdo></b><th id='LeGL7'></th></span></q></dt></tr></i><div class="0ygecaa" id='LeGL7'><tfoot id='LeGL7'></tfoot><dl id='LeGL7'><fieldset id='LeGL7'></fieldset></dl></div>

        <small id='LeGL7'></small><noframes id='LeGL7'>

          <tbody id='LeGL7'></tbody>

          1. <tfoot id='LeGL7'></tfoot><legend id='LeGL7'><style id='LeGL7'><dir id='LeGL7'><q id='LeGL7'></q></dir></style></legend>
                • <bdo id='LeGL7'></bdo><ul id='LeGL7'></ul>
                  本文介紹了為什么從 Firefox 瀏覽器訪問時,現場時間數據沒有保存在數據庫中?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我們根據文檔中的說明在我們的網站中包含了 timeonsite 庫 timeonsitetracker

                  We included the timeonsite library timeonsitetracker in our website as per the instructions in doc

                  <script type="text/javascript">
                  var Tos;
                  (function(d, s, id, file) {
                      var js, fjs = d.getElementsByTagName(s)[0];
                      if (d.getElementById(id)) return;
                      js = d.createElement(s);
                      js.id = id;
                      js.onload = function() {
                          // save with XMLHttpRequest or sendBeacon
                      var config = {
                          trackBy: 'seconds',
                          developerMode: true,
                          callback: function(data) {
                              console.log('***');  
                              console.log(data);
                  
                              // give your endpoint URL/ server-side URL that is going to handle your TOS data which is of POST method. Eg. PHP, nodejs or python URL which saves this data to your DB
                  
                              var endPointUrl = 'http://localhost:4500/tos'; // replace with your endpoint URL
                  
                              if (data && data.trackingType) {
                                  if (data.trackingType == 'tos') {
                                      if (Tos.verifyData(data) != 'valid') {
                                          console.log('Data abolished!');
                                          return; 
                                      }
                                  }
                                  
                                  if (navigator && typeof navigator.sendBeacon === 'function') {
                                      data.trasferredWith = 'sendBeacon';
                                      var blob = new Blob([JSON.stringify(data)], {type : 'application/json'});
                                      navigator.sendBeacon(endPointUrl, blob);
                                  }
                                  
                              }    
                          }};
                  
                  
                          if(TimeOnSiteTracker) {
                              Tos = new TimeOnSiteTracker(config);
                          }
                      };
                      js.src = file;fjs.parentNode.insertBefore(js, fjs);
                   } (document, 'script', 'TimeOnSiteTracker', '//cdn.jsdelivr.net/gh/saleemkce/timeonsite@1.1.0/timeonsitetracker.min.js'));
                  </script>
                  

                  刷新瀏覽器后,我在 Firefox Web 控制臺中看到了正確記錄的數據(啟用日志持久性,否則每次刷新時都會清除日志).

                  After refreshing the browser, I see the data logged (enabled log persistence otherwise log is cleared on each refresh) in Firefox web console correctly.

                  ***
                  {
                      TOSId: 14650383319214848
                      TOSSessionKey: "8808159448467693499978"
                      TOSUserId: "anonymous"
                      URL: "https://localhost/index.html"
                      currentTime: "2021-03-30 16:25:17.908"
                      entryTime: "2021-03-30 16:24:36.911"
                      timeOnPage: 41
                      timeOnPageByDuration: "0d 00h 00m 41s"
                      timeOnPageTrackedBy: "second"
                      timeOnSite: 41
                      timeOnSiteByDuration: "0d 00h 00m 41s"
                      title: "home page - rental crown"
                      trackingType: "tos"
                  }
                  

                  但此會話數據并未存儲在 MariaDB 中.不知道數據的去向.在刷新第二頁時,我再次在 Firefox Web 控制臺中看到更新的數據對象,但在 MariaDB 中沒有捕獲數據.它在 Chrome 中工作,但似乎沒有將數據正確存儲在數據庫中.知道如何解決 Firefox 中的問題嗎?

                  But this session data is not stored in MariaDB. There is no clue where the data goes. On refreshing second page, again I see the updated data object in Firefox web console but no data captured in MariaDB. It worked in Chrome but doesn't seem to store the data properly in DB. Any idea how to fix the issue in Firefox?

                  我遵循 此處的文檔.非常感謝您的幫助.

                  I followed the documentation here. And help is greatly appreciated.

                  推薦答案

                  我今天再次測試了這個.似乎 sendBeacon 在 Chrome、Firefox 等許多瀏覽器上都無法正常工作.Chrome 和Firefox 為此.

                  I tested this again today. It seems that sendBeacon was not working for sometime on many browsers like Chrome, Firefox and others. There were some open issues in both Chrome & Firefox for this.

                  但是今天,我在 Chrome 和 Chrome 上使用 timeOnSite tracker JS 再次測試了它.火狐.它似乎在頁面刷新、標簽關閉或瀏覽器關閉場景中成功地將數據發布到數據庫.

                  But today, I tested it again for with timeOnSite tracker JS on both Chrome & Firefox. It seems that it posts the data successfully to database on page refresh, tab close or browser close scenarios.

                  更新日期:2021 年 11 月 13 日

                  瀏覽器成功運行版本:

                  Browsers working successfully with version:

                  Chrome:95.0.4638.69

                  Chrome: 95.0.4638.69

                  火狐:94.0.1

                  但請注意,這可能不適用于舊瀏覽器或不完全支持 sendBeacon 的瀏覽器.因此,如果在此類瀏覽器上無法獲得實時站點數據,請使用請求對象回退到 localstorage 選項.

                  But be informed that this may not work in old browsers or browsers that don't support sendBeacon fully. So in case of not getting real-time time on site data on such browsers, fallback to localstorage option with request object.

                  var config = {
                      trackBy: 'seconds',
                      
                      request: { // presence of request object denotes that data is to be saved in local storage
                          url: 'http://localhost:4500/tos'
                      }
                  }
                  

                  這篇關于為什么從 Firefox 瀏覽器訪問時,現場時間數據沒有保存在數據庫中?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                  <tfoot id='cLJZe'></tfoot>

                  <small id='cLJZe'></small><noframes id='cLJZe'>

                      <tbody id='cLJZe'></tbody>

                      • <i id='cLJZe'><tr id='cLJZe'><dt id='cLJZe'><q id='cLJZe'><span id='cLJZe'><b id='cLJZe'><form id='cLJZe'><ins id='cLJZe'></ins><ul id='cLJZe'></ul><sub id='cLJZe'></sub></form><legend id='cLJZe'></legend><bdo id='cLJZe'><pre id='cLJZe'><center id='cLJZe'></center></pre></bdo></b><th id='cLJZe'></th></span></q></dt></tr></i><div class="8200gcm" id='cLJZe'><tfoot id='cLJZe'></tfoot><dl id='cLJZe'><fieldset id='cLJZe'></fieldset></dl></div>
                        1. <legend id='cLJZe'><style id='cLJZe'><dir id='cLJZe'><q id='cLJZe'></q></dir></style></legend>
                            <bdo id='cLJZe'></bdo><ul id='cLJZe'></ul>
                            主站蜘蛛池模板: 岩棉板|岩棉复合板|聚氨酯夹芯板|岩棉夹芯板|彩钢夹芯板-江苏恒海钢结构 | 石家庄救护车出租_重症转院_跨省跨境医疗转送_活动赛事医疗保障_康复出院_放弃治疗_腾康26年医疗护送转诊团队 | 全自动翻转振荡器-浸出式水平振荡器厂家-土壤干燥箱价格-常州普天仪器 | 盐水蒸发器,水洗盐设备,冷凝结晶切片机,转鼓切片机,絮凝剂加药系统-无锡瑞司恩机械有限公司 | 首页|专注深圳注册公司,代理记账报税,注册商标代理,工商变更,企业400电话等企业一站式服务-慧用心 | 广州中央空调回收,二手中央空调回收,旧空调回收,制冷设备回收,冷气机组回收公司-广州益夫制冷设备回收公司 | 自进式锚杆-自钻式中空注浆锚杆-洛阳恒诺锚固锚杆生产厂家 | 哔咔漫画网页版在线_下载入口访问指引 | 电机铸铝配件_汽车压铸铝合金件_发动机压铸件_青岛颖圣赫机械有限公司 | 深圳希玛林顺潮眼科医院(官网)│深圳眼科医院│医保定点│香港希玛林顺潮眼科中心连锁品牌 | b2b网站大全,b2b网站排名,找b2b网站就上地球网| 河南档案架,档案密集架,手动密集架,河南密集架批发/报价 | 山东led显示屏,山东led全彩显示屏,山东LED小间距屏,临沂全彩电子屏-山东亚泰视讯传媒有限公司 | 层流手术室净化装修-检验科ICU改造施工-华锐净化工程-特殊科室建设厂家 | 双吸泵,双吸泵厂家,OS双吸泵-山东博二泵业有限公司 | 高空重型升降平台_高空液压举升平台_高空作业平台_移动式升降机-河南华鹰机械设备有限公司 | 大立教育官网-一级建造师培训-二级建造师培训-造价工程师-安全工程师-监理工程师考试培训 | 下水道疏通_管道疏通_马桶疏通_附近疏通电话- 立刻通 | 月嫂_保姆_育婴_催乳_母婴护理_产后康复_养老护理-吉祥到家家政 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | 展厅设计公司,展厅公司,展厅设计,展厅施工,展厅装修,企业展厅,展馆设计公司-深圳广州展厅设计公司 | Q361F全焊接球阀,200X减压稳压阀,ZJHP气动单座调节阀-上海戎钛 | 减速机三参数组合探头|TSM803|壁挂式氧化锆分析仪探头-安徽鹏宸电气有限公司 | 高效节能电机_伺服主轴电机_铜转子电机_交流感应伺服电机_图片_型号_江苏智马科技有限公司 | 安徽净化板_合肥岩棉板厂家_玻镁板厂家_安徽科艺美洁净科技有限公司 | 珠光砂保温板-一体化保温板-有釉面发泡陶瓷保温板-杭州一体化建筑材料 | 电梯装饰-北京万达中意电梯装饰有限公司 | 美国查特CHART MVE液氮罐_查特杜瓦瓶_制造全球品质液氮罐 | 硬齿面减速机[型号全],ZQ减速机-淄博久增机械 | 乐泰胶水_loctite_乐泰胶_汉高乐泰授权(中国)总代理-鑫华良供应链 | 阿尔法-MDR2000无转子硫化仪-STM566 SATRA拉力试验机-青岛阿尔法仪器有限公司 | 依维柯自动挡房车,自行式国产改装房车,小型房车价格,中国十大房车品牌_南京拓锐斯特房车 - 南京拓锐斯特房车 | 电车线(用于供电给电车的输电线路)-百科 | 氧化锆纤维_1800度高温退火炉_1800度高温烧结炉-南京理工宇龙新材料股份有限公司 | 齿式联轴器-弹性联轴器-联轴器厂家-江苏诺兴传动联轴器制造有限公司 | 合肥地磅_合肥数控切割机_安徽地磅厂家_合肥世佳电工设备有限公司 | 包装机传感器-搅拌站传感器-山东称重传感器厂家-济南泰钦电气 | 葡萄酒灌装机-食用油灌装机-液体肥灌装设备厂家_青州惠联灌装机械 | 低噪声电流前置放大器-SR570电流前置放大器-深圳市嘉士达精密仪器有限公司 | 仓储货架_南京货架_钢制托盘_仓储笼_隔离网_环球零件盒_诺力液压车_货架-南京一品仓储设备制造公司 | 南京PVC快速门厂家南京快速卷帘门_南京pvc快速门_世界500强企业国内供应商_南京美高门业 | 贴板式电磁阀-不锈钢-气动上展式放料阀-上海弗雷西阀门有限公司 工业机械三维动画制作 环保设备原理三维演示动画 自动化装配产线三维动画制作公司-南京燃动数字 |