티스토리 수익 글 보기
!function(){var a,l=window.location,o=window.document,t=o.currentScript,r=t.getAttribute(“data-api”)||new URL(t.src).origin+”/api/event”,s=t.getAttribute(“data-domain”);function c(t,e,n){e&&console.warn(“Ignoring Event: “+e),n&&n.callback&&n.callback(),”pageview”===t&&(a=!0)}var u=l.href,d={},p=-1,w=!1,f=null,h=0;function v(){var t=o.body||{},e=o.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0)}function g(){var t=o.body||{},e=o.documentElement||{},n=window.innerHeight||e.clientHeight||0,e=window.scrollY||e.scrollTop||t.scrollTop||0;return b<=n?b:e+n}function e(){return f?h+(Date.now()-f):h}var b=v(),m=g();function y(){var t=e();!a&&(p{for(;t&&(void 0===t.tagName||!(e=t)||!e.tagName||”a”!==e.tagName.toLowerCase()||!t.href);)t=t.parentNode;var e;return t})(t.target))&&e.href&&e.href.split(“?”)[0],(o=e)&&o.href&&o.host&&o.host!==l.host&&(o=t,t={name:”Outbound Link: Click”,props:{url:(n=e).href}},a=!1,((t,e)=>!t.defaultPrevented&&(e=!e.target||e.target.match(/^_(self|parent|top)$/i),t=!(t.ctrlKey||t.metaKey||t.shiftKey)&&”click”===t.type,e)&&t)(o,n)?(i={props:t.props,callback:r},plausible(t.name,i),setTimeout(r,5e3),o.preventDefault()):(i={props:t.props},plausible(t.name,i))))}o.addEventListener(“click”,x),o.addEventListener(“auxclick”,x)}();