사용자 개인 정보를 보호하면서 가치 있는 통계를 확보하려면 웹사이트 사용자의 동의를 얻어야 합니다. 동의 관리 플랫폼(CMP)을 사용하거나 콘텐츠 관리 시스템(CMS)을 사용하여 동의를 수집하고 Google에 전송하는 것이 좋습니다.
동의 관리 플랫폼 또는 콘텐츠 관리 시스템을 사용하여 동의 배너를 설정하는 방법을 알아보세요.
1단계: 동의 배너 설정하기
- Sign up on the CookieTractor website.
- Configure your banner using the getting started wizard.
Note: Make sure your banner complies with the requirements in the Google EU User Consent Policy (EUUCP).
2단계: 동의 모드 설정하기
Set up using Google Tag Manager
- Open Google Tag Manager and navigate to your container.
- In "Tags", select New and name the tag.
- Click Tag Configuration.
- Select Tag Configuration > Discover more tag types in the Community Template Gallery.
- Search for “CookieTractor CMP (Consent Mode v2)” by CookieTractor.
- Click Add > Triggering.
- Select Consent Initialization - All Pages.
- Add your Website Identifier found which is found under the Installation tab for the website in the CookieTractor Tool.
- Match your Language Code with the language configured in CookieTractor (found under the Settings or Installation tab).
- Click Save.
- Test your container by clicking Preview in the top right corner.
- Publish your container.
Set up using another platform or directly from your website’s code
- You can implement CookieTractor with a javascript tag that is available in the CookieTractor Tool. On the specific website, select the Installation tab and copy the contents of the “Main Script” text box.
- If you use a website builder, review their documentation to find out how to implement code in the
<head>tag of each page. Otherwise, skip to step three. - In the
<head>tag of each page (see step 2 if you use a website builder), paste the following code followed by the CMP script you copied in step 1 at the very top of the<head>tag.
<script
// Define dataLayer and the gtag function.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
// Set default consent for specific regions according to your requirements
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied',
'regions':[<list of ISO 3166-2 region codes>]
});
// Set default consent for all other regions according to your requirements
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
});
</script>
<!-- PASTE YOUR CookieTractor CMP CODE SNIPPET HERE -- >
Tag Assistant를 사용하여 테스트
Google 태그 관리자로 동의 모드 문제를 해결하는 방법을 자세히 알아보세요.