เอกสารนี้อธิบายพารามิเตอร์ที่ตั้งค่าสำหรับแท็ก Google Tag Manager ได้
บทนำ
แท็ก Google Tag Manager แต่ละรายการจะมีรหัส type
เพื่อระบุแท็ก
นอกจากนี้ แท็กส่วนใหญ่ยังมีพารามิเตอร์ (คู่ key
, type
) ที่คุณตั้งค่าเป็นส่วนหนึ่งของ "ออบเจ็กต์พารามิเตอร์" ได้เมื่อสร้างหรืออัปเดตแท็ก หากต้องการดูข้อมูลเพิ่มเติมเกี่ยวกับวิธีตั้งค่าพารามิเตอร์เหล่านี้โดยใช้ออบเจ็กต์พารามิเตอร์ โปรดดูข้อมูลอ้างอิงพารามิเตอร์
ส่วนที่เหลือของเอกสารนี้จะแสดงรายละเอียดแท็กทั้งหมดที่รองรับสําหรับเว็บและอุปกรณ์เคลื่อนที่
แท็กเว็บ
แท็ก HTML ที่กำหนดเอง
พิมพ์โค้ด
html
พารามิเตอร์
คีย์ | ประเภท |
---|---|
html |
template |
convertJsValuesToExpressions |
boolean |
usePostscribe |
boolean |
ตัวอย่าง
{ "liveOnly": false, "name": "Sample Custom HTML", "parameter": [ { "key": "html", "type": "template", "value": "<script>alert('hello world')</script>" }, { "key": "convertJsValuesToExpressions", "type": "boolean", "value": "true" }, { "key": "usePostscribe", "type": "boolean", "value": "false" } ], "type": "html" }
แท็กรูปภาพที่กำหนดเอง
พิมพ์โค้ด
img
พารามิเตอร์
คีย์ | ประเภท |
---|---|
useCacheBuster |
boolean |
url |
template |
cacheBusterQueryParam |
template |
ตัวอย่าง
{ "liveOnly": false, "name": "Sample Custom Image Tag", "parameter": [ { "key": "useCacheBuster", "type": "boolean", "value": "true" }, { "key": "url", "type": "template", "value": "//{{a}}" }, { "key": "cacheBusterQueryParam", "type": "template", "value": "gtmcb" } ], "type": "img" }
Listener เหตุการณ์
Link Click Listener
พิมพ์โค้ด
lcl
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
checkValidation |
boolean |
|
waitForTags |
boolean |
|
waitForTagsTimeout |
template |
จำนวนมิลลิวินาที ระบุเมื่อ waitForTags=true
|
ตัวอย่าง
{ "name": "Sample Link Click Listener", "liveOnly": false, "parameter": [ { "type": "boolean", "key": "waitForTags", "value": "true" }, { "type": "boolean", "key": "checkValidation", "value": "true" }, { "type": "template", "key": "waitForTagsTimeout", "value": "2000" } ], "type": "lcl", }
Listener การส่งแบบฟอร์ม
พิมพ์โค้ด
fsl
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
waitForTags |
boolean |
|
checkValidation |
boolean |
|
waitForTagsTimeout |
template |
จํานวนมิลลิวินาที ระบุเวลา waitForTags=true |
ตัวอย่าง
{ "liveOnly": false, "name": "Sample Form Submit Listener", "parameter": [ { "key": "waitForTags", "type": "boolean", "value": "false" }, { "key": "checkValidation", "type": "boolean", "value": "false" } ], "type": "fsl" }
Click Listener
พิมพ์โค้ด
cl
พารามิเตอร์
ไม่มี
ตัวอย่าง
{ "liveOnly": false, "name": "Sample Click Listener", "type": "cl" }
Listener ตัวจับเวลา
พิมพ์โค้ด
tl
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
eventName |
template |
|
interval |
template |
จํานวนมิลลิวินาที |
limit |
template |
จํานวนครั้งสูงสุดที่จะทํางาน |
ตัวอย่าง
{ "liveOnly": false, "name": "Sample Timer Listener", "parameter": [ { "key": "eventName", "type": "template", "value": "gtm.timer" }, { "key": "interval", "type": "template", "value": "{{a}}" }, { "key": "limit", "type": "template", "value": "5" } ], "type": "tl" }
Listener ข้อผิดพลาด JavaScript
พิมพ์โค้ด
jel
พารามิเตอร์
ไม่มี
ตัวอย่าง
{ "liveOnly": false, "name": "Sample JavaScript Error Listener", "type": "jel" }
History Listener
พิมพ์โค้ด
hl
พารามิเตอร์
ไม่มี
ตัวอย่าง
{ "liveOnly": false, "name": "Sample History Listener", "type": "hl" }
การติดตามโฆษณาแบบดิสเพลย์
ตัวนับ Floodlight
พิมพ์โค้ด
flc
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
ordinalType |
template |
รายการใดรายการหนึ่งต่อไปนี้ STANDARD , UNIQUE , SESSION
|
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
useImageTag |
boolean |
|
customVariable |
list |
[key , value ] คู่ |
userVariable |
template |
ตัวแปร u= ของแท็ก |
transactionVariable |
template |
ตัวแปร tran= ของแท็ก |
sessionId |
template |
ระบุว่า ordinalType คือ SESSION หรือไม่ |
ตัวอย่าง
{ "liveOnly": false, "name": "Sample Floodlight Counter", "parameter": [ { "key": "ordinalType", "type": "template", "value": "STANDARD" }, { "key": "advertiserId", "type": "template", "value": "{{a}}" }, { "key": "groupTag", "type": "template", "value": "{{b}}" }, { "key": "activityTag", "type": "template", "value": "{{c}}" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "type": "list" "list": [ { "type": "map", "map": [ { "type": "template", "key": "key", "value": "u2" }, { "type": "template", "key": "value", "value": "u2_custom_var" } ] }, { "type": "map", "map": [ { "type": "template", "key": "key", "value": "u1" }, { "type": "template", "key": "value", "value": "u1_custom_var" } ] }, { "key": "userVariable", "type": "template", "value": "" }, { "key": "transactionVariable", "type": "template", "value": "" }, { "type": "template", "key": "sessionId", "value": "MySessionId" } ], "type": "flc" }
ยอดขาย Floodlight
พิมพ์โค้ด
fls
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
countingMethod |
template |
หนึ่งใน TRANSACTIONS , ITEM_SOLD |
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
revenue |
template |
|
orderId |
template |
|
useImageTag |
boolean |
|
customVariable |
map |
รายการแผนที่แต่ละรายการมีคู่ [key , value ] รายการเดียว |
userVariable |
template |
ตัวแปร u= ของแท็ก |
transactionVariable |
template |
ตัวแปร tran= ของแท็ก |
quantity |
template |
ระบุว่า countingMethod เป็น ITEM_SOLD หรือไม่ |
ตัวอย่าง
{ "name": "Sample Floodlight Sales Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "countingMethod", "value": "TRANSACTIONS" }, { "type": "template", "key": "advertiserId", "value": "{{a}}" }, { "type": "template", "key": "groupTag", "value": "{{b}}" }, { "type": "template", "key": "activityTag", "value": "{{c}}" }, { "type": "template", "key": "revenue", "value": "{{a}}" }, { "type": "template", "key": "orderId", "value": "{{b}}" }, { "type": "boolean", "key": "useImageTag", "value": "false" }, { "type": "map", "key": "customVariable", "map": [ { "type": "template", "key": "u2", "value": "u2_custom_var" }, { "type": "template", "key": "u1", "value": "u1_custom_var" } ] }, { "type": "template", "key": "userVariable", "value": "u_var" }, { "type": "template", "key": "transactionVariable", "value": "tran_var" } ], "type": "fls" }
Mediaplex - แท็ก MCT ของ IFRAME
พิมพ์โค้ด
mpm
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
placementId |
template |
|
roiName |
template |
|
pageName |
template |
|
uniqueUserId |
template |
ไม่บังคับ |
ตัวอย่าง
{ "name": "Sample Mediaplex IFRAME MCT Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "placementId", "value": "{{a}}" }, { "type": "template", "key": "roiName", "value": "1" }, { "type": "template", "key": "pageName", "value": "{{a}}" } ], "type": "mpm" }
Mediaplex - แท็ก ROI IMG มาตรฐาน
พิมพ์โค้ด
mpr
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
placementId |
template |
|
roiName |
template |
|
uniqueUserId |
template |
ไม่บังคับ |
ตัวอย่าง
{ "name": "Sample Mediaplex Standard IMG ROI Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "placementId", "value": "{{a}}" }, { "type": "template", "key": "roiName", "value": "1" }, { "type": "template", "key": "uniqueUserId", "value": "MyUniqueId" } ], "type": "mpr" }
Turn เครื่องมือวัด Conversion
พิมพ์โค้ด
tc
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
customerId |
template |
รหัสสัญญาข้อมูล |
orderId |
template |
ไม่บังคับ |
orderValue |
template |
ไม่บังคับ |
optOut |
template |
ไม่บังคับ |
ตัวอย่าง
{ "name": "Sample Turn Conversion Tracking", "liveOnly": false, "parameter": [ { "type": "template", "key": "customerId", "value": "{{a}}" }, { "type": "template", "key": "orderId", "value": "MyOrderId" }, { "type": "template", "key": "orderValue", "value": "MyOrderValue" }, { "type": "template", "key": "optOut", "value": "MyOptOut" } ], "type": "tc" }
รีมาร์เก็ตติ้ง
AdRoll Smart Pixel
พิมพ์โค้ด
asp
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
customerId |
template |
adroll_adv_id |
pixelId |
template |
adroll_pix_id |
conversionValueInDollars |
template |
ไม่บังคับ |
customData |
map |
ไม่บังคับ รายการแผนที่ แต่ละแผนที่ใช้ [key , value ] คู่เดียว |
segmentName |
template |
ไม่บังคับ |
ตัวอย่าง
{ "name": "Sample AdRoll Smart Pixel", "liveOnly": false, "parameter": [ { "type": "template", "key": "customerId", "value": "{{a}}" }, { "type": "template", "key": "pixelId", "value": "{{a}}" }, { "type": "template", "key": "conversionValueInDollars", "value": "conversionValue" }, { "type": "map", "key": "customData", "map": [ { "type": "template", "key": "key2", "value": "World" }, { "type": "template", "key": "key1", "value": "Hello" } ] }, { "type": "template", "key": "segmentName", "value": "SegmentName" } ], "type": "asp" }
รีมาร์เก็ตติ้งของ Google Ads
พิมพ์โค้ด
sp
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
googleConversionId |
template |
|
googleConversionLabel |
template |
ไม่บังคับ |
customParamsFormat |
template |
DATA_LAYER , USER_SPECIFIED |
dataLayerVariable |
template |
สำหรับ customParamsFormat = DATA_LAYER |
googleCustomParams |
list |
สำหรับ customParamsFormat = USER_SPECIFIED |
googleScreenName |
template |
ไม่บังคับ |
ตัวอย่าง
customParamFormat = DATA_LAYER
หมายถึง
{ "name": "Sample Google Ads Remarketing", "liveOnly": false, "parameter": [ { "type": "template", "key": "googleConversionId", "value": "{{c}}" }, { "type": "template", "key": "googleConversionLabel", "value": "MyLabel" }, { "type": "template", "key": "customParamsFormat", "value": "DATA_LAYER" }, { "type": "template", "key": "dataLayerVariable", "value": "{{e}}" } ], "type": "sp" }
โดย customParamFormat = USER_SPECIFIED
:
{ "name": "Sample Google Ads Remarketing", "liveOnly": false, "parameter": [ { "type": "template", "key": "googleConversionId", "value": "{{c}}" }, { "type": "template", "key": "googleConversionLabel", "value": "MyLabel" }, { "type": "template", "key": "customParamsFormat", "value": "USER_SPECIFIED" }, { "type": "list", "key": "googleCustomParams", "list": [ { "type": "map", "map": [ { "type": "template", "key": "key", "value": "key2" }, { "type": "template", "key": "value", "value": "World" } ] }, { "type": "map", "map": [ { "type": "template", "key": "key", "value": "key1" }, { "type": "template", "key": "value", "value": "Hello" } ] } ] } ], "type": "sp" }
การเก็บรวบรวมข้อมูลของ Turn
พิมพ์โค้ด
tdc
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
customerId |
template |
|
categoryId |
template |
ไม่บังคับ |
keyword |
template |
ไม่บังคับ |
dataProviderId |
template |
ไม่บังคับ |
optOut |
template |
ไม่บังคับ |
ตัวอย่าง
{ "name": "Sample Turn Data Collection Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "customerId", "value": "{{a}}" }, { "type": "template", "key": "categoryId", "value": "myCategoryId" }, { "type": "template", "key": "keyword", "value": "myKeyword" }, { "type": "template", "key": "dataProviderId", "value": "myDataProviderId" }, { "type": "template", "key": "optOut", "value": "myOptOut" } ], "type": "tdc" }
ค้นหา
เครื่องมือวัด Conversion ของ Google Ads
ดูเครื่องมือวัด Conversion ของ Google Ads ใต้แท็กอุปกรณ์เคลื่อนที่
Marin Software
พิมพ์โค้ด
ms
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
type |
template |
หนึ่งใน TRACK_PAGEVIEW , TRACK_TRANSACTION |
clientId |
template |
|
anonymizeIp |
boolean |
ไม่บังคับ |
conversionType |
template |
สำหรับ type = TRACK_TRANSACTION |
useDataLayer |
boolean |
สำหรับ type = TRACK_TRANSACTION |
orderId |
template |
สำหรับ useDataLayer = false |
product |
template |
สำหรับ useDataLayer = false |
price |
template |
สำหรับ useDataLayer = false |
category |
template |
สำหรับ useDataLayer = false |
quantity |
template |
สำหรับ useDataLayer = false |
currencyCode |
template |
สำหรับ useDataLayer = false |
ตัวอย่าง
โดย type=TRACK_PAGEVIEW
:
{ "name": "Sample Marin Software Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "type", "value": "TRACK_PAGEVIEW" }, { "type": "template", "key": "clientId", "value": "Client ID" }, { "type": "boolean", "key": "anonymizeIp", "value": "false" } ], "type": "ms" }
type = TRACK_TRANSACTION
และ useDataLayer =
true
หมายถึง
{ "name": "Sample Marin Software Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "type", "value": "TRACK_TRANSACTION" }, { "type": "template", "key": "clientId", "value": "Client ID" }, { "type": "template", "key": "conversionType", "value": "myConversionType" }, { "type": "boolean", "key": "anonymizeIp", "value": "false" }, { "type": "boolean", "key": "useDataLayer", "value": "true" } ], "type": "ms" }
type = TRACK_TRANSACTION
และ useDataLayer =
false
หมายถึง
{ "name": "Sample Marin Software Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "type", "value": "TRACK_TRANSACTION" }, { "type": "template", "key": "clientId", "value": "Client ID" }, { "type": "template", "key": "conversionType", "value": "myConversionType" }, { "type": "boolean", "key": "anonymizeIp", "value": "false" }, { "type": "template", "key": "orderId", "value": "myOrderId" }, { "type": "template", "key": "product", "value": "myProduct" }, { "type": "template", "key": "price", "value": "myPrice" }, { "type": "template", "key": "category", "value": "myCategory" }, { "type": "template", "key": "quantity", "value": "myQuantity" }, { "type": "template", "key": "currencyCode", "value": "myCurrencyCode" }, { "type": "boolean", "key": "useDataLayer", "value": "false" } ], "type": "ms" }
ผู้ชม
AdAdvisor
พิมพ์โค้ด
_ta
พารามิเตอร์
คีย์ | ประเภท |
---|---|
subscriberId |
template |
ตัวอย่าง
{ "name": "Sample AdAdvisor Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "subscriberId", "value": "{{a}}" } ], "type": "_ta", }
Bizo Insight
พิมพ์โค้ด
bzi
พารามิเตอร์
ตัวอย่าง
{ "name": "Sample Bizo Insight Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "id", "value": "{{a}}" }, { "type": "template", "key": "title", "value": "myTitle" }, { "type": "template", "key": "domain", "value": "myDomain" }, { "type": "template", "key": "company", "value": "myCompany" }, { "type": "template", "key": "location", "value": "myLocation" }, { "type": "template", "key": "employeeRange", "value": "myEmployeeRange" }, { "type": "template", "key": "standardIndustrialClassification", "value": "mySICS" }, { "type": "template", "key": "email", "value": "myEmail" } ], "type": "bzi" }
Dstillery Universal Pixel
พิมพ์โค้ด
m6d
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
id |
template |
|
title |
template |
ไม่บังคับ |
domain |
template |
ไม่บังคับ |
company |
template |
ไม่บังคับ |
location |
template |
ไม่บังคับ |
employeeRange |
template |
ไม่บังคับ |
standardIndustrialClassification |
template |
ไม่บังคับ |
email |
template |
ไม่บังคับ |
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
pixelId |
template |
|
pixelCheckValue |
template |
|
orderId |
template |
ไม่บังคับ |
revenue |
template |
ไม่บังคับ |
namespaceId |
template |
|
namespaceCheckValue |
template |
|
namespaceCode |
template |
ตัวอย่าง
{ "name": "Sample Dstillery Pixel Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "pixelId", "value": "{{a}}" }, { "type": "template", "key": "pixelCheckValue", "value": "{{a}}" }, { "type": "template", "key": "orderId", "value": "myOrderId" }, { "type": "template", "key": "revenue", "value": "myRevenue" }, { "type": "template", "key": "namespaceId", "value": "{{a}}" }, { "type": "template", "key": "namespaceCheckValue", "value": "{{a}}" }, { "type": "template", "key": "namespaceCode", "value": "{{a}}" } ], "type": "m6d" }
แท็ก Conversion ของ VisualDNA
พิมพ์โค้ด
vdc
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
apiAccountKey |
template |
|
conversionId |
template |
|
identitySyncPlatformCode |
template |
ไม่บังคับ |
ตัวอย่าง
{ "name": "Sample Visual DNA Conversion Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "apiAccountKey", "value": "{{a}}" }, { "type": "template", "key": "conversionId", "value": "{{a}}" }, { "type": "template", "key": "identitySyncPlatformCode", "value": "mySyncPlatformCode" } ], "type": "vdc" }
Analytics
Google Analytics แบบคลาสสิก
พิมพ์โค้ด
ga
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
webPropertyId |
template |
|
type |
template |
ข้อใดข้อหนึ่ง: TRACK_PAGEVIEW , TRACK_EVENT ,
LINK |
siteSpeedSampleRate |
template |
ควรประเมินเป็นค่าเปอร์เซ็นต์ที่เป็นตัวเลข (0..100) |
cookiePath |
template |
|
page |
template |
|
domainName |
template |
|
allowLinker |
boolean |
|
sampleRate |
integer |
ช่วง 0 ถึง 100 |
campaignCookieTimeout |
template |
ควรประเมินเป็นค่าตัวเลขที่แสดงการหมดเวลาเป็นมิลลิวินาที |
allowAnchor |
boolean |
|
sessionCookieTimeout |
template |
ควรประเมินเป็นค่าตัวเลขที่แสดงการหมดเวลาเป็นมิลลิวินาที |
doubleClick |
boolean |
|
hitCallback |
template |
|
ignoredRef |
list |
รายการ URL ที่มาที่จะละเว้น |
ignoredRef[].value |
template |
ชื่อผู้อ้างอิง |
customVar |
list |
รายการแผนที่ 1 แผนที่ต่อตัวแปรที่กําหนดเอง |
customVar[].slot |
integer |
|
customVar[].name |
template |
|
customVar[].value |
template |
|
customVar[].scope |
integer |
1 สำหรับขอบเขต Hit, 2 สำหรับขอบเขตเซสชัน และ 3 สำหรับขอบเขตผู้ใช้ |
organic |
list |
|
organic[].searchEngine |
template |
|
organic[].queryParamName |
template |
|
organic[].prepend |
boolean |
|
ignoredOrganic |
list |
รายการคำหลักที่จะละเว้น |
ignoredOrganic[].value |
template |
คีย์เวิร์ดที่ไม่ต้องสนใจ |
title |
template |
|
campaignSourceOverride |
template |
|
campaignMediumOverride |
template |
|
campaignTermOverride |
template |
|
campaignContentOverride |
template |
|
campaignNameOverride |
template |
|
anonymizeIp |
boolean |
|
linkId |
boolean |
ไม่บังคับ เปิดใช้การระบุแหล่งที่มาของลิงก์ที่ปรับปรุงแล้ว |
contentGroup |
list |
รายการแผนที่ |
contentGroup[].index |
template |
ต้องเป็นจํานวนเต็ม |
contentGroup[].group |
template |
ชื่อกลุ่ม |
campContentKey |
template |
|
campMediumKey |
template |
|
campNameKey |
template |
|
campNoKey |
template |
|
campSourceKey |
template |
|
campTermKey |
template |
|
campaignTrack |
boolean |
|
clientInfo |
template |
|
detectFlash |
template |
|
detectTitle |
template |
|
localGifPath |
template |
|
sendHitstToGoogle |
template |
|
referrerOverride |
template |
|
visitorCookieTimeout |
template |
จำนวนมิลลิวินาที |
trackerName |
template |
|
cookiePathCopy |
list |
รายการเส้นทางของคุกกี้ |
cookiePathCopy[].value |
template |
เส้นทางคุกกี้ |
useDebugVersion |
boolean |
|
forceSsl |
boolean |
|
setTrackerName |
boolean |
|
eventCategory |
template |
สำหรับ trackType=TRACK_EVENT |
eventAction |
template |
สำหรับ trackType=TRACK_EVENT |
eventLabel |
template |
สำหรับ trackType=TRACK_EVENT |
eventValue |
template |
สำหรับ trackType=TRACK_EVENT |
nonInteraction |
boolean |
สำหรับ trackType=TRACK_EVENT |
targetUrl |
template |
สำหรับ trackType=LINK |
useHashLink |
boolean |
สำหรับ trackType=LINK |
formObject |
template |
สำหรับ trackType=LINK_BY_POST |
useHashLinkByPost |
boolean |
สำหรับ trackType=LINK_BY_POST |
currencyCode |
template |
ไม่บังคับ สำหรับ trackType=TRACK_TRANSACTION |
socialUseDataLayer |
boolean |
ไม่บังคับ สำหรับ trackType=TRACK_SOCIAL |
socialNetwork |
template |
สำหรับ trackType=TRACK_SOCIAL และ
socialUseDataLayer=false |
socialAction |
template |
สำหรับ trackType=TRACK_SOCIAL และ
socialUseDataLayer=false
|
socialPagePath |
template |
ไม่บังคับ สำหรับ trackType=TRACK_SOCIAL |
socialTarget |
template |
สำหรับ trackType=TRACK_SOCIAL และ
socialUseDataLayer=false |
timingCategory |
template |
สำหรับ trackType=TRACK_TIMING |
timingVariable |
template |
สำหรับ trackType=TRACK_TIMING |
timingTime |
template |
สำหรับ trackType=TRACK_TIMING |
timingLabel |
template |
สำหรับ trackType=TRACK_TIMING |
timingSampleRate |
template |
สำหรับ trackType=TRACK_TIMING |
useHashDecorateLink |
boolean |
สำหรับ trackType=DECORATE_LINK |
useHashDecorateForm |
boolean |
สำหรับ trackType=DECORATE_FORM |
ตัวอย่าง
โดย trackType=TRACK_PAGEVIEW
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "siteSpeedSampleRate", "value": "{{sampleRatePercent}}" }, { "type": "template", "key": "cookiePath", "value": "myCookiePath" }, { "type": "template", "key": "trackType", "value": "TRACK_PAGEVIEW" }, { "type": "template", "key": "page", "value": "myVirtualPagePath" }, { "type": "template", "key": "domainName", "value": "myDomainName" }, { "type": "boolean", "key": "allowLinker", "value": "true" }, { "type": "integer", "key": "sampleRate", "value": "10" }, { "type": "template", "key": "campaignCookieTimeout", "value": "{{timeoutInMilli}}" }, { "type": "boolean", "key": "allowAnchor", "value": "true" }, { "type": "template", "key": "sessionCookieTimeout", "value": "{{timeoutInMilli}}" }, { "type": "boolean", "key": "doubleClick", "value": "true" }, { "type": "list", "key": "ignoredRef", "list": [ { "type": "template", "value": "referrer1Ignore" }, { "type": "template", "value": "referrer2Ignore" } ] }, { "type": "list", "key": "customVar", "list": [ { "type": "map", "map": [ { "type": "integer", "key": "slot", "value": "1" }, { "type": "template", "key": "name", "value": "myCustomVar" }, { "type": "template", "key": "value", "value": "myCustomVarValue" }, { "type": "integer", "key": "scope", "value": "3" } ] } ] }, { "type": "list", "key": "organic", "list": [ { "type": "map", "map": [ { "type": "template", "key": "searchEngine", "value": "myOrganicSearchEngine" }, { "type": "template", "key": "queryParamName", "value": "mySearchQueryParamName" }, { "type": "boolean", "key": "prepend", "value": "true" } ] } ] }, { "type": "list", "key": "ignoredOrganic", "list": [ { "type": "template", "value": "keyword1Ignore" }, { "type": "template", "value": "keyword2Ignore" } ] }, { "type": "template", "key": "title", "value": "myPageTitle" }, { "type": "template", "key": "campaignSourceOverride", "value": "mySourceOverride" }, { "type": "template", "key": "campaignMediumOverride", "value": "myMediumOverride" }, { "type": "template", "key": "campaignTermOverride", "value": "myTermOverride" }, { "type": "template", "key": "campaignContentOverride", "value": "myContentOverride" }, { "type": "template", "key": "campaignNameOverride", "value": "myNameOverride" }, { "type": "boolean", "key": "anonymizeIp", "value": "true" }, { "type": "boolean", "key": "linkId", "value": "false" }, { "type": "list", "key": "contentGroup", "list": [ { "type": "map", "map": [ { "type": "template", "key": "index", "value": "1" }, { "type": "template", "key": "group", "value": "myContentGroup1" } ] } ] }, { "type": "template", "key": "campContentKey", "value": "myContentKey" }, { "type": "template", "key": "campMediumKey", "value": "myMediumKey" }, { "type": "template", "key": "campNameKey", "value": "myNameKey" }, { "type": "template", "key": "campNoKey", "value": "myNoOverrideKey" }, { "type": "template", "key": "campSourceKey", "value": "mySourceKey" }, { "type": "template", "key": "campTermKey", "value": "myTermKey" }, { "type": "boolean", "key": "campaignTrack", "value": "true" }, { "type": "boolean", "key": "clientInfo", "value": "true" }, { "type": "boolean", "key": "detectFlash", "value": "true" }, { "type": "boolean", "key": "detectTitle", "value": "true" }, { "type": "template", "key": "localGifPath", "value": "myLocalGIFPath" }, { "type": "boolean", "key": "sendHitsToGoogle", "value": "true" }, { "type": "template", "key": "referrerOverride", "value": "myReferrerOverride" }, { "type": "template", "key": "visitorCookieTimeout", "value": "{{timeoutInMilli}}" }, { "type": "template", "key": "trackerName", "value": "myTrackerName" }, { "type": "list", "key": "cookiePathCopy", "list": [ { "type": "template", "value": "/path/to/cookies1" }, { "type": "template", "value": "/path/to/cookies2" } ] }, { "type": "boolean", "key": "useDebugVersion", "value": "false" }, { "type": "boolean", "key": "forceSsl", "value": "false" }, { "type": "boolean", "key": "setTrackerName", "value": "true" } ], "type": "ga" }
trackType=TRACK_EVENT
หมายถึง
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "TRACK_EVENT" }, { "type": "template", "key": "eventCategory", "value": "myCategory" }, { "type": "template", "key": "eventAction", "value": "myAction" }, { "type": "template", "key": "eventLabel", "value": "myLabel" }, { "type": "template", "key": "eventValue", "value": "myValue" }, { "type": "boolean", "key": "nonInteraction", "value": "false" } ], "type": "ga" }
trackType=LINK
หมายถึง
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "LINK" }, { "type": "template", "key": "targetUrl", "value": "TargetURL" }, { "type": "boolean", "key": "useHashLink", "value": "false" } ], "type": "ga" }
โดย trackType=LINK_BY_POST
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "LINK_BY_POST" }, { "type": "template", "key": "formObject", "value": "{{a}}" }, { "type": "boolean", "key": "useHashLinkByPost", "value": "false" } ], "type": "ga" }
trackType=TRACK_TRANSACTION
หมายถึง
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "TRACK_TRANSACTION" }, { "type": "template", "key": "currencyCode", "value": "{{a}}" } ] "type": "ga" }
trackType=TRACK_SOCIAL
หมายถึง
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "TRACK_SOCIAL" }, { "type": "template", "key": "socialNetwork", "value": "mySocialNetwork" }, { "type": "template", "key": "socialAction", "value": "mySocialAction" }, { "type": "template", "key": "socialTarget", "value": "myTarget" }, { "type": "template", "key": "socialPagePath", "value": "myPagePaht" } ], "type": "ga" }
trackType=TRACK_TIMING
หมายถึง
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "TRACK_TIMING" }, { "type": "template", "key": "timingCategory", "value": "myCategory" }, { "type": "template", "key": "timingVariable", "value": "myVariable" }, { "type": "template", "key": "timingTime", "value": "myTime" }, { "type": "template", "key": "timingLabel", "value": "myLabel" }, { "type": "template", "key": "timingSampleRate", "value": "{{sampleRatePercent}}" } ], "type": "ga" }
โดย trackType=DECORATE_LINK
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "DECORATE_LINK" }, { "type": "boolean", "key": "useHashDecorateLink", "value": "false" } ], "type": "ga" }
โดย trackType=DECORATE_FORM
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "G-1234567ABC" }, { "type": "template", "key": "trackType", "value": "DECORATE_LINK" }, { "type": "boolean", "key": "useHashDecorateForm", "value": "false" } ], "type": "ga" }
ClickTale Standard
พิมพ์โค้ด
cts
พารามิเตอร์
คีย์ | ประเภท |
---|---|
projectId |
template |
sampleRate |
template |
partition |
template |
ตัวอย่าง
{ "name": "Sample ClickTale Standard Tracking", "liveOnly": false, "parameter": [ { "type": "template", "key": "projectId", "value": "{{a}}" }, { "type": "template", "key": "sampleRate", "value": "{{a}}" }, { "type": "template", "key": "partition", "value": "{{a}}" } ], "type": "cts" }
comScore Unified Digital Measurement
พิมพ์โค้ด
csm
พารามิเตอร์
คีย์ | ประเภท |
---|---|
clientId |
template |
ตัวอย่าง
{ "name": "Sample comScore Unified Digital Measurement", "liveOnly": false, "parameter": [ { "type": "template", "key": "clientId", "value": "{{a}}" } ], "type": "csm" }
แท็กอุปกรณ์เคลื่อนที่
เครื่องมือวัด Conversion ของ Google Ads
พิมพ์โค้ด
awct
พารามิเตอร์
คีย์ | ประเภท |
---|---|
googleConversionId |
template |
googleConversionLabel |
template |
googleConversionValue |
template |
ตัวอย่าง
{ "liveOnly": false, "name": "Google Ads Conversion Tracking", "parameter": [ { "key": "googleConversionId", "type": "template", "value": "{{a}}" }, { "key": "googleConversionLabel", "type": "template", "value": "{{a}}" }, { "key": "googleConversionValue", "type": "template", "value": "{{a}}" } ], "tagId": "1", "type": "awct" }
รีมาร์เก็ตติ้งของ Google Ads
พิมพ์โค้ด
sp
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
googleConversionId |
template |
|
googleConversionLabel |
template |
|
customParamsFormat |
template |
รายการใดรายการหนึ่งต่อไปนี้ DATA_LAYER , USER_SPECIFIED |
googleScreenName |
template |
ไม่บังคับ |
dataLayerVariable |
template |
สำหรับ customParamsFormat=DATA_LAYER ควรอ้างอิงมาโครตัวแปรชั้นข้อมูล |
googleCustomParams |
list |
รายการแผนที่แต่ละรายการมีรายการ [key , value ] รายการเดียว
สำหรับ customParamsFormat=USER_SPECIFIED |
googleCustomParams[].key |
template |
|
googleCustomParams[].value |
template |
ตัวอย่าง
customParamsFormat=USER_SPECIFIED
หมายถึง
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Google Ads Remarketing", "parameter": [ { "key": "conversionId", "type": "template", "value": "cvid" }, { "key": "conversionLabel", "type": "template", "value": "cvl" }, { "key": "customParamsFormat", "type": "template", "value": "USER_SPECIFIED" }, { "key": "customParams", "list": [ { "map": [ { "key": "key", "type": "template", "value": "cpk1" }, { "key": "value", "type": "template", "value": "cpv1" } ], "type": "map" } ], "type": "list" } ], "tagId": "2", "type": "sp" }
customParamsFormat=DATA_LAYER
หมายถึง
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Google Ads Remarketing DataLayer", "parameter": [ { "key": "conversionId", "type": "template", "value": "cvid" }, { "key": "conversionLabel", "type": "template", "value": "cvl" }, { "key": "customParamsFormat", "type": "template", "value": "DATA_LAYER" }, { "key": "dataLayerVariable", "type": "template", "value": "{{dlv}}" } ], "tagId": "3", "type": "sp" }
ตัวนับ Floodlight
พิมพ์โค้ด
flc
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
ordinalType |
template |
รายการใดรายการหนึ่งต่อไปนี้ STANDARD , UNIQUE , SESSION
|
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
customVariable |
list |
[key , value ] คู่ |
userVariable |
template |
ตัวแปร u= ของแท็ก |
transactionVariable |
template |
ตัวแปร tran= ของแท็ก |
sessionId |
template |
ระบุว่า ordinalType คือ SESSION หรือไม่ |
useImageTag |
boolean |
|
unrepeatable |
boolean |
ไม่บังคับ |
ตัวอย่าง
ordinalType=STANDARD
หมายถึง
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Counter", "parameter": [ { "key": "ordinalType", "type": "template", "value": "STANDARD" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "list": [ { "map": [ { "key": "key", "type": "template", "value": "u3" }, { "key": "value", "type": "template", "value": "bar" } ], "type": "map" }, { "map": [ { "key": "key", "type": "template", "value": "u1" }, { "key": "value", "type": "template", "value": "foo" } ], "type": "map" } ], "type": "list" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "4", "type": "flc" }
โดย ordinalType=SESSION
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Counter Per Session", "parameter": [ { "key": "ordinalType", "type": "template", "value": "SESSION" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "sessionId", "type": "template", "value": "session-id" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "type": "list" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "5", "type": "flc" }
Floodlight ยอดขาย
พิมพ์โค้ด
fls
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
countingMethod |
template |
หนึ่งใน TRANSACTIONS , ITEM_SOLD |
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
revenue |
template |
|
orderId |
template |
ระบุว่า countingMethod เป็น ITEM_SOLD หรือไม่ |
customVariable |
map |
รายการแผนที่ แต่ละรายการใช้ [key , value ] คู่เดียว
คีย์รายการการแมปคือ u1 ถึง u20 ประเภทรายการการแมปคือเทมเพลต |
userVariable |
template |
ตัวแปร u= ของแท็ก |
transactionVariable |
template |
ตัวแปร tran= ของแท็ก |
quantity |
template |
ระบุว่า countingMethod เป็น ITEM_SOLD หรือไม่ |
useImageTag |
boolean |
|
unrepeatable |
boolean |
ไม่บังคับ |
ตัวอย่าง
โดย countingMethod=TRANSACTIONS
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Sales", "parameter": [ { "key": "countingMethod", "type": "template", "value": "TRANSACTIONS" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "revenue", "type": "template", "value": "{{revenue}}" }, { "key": "orderId", "type": "template", "value": "oid" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "map": [ { "key": "u1", "type": "template", "value": "jio" } ], "type": "map" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "6", "type": "fls" }
countingMethod=ITEM_SOLD
หมายถึง
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Sales Item Sold", "parameter": [ { "key": "countingMethod", "type": "template", "value": "ITEM_SOLD" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "quantity", "type": "template", "value": "1" }, { "key": "revenue", "type": "template", "value": "{{revenue}}" }, { "key": "orderId", "type": "template", "value": "oid" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "map": [ { "key": "u1", "type": "template", "value": "ji" } ], "type": "map" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "7", "type": "fls" }
การเรียกใช้ฟังก์ชัน
พิมพ์โค้ด
_fc
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
functionName |
template |
|
functionArgument |
map |
รายการแผนที่แต่ละรายการมีคู่ [key , value ] รายการเดียว |
ตัวอย่าง
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Function Call", "parameter": [ { "key": "functionName", "type": "template", "value": "fn" }, { "key": "functionArgument", "map": [ { "key": "argkey1", "type": "template", "value": "argval1" } ], "type": "map" } ], "tagId": "8", "type": "_fc" }
แท็กรูปภาพที่กำหนดเอง
พิมพ์โค้ด
img
พารามิเตอร์
คีย์ | ประเภท | หมายเหตุ |
---|---|---|
useCacheBuster |
boolean |
ไม่อนุญาตให้ใช้มาโคร |
url |
template |
|
cacheBusterQueryParam |
template |
ตัวอย่าง
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Custom Image Tag", "parameter": [ { "key": "useCacheBuster", "type": "boolean", "value": "true" }, { "key": "url", "type": "template", "value": "http://www.example.com" }, { "key": "cacheBusterQueryParam", "type": "template", "value": "gtmcb" } ], "tagId": "14", "type": "img" }