自訂轉換變數
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
自訂轉換變數可讓您將額外資訊 (以代碼形式) 與透過 Google Ads API 匯入的轉換建立關聯,例如點擊或通話轉換。有了這項資訊,您就能建立區隔報表,取得更豐富的轉換資料。
舉例來說,當您匯入新藍色帽子的購買轉換時,也可以匯入兩個相關聯的標記:color
和 status
,值分別為 blue
和 new
。步驟如下:
您可以視需要建立任意數量的自訂轉換變數。每個變數會對應一個代碼。因此,如要使用兩個標記 (color
和 status
),就必須建立兩個自訂變數。ConversionCustomVariable
的必填欄位如下:
name
:用於識別變數。名稱不得重複。
tag
:以我們的範例來說,標記是 color
和 status
。網站將轉換資料傳送至 Google Ads 時,系統會使用事件程式碼片段中的代碼。如果您使用 Google Ads API,匯入轉換時需要指定自訂變數的資源名稱,詳情請見下一個步驟。
匯入轉換 (例如 ClickConversion
) 時,請將 custom_variables
設為您在上一步建立的所有自訂變數清單。您必須設定每個自訂變數的所有欄位:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-13 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-13 (世界標準時間)。"],[[["Custom conversion variables allow associating additional information, like tags, to conversions uploaded via the Google Ads API."],["To use custom variables, first create them, defining a unique name and tag for each desired piece of information."],["When uploading a conversion, include the custom variables, specifying their resource name and the corresponding value for the tag."],["This process lets you add details like 'color' or 'status' to conversions, enabling richer data analysis and reporting."]]],[]]