웹사이트에 태그를 하나 이상 추가하여 Google 애널리틱스와 Google Ads 전환 측정 등의 측정 및 광고 제품에서 데이터를 수집할 수 있습니다. 태그를 추가할 때는 JavaScript 코드 변경이 필요한 Google 태그(gtag.js) 또는 태그 관리 시스템 내에서 구성 변경이 필요한 Google 태그 관리자와 같은 태그 관리 시스템을 사용할 수 있습니다.
모바일 앱에서 측정 태그와 광고 태그를 배포하려면 Firebase용 Google 애널리틱스 SDK를 사용하면 됩니다. SDK를 배포한 후 Google 태그 관리자를 사용하여 데이터를 수정하고 라우팅할 수도 있습니다.
'태그'란 무엇인가요?
Google 태그란 무엇인가요?
Google 태그 관리자란 무엇인가요?
Google 문서에서 Google 태그 예는 gtag.js 코드로 구성되며 태그 관리자 예에서는 태그 구성에 필요한 절차를 제공합니다.
사용 예
다음 예는 Google 태그와 태그 관리자 사용 시의 차이를 보여줍니다.
다음 Google 태그는 웹사이트의 각 페이지에 추가할 수 있는 스니펫을 보여줍니다. 스니펫의 태그 ID를 사용하면 Google 애널리틱스와 Google Ads를 측정할 수 있습니다.
<script async
src="https://www.googletagmanager.com/gtag/js?id=TAG_ID">
</script>
<script>
window.dataLayer = window.dataLayer || [] ;
function gtag(){dataLayer.push(arguments);}
gtag( 'js', new Date () ) ;
gtag( 'config', 'TAG_ID');
</script>
태그 관리자를 사용하여 Google 애널리틱스 및 Google Ads의 측정을 사용 설정하려면 Google 애널리틱스용 태그와 Google Ads 전환 태그를 만든 후 이 태그가 동일한 트리거를 통해 실행되도록 구성합니다. 컨테이너를 게시하면 웹사이트에서 바로 변경사항을 확인할 수 있습니다.
자세한 내용은 Google Ads 전환을 참고하세요.
[null,null,["최종 업데이트: 2024-02-06(UTC)"],[[["\u003cp\u003eTagging involves adding code snippets to web pages to gather data on visitor behavior and site performance.\u003c/p\u003e\n"],["\u003cp\u003eThe Google tag streamlines tag management, allowing connection to multiple Google products with a single code snippet.\u003c/p\u003e\n"],["\u003cp\u003eImplementing tags can be done through Google Tag Manager or gtag.js, offering varying levels of coding involvement.\u003c/p\u003e\n"],["\u003cp\u003eWebsite builders and content management systems often provide integrations for simplified tag setup.\u003c/p\u003e\n"],["\u003cp\u003eMobile app tagging utilizes the Google Analytics for Firebase SDK and can be managed through Tag Manager.\u003c/p\u003e\n"]]],["Tagging involves adding code snippets to website pages to track user behavior and gain insights for informed decision-making. The Google tag, a unified code snippet, can be implemented across a website and connected to multiple Google products. Implementation methods include Google Tag Manager, which requires two code snippets and allows tag management without coding, and gtag.js, requiring one code snippet and JavaScript proficiency. Website builders and the Firebase SDK offer integrations for simplified implementation.\n"],null,["# Introduction to tagging and the Google tag\n\nTagging is the process of adding snippets of code (called tags) to each page of\nyour website so you can learn about the people who visit your site and how they\ninteract with it.\n\nTagging is an integral part of many measurement products, including Google Ads,\nGoogle Analytics, and many third-party products too.\n\nWhether you want to know about your most popular blog posts, most effective\nlanding pages, or most popular products, the data you'll collect through tagging\nlets you make more informed decisions about your site and your marketing\nstrategies.\n\nGet started with the Google tag\n-------------------------------\n\nThe Google tag is a single piece of code that you can find in Google Ads, Google\nAnalytics, and other similar Google products. Instead of managing multiple tags\nfor different Google product accounts, you can use the Google tag across your\nentire website and connect the tag to multiple destinations.\n\nSet up the Google tag\n---------------------\n\nSetting up the Google tag depends on how your site is set up and how you can\nchange the code. You can implement the Google tag on your site in one of the\nfollowing ways:\n\n- **Google Tag Manager**: A tag management system that lets you set up and\n manage tags on your site without changing your code. To use Tag Manager, you\n add 2 snippets of code to each page of your website. After you add the\n snippets to your code, you don't need to change your code much after that;\n instead, you can set up and manage your tags through the Tag Manager website.\n\n- **gtag.js**: A JavaScript framework that lets you send data from your site to\n Google measurement products. To set up gtag.js, you add 1 snippet of code to\n each page of your site. To use gtag.js effectively, you need to be comfortable\n changing JavaScript on your site.\n\nIf you use a website builder or content management system like Shopify, Wix, or\nWordpress, the website builder or content management system may offer an\nintegration for setting up Tag Manager or gtag.js on your site.\n\nTo set up measurement and advertising tags in a mobile app,\nuse the Google Analytics for Firebase SDK. Then, you can also\nuse Tag Manager to modify and route data in the mobile app.\n\nNext steps\n----------\n\n- [Plan your tag setup](/tag-platform/devguides/prerequisites)\n- Set up the Google tag with:\n - [Tag Manager](https://support.google.com/tagmanager/answer/6102821)\n - [gtag.js](/tag-platform/gtagjs/install)\n - [a website builder or CMS](https://support.google.com/tagmanager/answer/12403447)\n - [the Google Analytics for Firebase SDK](https://firebase.google.com/docs/analytics)"]]