Google 담당자와 협력하여 Actions Center 계정의 Measurement ID를 생성합니다.
다음과 같은 모든 웹페이지의 head 태그 뒤에 다음 코드 스니펫을 추가합니다.
전환이 발생할 수 있습니다.
Google 예약이 사용 설정된 모든 action_links의 방문 페이지입니다.
기존 Google 애널리틱스 통합 없음
Google 애널리틱스 사이트(gtag.js)를 처음 만드는 경우 다음 코드 스니펫을 사용하세요.
<!--Globalsitetag(gtag.js)-GoogleAnalytics-->
<scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID_PROVIDED_BY_GOOGLE"></script>
<script>
window.dataLayer=window.dataLayer||[];functiongtag(){dataLayer.push(arguments);}gtag('js',newDate());gtag('config','GA_MEASUREMENT_ID_PROVIDED_BY_GOOGLE',// Replace with Measurement ID{// DO NOT EDIT THE BELOW MENTIONED PARAMETERS// AS OVERRIDING RESULTS IN SENDING US PII INFORMATION.'referrer':undefined,'page_title':undefined,'page_path':undefined,'page_location':undefined,'send_page_view':false,'anonymize_ip':true,'groups':'reserve_with_google'});
</script>
기존 Google 애널리틱스 통합
기존 통합에 이미 Google 애널리틱스 사이트 태그(gtag.js)가 있는 경우 다음 코드 스니펫을 사용하세요.
gtag('config','GA_MEASUREMENT_ID_PROVIDED_BY_GOOGLE',//Replace with Measurement ID{'referrer':undefined,'page_title':undefined,'page_path':undefined,'page_location':undefined,'send_page_view':false,'anonymize_ip':true,'groups':'reserve_with_google'});
위에서 언급한 코드 스니펫을 계정에 생성된 측정 ID로 업데이트합니다.
액션 센터 URL 매개변수 유지
action link에서 발생한 전환을 올바르게 추적하기 위해 Google에서는 URL 매개변수 rwg_token를 설정하며, 이 매개변수는 전환 시 반환되어야 합니다.
rwg_token URL 매개변수를 유지해야 합니다. 이 매개변수는 사용자가 Google을 통해 방문 페이지를 방문할 때 최대 30일 동안 광고주가 제공한 모든 작업 링크에 추가됩니다. 이 정보를 유지하는 가장 좋은 방법은 쿠키를 사용하는 것입니다.
작업 센터가 사용 설정된 모든 action_link의 방문 페이지에 다음 스크립트를 추가합니다.
사용자가 Google 장소 작업 링크에서 발생한 거래를 완료하면 전환 추적을 완료하려면 아래에 언급된 코드를 트리거해야 합니다.
<script>
functiongetCookie(cname){varname=cname+"=";vardecodedCookie=decodeURIComponent(document.cookie);varca=decodedCookie.split(';');for(vari=0;i<ca.length;i++){varc=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}if(c.indexOf(name)==0){returnc.substring(name.length,c.length);}}return"";}if(leadFromReserveWithGoogle()){// implement a function to identify the conversion is originating via Googlegtag('event','rwg_conversion',{'rwg_token':getCookie('_rwg_token'),'send_to':'reserve_with_google'});}
</script>
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eImplement Google Analytics conversion tracking for Actions Center Legacy Integration by obtaining a Measurement ID and adding the provided code snippet to relevant web pages.\u003c/p\u003e\n"],["\u003cp\u003ePersist the \u003ccode\u003erwg_token\u003c/code\u003e URL parameter, received via Google Action links, for up to 30 days using cookies to enable accurate conversion tracking.\u003c/p\u003e\n"],["\u003cp\u003eTrigger the conversion tracking event with the stored \u003ccode\u003erwg_token\u003c/code\u003e value when a user completes a transaction originating from a Google Place Action link using the provided code snippet and your own logic to identify Reserve with Google conversions.\u003c/p\u003e\n"],["\u003cp\u003eEnsure no Personal Identification Information (PII) is sent to Google during conversion tracking without explicit user consent or legal permission, by adhering to the provided code and guidelines.\u003c/p\u003e\n"]]],["To track conversions for Actions Center Legacy Integration, partners must first obtain a `Measurement ID` from Google and implement the provided Google Analytics site tag on relevant web pages, using the ID. Next, they must persist the `rwg_token` URL parameter from Google's action links, ideally via cookies, for up to 30 days. Finally, upon a user completing a transaction originating from Google, the provided script must be triggered, sending the `rwg_token` to complete conversion tracking, while excluding user PII.\n"],null,["# Supporting Google Analytics conversion tracking\n\n| **Objective:** Implement conversion tracking for Actions Center Legacy Integration using Google Analytics.\n| **Note:** Please ensure that as part of conversion data, user Personal Identification Information (PII) should **not** be sent to Google without expressed user consent or as otherwise permitted under law.\n| **Note:** Partners do **not** need to set up their own Google Analytics account in order to participate in conversion tracking.\n\n### Instructions\n\nThere are 3 phases for implementing conversion tracking:\n\n1. Setting up Google Analytics(GA) site tag\n2. Persisting Actions Center URL parameter\n3. Sending Conversion Data\n\n### Google Analytics site Tag setup.\n\nWork with you Google contact to generate a `Measurement ID`\nfor your Actions Center account.\n| **Key Point:** Store this Measurement ID , as this will be required to implement conversion tracking for your account.\n\nAdd the following code snippet after the `head` tags on all web pages\nthat:\n\n- a conversion can occur\n- the landing page for all `action_links` that are Reserve with Google enabled.\n\n#### No Existing Google Analytics Integration\n\nIf this is the first time creating a Google Analytics site(gtag.js), use the\nfollowing code snippet: \n\n```javascript\n\u003c!-- Global site tag (gtag.js) - Google Analytics --\u003e\n\u003cscript async src=\"https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID_PROVIDED_BY_GOOGLE\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config',\n 'GA_MEASUREMENT_ID_PROVIDED_BY_GOOGLE', // Replace with Measurement ID\n {\n // DO NOT EDIT THE BELOW MENTIONED PARAMETERS\n // AS OVERRIDING RESULTS IN SENDING US PII INFORMATION.\n 'referrer' : undefined,\n 'page_title' : undefined,\n 'page_path': undefined,\n 'page_location': undefined,\n 'send_page_view': false,\n 'anonymize_ip': true,\n 'groups': 'reserve_with_google'\n });\n\u003c/script\u003e\n```\n\n#### Existing Google Analytics Integration\n\nIf you already have a Google Analytics site tag(gtag.js) for an existing\nintegration, use the following code snippet: \n\n```javascript\ngtag('config',\n 'GA_MEASUREMENT_ID_PROVIDED_BY_GOOGLE', //Replace with Measurement ID\n {\n 'referrer' : undefined,\n 'page_title' : undefined,\n 'page_path': undefined,\n 'page_location': undefined,\n 'send_page_view': false,\n 'anonymize_ip': true,\n 'groups': 'reserve_with_google'\n });\n```\n\nUpdate the above mentioned code snippets with the generated Measurement ID\nfor your account.\n\n### Persisting Actions Center URL Parameter\n\nTo properly track conversions from `action link`(s), Google will\nset a URL parameter `rwg_token`, which should be returned at the\ntime of a conversion.\n\nYou will be required to persist the `rwg_token` URL parameter\nwhich will be appended to all action links provided by you for a maximum\nduration of 30 days when a user visits the landing page via Google. The\npreferred way to persist this information is via cookies.\n| **Note:** The value of the `rwg_token` should be stored and returned without any edits.\n\n1. Add the following script on the landing page for all your `action_link`(s) that are Actions Center enabled.\n2. Update the rootdomain with your domain.\n\n```javascript\n\u003cscript\u003e\n var query = location.search.substring(1);\n var params = query.split('&');\n var rwg_token = undefined;\n for (var i = 0; i \u003c params.length; ++i) {\n var pair = params[i].split('=');\n if (pair[0] == 'rwg_token') {\n rwg_token = decodeURIComponent(pair[1]);\n break;\n }\n }\n if (typeof rwg_token == 'undefined') {\n document.cookie =\n \"_rwg_token=\" + rwg_token + \";max-age=2592000;domain=rootdomain.com;path=/\";\n }\n\u003c/script\u003e\n```\n\n### Sending Conversion Data\n\nWhen a user completes a transaction which originated from a Google Place\nAction link, you need to trigger the code mentioned below in order to\ncomplete conversion tracking.\n**Note:** When triggering this event, you will need to provide the `rwg_token` value described in the previous step. \n\n```javascript\n\u003cscript\u003e\n function getCookie(cname) {\n var name = cname + \"=\";\n var decodedCookie = decodeURIComponent(document.cookie);\n var ca = decodedCookie.split(';');\n for(var i = 0; i \u003cca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) == ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(name) == 0) {\n return c.substring(name.length, c.length);\n }\n }\n return \"\";\n }\n\n if (leadFromReserveWithGoogle()) { // implement a function to identify the conversion is originating via Google\n gtag('event', 'rwg_conversion', {\n 'rwg_token': getCookie('_rwg_token'),\n 'send_to': 'reserve_with_google'\n });\n }\n\u003c/script\u003e\n```"]]