PageSourceSearch

https://www.hermantrading.pro/_next/static/chunks/site-analytics-COQO3v5o.js

js hermantrading.pro collected 2026-10-05 23:20:06 UTC 1,303 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-C60lm6uB.js";import{i as t}from"./framework-D_rUT4EX.js";import{t as n}from"./index-BfQrBFsQ.js";var r=e(t(),1);function i(){try{let e=new URL(document.referrer).hostname;return/(^|\.)google\./.test(e)?`Google`:[`t.co`,`x.com`,`twitter.com`].includes(e)?`X`:e.includes(`youtube.com`)||e===`youtu.be`?`YouTube`:e&&e!==location.hostname?`Other`:`Direct`}catch{return`Direct`}}function a(){let e=n(),t=(0,r.useRef)(``);return(0,r.useEffect)(()=>{if(location.hostname!==`www.hermantrading.pro`||e.startsWith(`/admin`)||e.startsWith(`/editor`)||navigator.doNotTrack===`1`||navigator.globalPrivacyControl)return;let n=t=>{fetch(`/api/analytics`,{method:`POST`,credentials:`omit`,keepalive:!0,headers:{"Content-Type":`application/json`},body:JSON.stringify({event:t,path:e,source:i()})}).catch(()=>{})};t.current!==e&&(t.current=e,n(`pageview`));let r=e=>{if(e.button>1)return;let t=e.target?.closest?.(`a[href]`);if(t)try{let e=new URL(t.getAttribute(`href`),location.href);(e.hostname===`whop.com`||e.hostname.endsWith(`.whop.com`))&&n(`whop_click`)}catch{}};return document.addEventListener(`click`,r),document.addEventListener(`auxclick`,r),()=>{document.removeEventListener(`click`,r),document.removeEventListener(`auxclick`,r)}},[e]),null}export{a as SiteAnalytics};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.