티스토리 수익 글 보기

티스토리 수익 글 보기

!function(){var t,e,n,i=document.currentScript,o={};function a(t,e,n){window.fetch&&fetch(t,{method:”POST”,headers:{“Content-Type”:”text/plain”},keepalive:!0,body:JSON.stringify(e)}).then(function(t){n&&n.callback&&n.callback({status:t.status})}).catch(function(t){n&&n.callback&&n.callback({error:t})})}var r=!1,c=location.href,l={},u=-1,d=0,s=0;function p(){var i=v();if(!t&&(u=3e3)){u=n;var r={n:”engagement”,sd:Math.round(n/e*100),d:o.domain,u:c,p:l,e:i,v:32};d=0,s=0,a(o.endpoint,r)}}function f(){“visible”===document.visibilityState&&document.hasFocus()&&0===d?d=Date.now():”hidden”!==document.visibilityState&&document.hasFocus()||(s=v(),d=0,p())}function v(){return d?s+(Date.now()-d):s}function m(){var t=document.body||{},e=document.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0)}function w(){var t=document.body||{},n=document.documentElement||{},i=window.innerHeight||n.clientHeight||0,o=window.scrollY||n.scrollTop||t.scrollTop||0;return e<=i?e:o+i}function g(i,v){var g="pageview"===i;if(g&&r&&(p(),e=m(),n=w()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return h(i,v,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return h(i,v);try{if("true"===window.localStorage.plausible_ignore)return h(i,v,"localStorage flag")}catch(t){}var b={};b.n=i,b.v=32,b.u=location.href,b.d=o.domain,b.r=document.referrer||null,v&&v.meta&&(b.m=JSON.stringify(v.meta)),v&&v.props&&(b.p=v.props),v&&!1===v.interactive&&(b.i=!1),g&&(t=!1,c=b.u,l=b.p,u=-1,s=0,d=Date.now(),r||(document.addEventListener("visibilitychange",f),window.addEventListener("blur",f),window.addEventListener("focus",f),r=!0)),a(o.endpoint,b,v)}function h(e,n,i){i&&o.logging&&console.warn("Ignoring Event: "+i),n&&n.callback&&n.callback(),"pageview"===e&&(t=!0)}function b(t){return t&&t.tagName&&"a"===t.tagName.toLowerCase()}function y(t){if("auxclick"!==t.type||1===t.button){var e=function(t){for(;t&&(void 0===t.tagName||!b(t)||!t.href);)t=t.parentNode;return t}(t.target);e&&"string"==typeof e.href&&e.href.split("?")[0],function t(e,n){return!!e&&!(n>3)&&(!!L(e)||t(e.parentNode,n+1))}(e,0)}}function L(t){var e=t&&t.classList;if(e){for(var n=0;nn&&(n=t)}),function(t){function e(e){e&&n===location.pathname||(n=location.pathname,t(“pageview”))}var n,i=function(){e(!0)},o=window.history;if(o.pushState){var a=o.pushState;o.pushState=function(){a.apply(this,arguments),i()},window.addEventListener(“popstate”,i)}”hidden”===document.visibilityState||”prerender”===document.visibilityState?document.addEventListener(“visibilitychange”,function(){n||”visible”!==document.visibilityState||e()}):e(),window.addEventListener(“pageshow”,function(t){t.persisted&&e()})}(g),function(){function t(t){if(“auxclick”!==t.type||1===t.button){for(var e,n,i=t.target,o=0;o<=3&&i;o++){if((a=i)&&a.tagName&&"form"===a.tagName.toLowerCase())return;b(i)&&(e=i),L(i)&&(n=i),i=i.parentNode}if(n){var a,r,c=E(n);if(e)c.props.url=e.href,r={props:c.props},g(c.name,r);else{var l={};l.props=c.props,g(c.name,l)}}}}document.addEventListener("click",y),document.addEventListener("auxclick",y),document.addEventListener("submit",function(t){var e,n=E(t.target);n.name&&(e={props:n.props},g(n.name,e))}),document.addEventListener("click",t),document.addEventListener("auxclick",t)}();for(var r=window.plausible&&window.plausible.q||[],c=0;c