feat: Meta 픽셀 제거, GA4 전송 주소 보호, 개인정보처리방침 보완
This commit is contained in:
1 parent
2a5efa8def
commit
a967aa551f
5 files changed
+38
-226
No files matched your search
+10
-22
@@ -8,10 +8,16 @@
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
// 로그인 콜백 주소에 붙어 오는 토큰·인가 코드는 지운 주소로 보낸다 (GA4 '데이터 수정' 설정과 이중 보호)
|
||||
var gaPageUrl = new URL(window.location.href);
|
||||
['access_token', 'refresh_token', 'code'].forEach(function (key) { gaPageUrl.searchParams.delete(key); });
|
||||
gtag('config', 'G-KK71C474J2', { page_location: gaPageUrl.toString() });
|
||||
// 주소에는 토큰·채널 정보 등이 붙어 올 수 있어, 경로와 광고 유입 값(utm_*, gclid)만 남겨 보낸다
|
||||
// (GA4 '데이터 수정' 설정과 이중 보호)
|
||||
(function () {
|
||||
var current = new URL(window.location.href);
|
||||
var safeUrl = new URL(current.origin + current.pathname);
|
||||
current.searchParams.forEach(function (value, key) {
|
||||
if (key.indexOf('utm_') === 0 || key === 'gclid') safeUrl.searchParams.append(key, value);
|
||||
});
|
||||
gtag('config', 'G-KK71C474J2', { page_location: safeUrl.toString() });
|
||||
})();
|
||||
</script>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
@@ -87,20 +93,6 @@
|
||||
</script>
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon_32.svg" sizes="32x32">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon_48.svg" sizes="48x48">
|
||||
<!-- Meta Pixel Code -->
|
||||
<script>
|
||||
!function(f,b,e,v,n,t,s)
|
||||
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
||||
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
|
||||
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
|
||||
n.queue=[];t=b.createElement(e);t.async=!0;
|
||||
t.src=v;s=b.getElementsByTagName(e)[0];
|
||||
s.parentNode.insertBefore(t,s)}(window, document,'script',
|
||||
'https://connect.facebook.net/en_US/fbevents.js');
|
||||
fbq('init', '1572679738203392');
|
||||
fbq('track', 'PageView');
|
||||
</script>
|
||||
<!-- End Meta Pixel Code -->
|
||||
<!-- 유입 경로 분석 (analytics.webforai.kr) -->
|
||||
<script defer src="https://analytics.webforai.kr/script.js"
|
||||
data-website-id="4bca7237-30b5-4779-979a-ab1624ac7d9d"
|
||||
@@ -274,10 +266,6 @@
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg-[#121a1d]">
|
||||
<!-- Meta Pixel noscript fallback (head의 noscript에는 img가 허용되지 않아 body에 위치) -->
|
||||
<noscript><img height="1" width="1" style="display:none"
|
||||
src="https://www.facebook.com/tr?id=1572679738203392&ev=PageView&noscript=1"
|
||||
/></noscript>
|
||||
<!-- 앱이 뜨기 전 소개 글: JavaScript를 실행하지 않는 검색 로봇이 읽는다. React가 마운트되면 앱 화면으로 바뀐다. -->
|
||||
<div id="root">
|
||||
<main class="seo-intro">
|
||||
|
||||
Reference in new issue
Block a user