ใช้แท็ก Google สําหรับการวัด Conversion ใน Floodlightถัดไป: เครื่องมือวัด Conversion ข้ามโดเมน Show The Google tag streamlines tagging across Google’s site measurement, conversion tracking, and remarketing products. To record a Floodlight conversion, a Google tag contains two code snippets – a global snippet that you install on every page of your site, and a Floodlight event snippet that you install on the conversion page. เมื่อคุณสร้างกิจกรรม Floodlight ระบบของ Search Ads 360 จะสร้างข้อมูลโค้ดที่ติดทั่วเว็บไซต์และข้อมูลโค้ดเหตุการณ์โดยอัตโนมัติ บทความนี้อธิบายช่องในข้อมูลโค้ดที่ Search Ads 360 สร้างขึ้น หมายเหตุ: หากสร้างกิจกรรม Floodlight จาก Campaign Manager 360 คุณอาจเห็น ข้อมูลโค้ดที่ติดทั่วเว็บไซต์Accelerated Mobile Pages ต้องใช้แท็กที่แตกต่างจากหน้าสำหรับเดสก์ท็อปและหน้าสำหรับอุปกรณ์เคลื่อนที่แบบดั้งเดิม พิจารณาว่าจะกำหนดค่าหน้าเว็บสำหรับแท็กใดก่อนทำให้แท็กใช้งานได้ สำหรับหน้าที่ไม่ใช่ Accelerated Mobile Pagesตัวอย่างนี้คือข้อมูลโค้ดที่ติดทั่วเว็บไซต์สำหรับหน้าที่ไม่ใช่ Accelerated Mobile Pages ข้อมูลโค้ดนี้ควรวางไว้ระหว่างแท็ก `<! Start of global snippet: Please do not remove Place this snippet between the <head> and </head> tags on every page of your site. > <! Google tag (gtag.js) - DoubleClick > <script async src="https://www.googletagmanager.com/gtag/js?id=DC-1234567"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)}; gtag('js', new Date()); gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove > ` มาดูรายละเอียดของช่องหลักในข้อมูลโค้ดที่ติดทั่วเว็บไซต์กัน
คุณไม่ควรส่งข้อมูลในช่องของข้อมูลโค้ดที่ติดทั่วเว็บไซต์แบบไดนามิก เมื่อติดตั้งในเว็บไซต์โดยใช้ตัวระบุบัญชีที่ถูกต้องแล้ว ข้อมูลโค้ดที่ติดทั่วเว็บไซต์ก็สมบูรณ์ สำหรับ Accelerated Mobile Pagesตัวอย่างนี้คือข้อมูลโค้ดที่ติดทั่วเว็บไซต์สำหรับ Accelerated Mobile Pages ข้อมูลโค้ดนี้ควรวางไว้ระหว่างแท็ก ``0 มาดูรายละเอียดของช่องหลักในแท็ก Google กัน
คุณไม่ควรส่งข้อมูลในช่องของแท็ก Google แบบไดนามิก เมื่อติดตั้งในเว็บไซต์โดยใช้ตัวระบุบัญชีที่ถูกต้องแล้ว แท็ก Google ก็สมบูรณ์ ข้อมูลโค้ดเหตุการณ์ตัวอย่างนี้คือข้อมูลโค้ดเหตุการณ์ที่ Search Ads 360 สร้างขึ้นสำหรับกิจกรรมธุรกรรม ข้อมูลโค้ดเหตุการณ์ควรวางไว้ในหน้าเว็บซึ่งมีเหตุการณ์ที่กำลังติดตาม โดยวางในหน้าเว็บใดก็ได้หลังข้อมูลโค้ดที่ติดทั่วเว็บไซต์ แต่เราขอแนะนำให้วางไว้ในส่วน คุณต้องตั้งค่าให้บางช่องแบบไดนามิกโดยใช้ข้อมูลจาก Conversion ที่กำลังบันทึก ในตัวอย่างด้านล่าง ตัวยึดตำแหน่งสำหรับค่าแบบไดนามิกจะปรากฏในวงเล็บ เช่น ``2 ``3 มาดูรายละเอียดของช่องหลักในข้อมูลโค้ดเหตุการณ์กัน
ช่องที่กำหนดเองในข้อมูลโค้ดเหตุการณ์You can insert custom data into event snippets with the `<! Start of global snippet: Please do not remove Place this snippet between the <head> and </head> tags on every page of your site. > <! Google tag (gtag.js) - DoubleClick > <script async src="https://www.googletagmanager.com/gtag/js?id=DC-1234567"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)}; gtag('js', new Date()); gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove > `0 field. This field accepts any values you want to pass to Google Marketing Platform. You must not pass any data that Google Marketing Platform could use or recognize as personally-identifiable information. Here are some common fields you may want to use with `<! Start of global snippet: Please do not remove Place this snippet between the <head> and </head> tags on every page of your site. > <! Google tag (gtag.js) - DoubleClick > <script async src="https://www.googletagmanager.com/gtag/js?id=DC-1234567"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)}; gtag('js', new Date()); gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove > `0 field: Field name Value format Counting method Description`<! Start of global snippet: Please do not remove Place this snippet between the <head> and </head> tags on every page of your site. > <! Google tag (gtag.js) - DoubleClick > <script async src="https://www.googletagmanager.com/gtag/js?id=DC-1234567"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)}; gtag('js', new Date()); gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove >
gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove >
gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove >
gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove >
gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove >
gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove >
gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove >
gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove > `9 0 or 1 All This field applies to tags on mobile devices. It accepts a value of 0 or 1. A value of 1 indicates that this particular request may come from a user under the age of 13, under COPPA compliance.`src="https://www.googletagmanager.com/gtag/js?id=DCM_FLOODLIGHT_CONFIG_ID"`0 0 or 1 All It accepts a value of 0 or 1. A value of 1 indicates that this particular request may come from a user under the age of 16 (may differ by country), under compliance with the EU’s General Data Protection Regulation (GDPR) or other regulations.`src="https://www.googletagmanager.com/gtag/js?id=DCM_FLOODLIGHT_CONFIG_ID"`1 0 or 1 All It accepts a value of 0 or 1. A value of 1 indicates that this particular request may come from a user who wishes to opt-out of remarketing. If missing or unpopulated, this field will default to 0.`src="https://www.googletagmanager.com/gtag/js?id=DCM_FLOODLIGHT_CONFIG_ID"`2 string all A unique advertiser created identifier (passed via Floodlight) that can be synced with Google to attribute offline conversions.
Example event snippet with the `<!--Start of global snippet: Please do not remove Place this snippet between the <head> and </head> tags on every page of your site. > <! Google tag (gtag.js) - DoubleClick --> <script async src="https://www.googletagmanager.com/gtag/js?id=DC-1234567"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)}; gtag('js', new Date()); gtag('config', 'DC-1234567'); </script> <! End of global snippet: Please do not remove > `0 field `src="https://www.googletagmanager.com/gtag/js?id=DCM_FLOODLIGHT_CONFIG_ID"`4 ส่วน ของข้อมูลโค้ดเหตุการณ์Event snippets generated by Search Ads 360 include an optional `src="https://www.googletagmanager.com/gtag/js?id=DCM_FLOODLIGHT_CONFIG_ID"`5 tag that contains a Floodlight image tag. This tag is used to report conversions in browsers that don't support JavaScript. If you use Floodlight iframe or image tags, we recommend you migrate to the Google tag or use Google Tag Manager with the Conversion Linker to measure conversions more accurately and benefit from the latest dynamic features and integrations as they become available. ข้อมูลเพิ่มเติมสำหรับนักพัฒนาเว็บไซต์ดูข้อมูลเพิ่มเติมเกี่ยวกับการเพิ่มแท็ก Google (gtag) ลงในเว็บไซต์ได้ที่คู่มือนักพัฒนาซอฟต์แวร์ gtag.js |