PageSourceSearch

https://mostreams-com.lovable.app/assets/GA4Injector-GUT3SJXv.js

js mostreams-com.lovable.app collected 2026-10-03 03:34:16 UTC 805 bytes, 1 lines download raw bytes

1import{r as s,s as c}from"./index-BNrdOJig.js";function d(){return s.useEffect(()=>{let n=!1;return(async()=>{try{const{data:r}=await c.from("seo_settings").select("ga4_measurement_id").eq("id",1).maybeSingle();if(n)return;const t=r?.ga4_measurement_id;if(!t||typeof window>"u"||document.querySelector(`script[data-ga4="${t}"]`))return;const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,e.setAttribute("data-ga4",t),document.head.appendChild(e);const a=document.createElement("script");a.setAttribute("data-ga4",`${t}-init`),a.text=`window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag('js',new Date());gtag('config','${t}');`,document.head.appendChild(a)}catch{}})(),()=>{n=!0}},[]),null}export{d as GA4Injector};

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.