/*
 * LogFit.js v0.6.0
 */
!function(t){function e(){this.config={},this.setConfigs()}e.prototype.setConfigs=function(){this.version="v0.6.0",this.setConfigWithDefault("source","logfit-test"),this.setConfigWithDefault("ingestEndpoint","https://ingest.log.fit/log")},e.prototype.setConfigWithDefault=function(t,e){"undefined"!=typeof LogFitConfig&&t in LogFitConfig?this.config[t]=LogFitConfig[t]:this.config[t]=e},e.prototype.report=function(){const t=this.generateData();this.post(t)},e.prototype.generateData=function(){const t={};return t.path=window.location.href,t.referrer=document.referrer,t.user_agent=navigator.userAgent,t.user_token=this.getUserToken(),t.logfitjs_version=this.version,t},e.prototype.post=function(t){const e={source:this.config.source,row_data:t};this.ajax("POST",this.config.ingestEndpoint,e)},e.prototype.ajax=function(t,e,o,n){const i=new XMLHttpRequest;i.open(t,e),i.setRequestHeader("Content-Type","application/json"),i.responseType="json",i.onload=(()=>{n&&n(i.response)});let s=null;null!=o&&(s=JSON.stringify(o)),i.send(s)},e.prototype.getUserToken=function(){function t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})}try{let e=localStorage.getItem("logfitToken");return e||(e=t(),localStorage.setItem("logfitToken",e)),e}catch(e){return t()}},(new e).report()}("undefined"==typeof LogFit?LogFit={}:LogFit);

/*
 * LogFit.js v0.7.0
 */
!function(t){function o(){this.config={},this.setConfigs()}o.version="v0.7.0",o.prototype.setConfigs=function(){this.setConfigWithDefault("source","logfit-test"),this.setConfigWithDefault("ingestEndpoint","https://ingest.log.fit/log")},o.prototype.setConfigWithDefault=function(t,o){"undefined"!=typeof LogFitConfig&&t in LogFitConfig?this.config[t]=LogFitConfig[t]:this.config[t]=o},o.prototype.report=function(){const t=this.generateData();this.post(t)},o.prototype.generateData=function(){const t={};return t.path=window.location.href,t.referrer=document.referrer,t.user_agent=navigator.userAgent,t.user_token=this.getUserToken(),t.logfitjs_version=o.version,btoa(JSON.stringify(t))},o.prototype.post=function(t){const o={source:this.config.source,data:t};this.ajax("POST",this.config.ingestEndpoint,o)},o.prototype.ajax=function(t,o,e){const n=new XMLHttpRequest;n.open(t,o),n.setRequestHeader("Content-Type","application/json"),n.responseType="json";const i=JSON.stringify(e);n.send(i)},o.prototype.getUserToken=function(){function t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const o=16*Math.random()|0;return("x"==t?o:3&o|8).toString(16)})}try{let o=localStorage.getItem("logfitToken");return o||(o=t(),localStorage.setItem("logfitToken",o)),o}catch(o){return t()}},(new o).report()}("undefined"==typeof LogFit?LogFit={}:LogFit);

Update logfit.js to v0.7.0