conversion-tracking
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConversion Tracking
转化跟踪
Part of Agent Skills™ by googleadsagent.ai™
属于 Agent Skills™ 的组成部分,由 googleadsagent.ai™ 提供
Description
描述
The Conversion Tracking skill provides end-to-end management of Google Ads conversion measurement infrastructure. Accurate conversion tracking is the foundation of every optimization decision — without it, bid strategies, budget allocation, and keyword valuations are operating blind. This skill handles setup, validation, debugging, and attribution modeling across the full conversion stack: Google tag, enhanced conversions, offline conversion imports, and conversion value rules.
The skill covers the complete conversion action hierarchy: macro conversions (purchases, leads, sign-ups) that drive bidding, and micro conversions (page views, add-to-cart, video plays) that inform audience building and funnel analysis. It configures conversion windows, view-through settings, and counting methods (one-per-click vs. every) based on business model requirements. Enhanced conversions using first-party data (email, phone, address) are set up to recover measurement gaps caused by cookie deprecation and privacy regulations.
Attribution modeling is a critical component. The skill evaluates and configures data-driven attribution (DDA), compares it against last-click and other models, and helps advertisers understand the true value contribution of upper-funnel campaigns. For businesses with offline sales cycles, it manages the offline conversion import pipeline via CRM integration, ensuring that revenue data flows back to Google Ads for accurate ROAS calculation.
转化跟踪 skill 提供端到端的 Google Ads 转化衡量基础设施管理。准确的转化跟踪是每项优化决策的基础——缺少它,出价策略、预算分配和关键词估值就只能盲目前进。该 skill 覆盖完整转化技术栈的设置、验证、调试和归因建模,包括 Google 标签、增强型转化、离线转化导入和转化价值规则。
该 skill 涵盖完整的转化操作层级:用于驱动出价的宏转化(购买、线索、注册),以及用于受众构建和漏斗分析的微型转化(页面浏览、加购、视频播放)。它会根据业务模式需求配置转化窗口、浏览归因设置和计数方式(每次点击计一次与每次都计)。利用第一方数据(电子邮件、电话、地址)设置增强型转化,以弥补因 Cookie 弃用和隐私法规造成的衡量缺口。
归因建模是关键组成部分。该 skill 评估并配置数据驱动归因(DDA),将其与末次点击和其他模型进行比较,并帮助广告主了解上层漏斗广告活动的真实价值贡献。对于具有离线销售周期的企业,该 skill 通过 CRM 集成管理离线转化导入管道,确保收入数据回传至 Google Ads,以准确计算 ROAS。
Use When
使用时机
- User asks about "conversion tracking setup" or "conversion configuration"
- User mentions "conversions not recording" or "missing conversions"
- User wants to "debug conversion tracking" or "verify tracking"
- User asks about "enhanced conversions" or "first-party data"
- User mentions "offline conversions" or "CRM import"
- User asks about "attribution modeling" or "data-driven attribution"
- User wants to "set up Google tag" or "configure gtag"
- User mentions "conversion value rules" or "conversion actions"
- User asks "why is smart bidding not working" (often tracking related)
- 用户询问“转化跟踪设置”或“转化配置”
- 用户提到“转化未记录”或“转化缺失”
- 用户希望“调试转化跟踪”或“验证跟踪”
- 用户询问“增强型转化”或“第一方数据”
- 用户提到“离线转化”或“CRM 导入”
- 用户询问“归因建模”或“数据驱动归因”
- 用户希望“设置 Google 标签”或“配置 gtag”
- 用户提到“转化价值规则”或“转化操作”
- 用户询问“为什么智能出价不起作用”(通常与跟踪相关)
Architecture
架构
mermaid
flowchart TD
A[Conversion Strategy Definition] --> B[Conversion Action Setup]
B --> C[Primary Conversions\nPurchase, Lead, Sign-up]
B --> D[Secondary Conversions\nAdd-to-Cart, Page View]
C --> E[Google Tag Implementation]
D --> E
E --> F[Base Tag: gtag.js]
E --> G[Event Snippets]
E --> H[Google Tag Manager]
F --> I[Enhanced Conversions]
G --> I
I --> I1[Email Hashing]
I --> I2[Phone Hashing]
I --> I3[Address Matching]
J[CRM / Backend Data] --> K[Offline Conversion Import]
K --> K1[Click ID Matching: GCLID]
K --> K2[Enhanced Conversions for Leads]
K --> K3[Store Sales Import]
I1 --> L[Conversion Validation Engine]
I2 --> L
I3 --> L
K1 --> L
K2 --> L
K3 --> L
L --> M{Validation Status}
M -->|Healthy| N[Attribution Model Configuration]
M -->|Issues Detected| O[Debugging Pipeline]
O --> P[Tag Diagnostics]
O --> Q[Data Discrepancy Analysis]
O --> R[Cross-Platform Reconciliation]
N --> S[Data-Driven Attribution]
N --> T[Conversion Value Rules]
N --> U[Conversion Window Optimization]mermaid
flowchart TD
A[Conversion Strategy Definition] --> B[Conversion Action Setup]
B --> C[Primary Conversions\nPurchase, Lead, Sign-up]
B --> D[Secondary Conversions\nAdd-to-Cart, Page View]
C --> E[Google Tag Implementation]
D --> E
E --> F[Base Tag: gtag.js]
E --> G[Event Snippets]
E --> H[Google Tag Manager]
F --> I[Enhanced Conversions]
G --> I
I --> I1[Email Hashing]
I --> I2[Phone Hashing]
I --> I3[Address Matching]
J[CRM / Backend Data] --> K[Offline Conversion Import]
K --> K1[Click ID Matching: GCLID]
K --> K2[Enhanced Conversions for Leads]
K --> K3[Store Sales Import]
I1 --> L[Conversion Validation Engine]
I2 --> L
I3 --> L
K1 --> L
K2 --> L
K3 --> L
L --> M{Validation Status}
M -->|Healthy| N[Attribution Model Configuration]
M -->|Issues Detected| O[Debugging Pipeline]
O --> P[Tag Diagnostics]
O --> Q[Data Discrepancy Analysis]
O --> R[Cross-Platform Reconciliation]
N --> S[Data-Driven Attribution]
N --> T[Conversion Value Rules]
N --> U[Conversion Window Optimization]Implementation
实现
Conversion tracking validation and debugging framework:
javascript
async function validateConversionTracking(customerId) {
const conversionActions = await getConversionActions(customerId);
const tagDiagnostics = await runTagDiagnostics(customerId);
const recentConversions = await getRecentConversions(customerId, 7);
const issues = [];
for (const action of conversionActions) {
if (action.status !== 'ENABLED') continue;
const validation = {
actionName: action.name,
category: action.category,
tagInstalled: tagDiagnostics[action.id]?.installed ?? false,
firingCorrectly: tagDiagnostics[action.id]?.recentFires > 0,
conversionCount7d: recentConversions[action.id]?.count ?? 0,
conversionLag: calculateConversionLag(recentConversions[action.id]),
duplicateRate: detectDuplicates(recentConversions[action.id]),
valueAccuracy: validateConversionValues(recentConversions[action.id])
};
if (!validation.tagInstalled) {
issues.push({ action: action.name, severity: 'critical', issue: 'Tag not detected on website' });
}
if (!validation.firingCorrectly) {
issues.push({ action: action.name, severity: 'critical', issue: 'Tag installed but not firing' });
}
if (validation.duplicateRate > 0.05) {
issues.push({ action: action.name, severity: 'high', issue: `${(validation.duplicateRate * 100).toFixed(1)}% duplicate conversion rate detected` });
}
}
return { conversionActions, issues, overallHealth: issues.length === 0 ? 'healthy' : 'needs_attention' };
}Enhanced conversions setup:
javascript
function generateEnhancedConversionTag(config) {
const { conversionId, conversionLabel, dataSource } = config;
return `
<!-- Google tag (gtag.js) - Enhanced Conversions -->
<script async src="https://www.googletagmanager.com/gtag/js?id=${conversionId}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${conversionId}');
gtag('set', 'user_data', {
'email': hashUserEmail(),
'phone_number': hashUserPhone(),
'address': {
'first_name': document.getElementById('first_name')?.value,
'last_name': document.getElementById('last_name')?.value,
'street': document.getElementById('street')?.value,
'city': document.getElementById('city')?.value,
'region': document.getElementById('region')?.value,
'postal_code': document.getElementById('postal_code')?.value,
'country': document.getElementById('country')?.value
}
});
gtag('event', 'conversion', {
'send_to': '${conversionId}/${conversionLabel}',
'value': getTransactionValue(),
'currency': 'USD',
'transaction_id': getOrderId()
});
</script>`;
}
async function setupOfflineConversionImport(customerId, crmConfig) {
const { crmType, conversionActionName, uploadFrequency } = crmConfig;
const pipeline = {
source: crmType,
gclidCapture: {
method: 'hidden_form_field',
fieldName: 'gclid',
storageMethod: 'crm_custom_field',
expirationDays: 90
},
conversionMapping: {
crmStage: crmConfig.qualifiedStage,
googleAdsAction: conversionActionName,
valueField: crmConfig.dealValueField
},
uploadSchedule: {
frequency: uploadFrequency,
lookbackWindow: '30_days',
deduplication: 'gclid_plus_timestamp'
}
};
return pipeline;
}Attribution model configuration:
javascript
function configureAttribution(customerId, config) {
const { preferredModel = 'DATA_DRIVEN' } = config;
return {
model: preferredModel,
requirements: {
dataDriven: {
minConversions30d: 300,
minClicks30d: 3000,
eligible: config.conversions30d >= 300 && config.clicks30d >= 3000
}
},
conversionValueRules: [
{ condition: 'audience_is_returning_customer', valueMultiplier: 1.5 },
{ condition: 'device_is_mobile', valueMultiplier: 0.8 },
{ condition: 'geo_is_tier1_market', valueMultiplier: 1.2 }
],
conversionWindows: {
clickThrough: config.salesCycleDays || 30,
viewThrough: Math.min(config.salesCycleDays || 30, 30),
engagedView: 3
}
};
}转化跟踪验证与调试框架:
javascript
async function validateConversionTracking(customerId) {
const conversionActions = await getConversionActions(customerId);
const tagDiagnostics = await runTagDiagnostics(customerId);
const recentConversions = await getRecentConversions(customerId, 7);
const issues = [];
for (const action of conversionActions) {
if (action.status !== 'ENABLED') continue;
const validation = {
actionName: action.name,
category: action.category,
tagInstalled: tagDiagnostics[action.id]?.installed ?? false,
firingCorrectly: tagDiagnostics[action.id]?.recentFires > 0,
conversionCount7d: recentConversions[action.id]?.count ?? 0,
conversionLag: calculateConversionLag(recentConversions[action.id]),
duplicateRate: detectDuplicates(recentConversions[action.id]),
valueAccuracy: validateConversionValues(recentConversions[action.id])
};
if (!validation.tagInstalled) {
issues.push({ action: action.name, severity: 'critical', issue: 'Tag not detected on website' });
}
if (!validation.firingCorrectly) {
issues.push({ action: action.name, severity: 'critical', issue: 'Tag installed but not firing' });
}
if (validation.duplicateRate > 0.05) {
issues.push({ action: action.name, severity: 'high', issue: `${(validation.duplicateRate * 100).toFixed(1)}% duplicate conversion rate detected` });
}
}
return { conversionActions, issues, overallHealth: issues.length === 0 ? 'healthy' : 'needs_attention' };
}增强型转化设置:
javascript
function generateEnhancedConversionTag(config) {
const { conversionId, conversionLabel, dataSource } = config;
return `
<!-- Google tag (gtag.js) - Enhanced Conversions -->
<script async src="https://www.googletagmanager.com/gtag/js?id=${conversionId}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${conversionId}');
gtag('set', 'user_data', {
'email': hashUserEmail(),
'phone_number': hashUserPhone(),
'address': {
'first_name': document.getElementById('first_name')?.value,
'last_name': document.getElementById('last_name')?.value,
'street': document.getElementById('street')?.value,
'city': document.getElementById('city')?.value,
'region': document.getElementById('region')?.value,
'postal_code': document.getElementById('postal_code')?.value,
'country': document.getElementById('country')?.value
}
});
gtag('event', 'conversion', {
'send_to': '${conversionId}/${conversionLabel}',
'value': getTransactionValue(),
'currency': 'USD',
'transaction_id': getOrderId()
});
</script>`;
}
async function setupOfflineConversionImport(customerId, crmConfig) {
const { crmType, conversionActionName, uploadFrequency } = crmConfig;
const pipeline = {
source: crmType,
gclidCapture: {
method: 'hidden_form_field',
fieldName: 'gclid',
storageMethod: 'crm_custom_field',
expirationDays: 90
},
conversionMapping: {
crmStage: crmConfig.qualifiedStage,
googleAdsAction: conversionActionName,
valueField: crmConfig.dealValueField
},
uploadSchedule: {
frequency: uploadFrequency,
lookbackWindow: '30_days',
deduplication: 'gclid_plus_timestamp'
}
};
return pipeline;
}归因模型配置:
javascript
function configureAttribution(customerId, config) {
const { preferredModel = 'DATA_DRIVEN' } = config;
return {
model: preferredModel,
requirements: {
dataDriven: {
minConversions30d: 300,
minClicks30d: 3000,
eligible: config.conversions30d >= 300 && config.clicks30d >= 3000
}
},
conversionValueRules: [
{ condition: 'audience_is_returning_customer', valueMultiplier: 1.5 },
{ condition: 'device_is_mobile', valueMultiplier: 0.8 },
{ condition: 'geo_is_tier1_market', valueMultiplier: 1.2 }
],
conversionWindows: {
clickThrough: config.salesCycleDays || 30,
viewThrough: Math.min(config.salesCycleDays || 30, 30),
engagedView: 3
}
};
}Integration with Buddy™ Agent
与 Buddy™ Agent 的集成
Conversion Tracking is the measurement foundation of the entire Buddy™ Agent platform. Before any optimization skill activates, Buddy™ runs the conversion validation pipeline to ensure data integrity. If tracking issues are detected, Buddy™ alerts the user and pauses optimization recommendations until the measurement foundation is sound.
Buddy™ continuously monitors conversion data for anomalies: sudden drops in conversion volume, unexpected changes in conversion rate, value discrepancies between Google Ads and backend systems, and tag firing failures. These anomalies trigger automated diagnostic workflows that identify root causes and suggest fixes.
For accounts with offline conversions, Buddy™ manages the automated import pipeline, ensuring CRM data flows back to Google Ads on schedule with proper GCLID matching. The platform tracks import success rates, identifies matching failures, and reconciles conversion data across platforms.
转化跟踪是整个 Buddy™ Agent 平台的衡量基础。在任何优化 skill 激活之前,Buddy™ 都会运行转化验证管道,以确保数据完整性。如果检测到跟踪问题,Buddy™ 会提醒用户,并暂停输出优化建议,直到衡量基础稳固。
Buddy™ 持续监控转化数据中的异常:转化量突然下降、转化率出现意外变化、Google Ads 与后端系统之间的数值差异,以及标签触发失败。这些异常会触发自动化诊断工作流,以识别根本原因并建议修复方案。
对于包含离线转化的账户,Buddy™ 管理自动化导入管道,确保 CRM 数据按计划回传至 Google Ads,并正确进行 GCLID 匹配。该平台跟踪导入成功率、识别匹配失败,并对跨平台转化数据进行核对。
Best Practices
最佳实践
- Validate conversion tracking monthly by comparing Google Ads data against backend/CRM records
- Use enhanced conversions to recover 5-15% of conversions lost to cookie restrictions
- Set conversion counting to "one" for lead-gen and "every" for e-commerce
- Configure conversion windows to match your actual sales cycle length
- Use conversion value rules to differentiate high-value segments without changing tag code
- Import offline conversions within 24 hours of the qualifying event when possible
- Use data-driven attribution when eligible (300+ conversions/month) for most accurate credit assignment
- Create a clear hierarchy: primary conversions for bidding, secondary for observation only
- Deduplicate conversions using unique transaction IDs to prevent inflated reporting
- Monitor the Google Ads tag diagnostics page weekly for tag health status
- 每月将 Google Ads 数据与后端/CRM 记录进行对比,以验证转化跟踪
- 使用增强型转化挽回因 Cookie 限制而损失的 5-15% 转化
- 将线索生成业务的转化计数设置为“one”,将电子商务业务设置为“every”
- 配置转化窗口以匹配实际销售周期长度
- 使用转化价值规则区分高价值细分受众,无需更改标签代码
- 尽可能在符合条件的转化发生后 24 小时内导入离线转化
- 符合条件时使用数据驱动归因(每月 300+ 次转化),以实现最准确的转化贡献分配
- 建立清晰的层级:主要转化用于出价,次要转化仅用于观察
- 使用唯一交易 ID 对转化进行去重,防止报告数据虚增
- 每周监控 Google Ads 标签诊断页面,查看标签健康状态
Platform Compatibility
平台兼容性
| Platform | Supported |
|---|---|
| Claude Code | ✅ |
| Cursor | ✅ |
| Codex | ✅ |
| Gemini | ✅ |
| 平台 | 支持 |
|---|---|
| Claude Code | ✅ |
| Cursor | ✅ |
| Codex | ✅ |
| Gemini | ✅ |
Related Skills
相关 Skill
- Google Ads Audit - Conversion tracking validation is a foundational audit category
- Budget Optimization - Accurate conversion data is essential for reliable budget allocation
- Remarketing Strategy - Conversion events define post-conversion audience segments
- Knowledge Base Injection - Domain patterns power automated conversion tracking diagnostics
- Google Ads Audit - 转化跟踪验证是基础审计类别
- Budget Optimization - 准确的转化数据是可靠预算分配的必要条件
- Remarketing Strategy - 转化事件定义转化后的受众细分
- Knowledge Base Injection - 领域模式为自动化转化跟踪诊断提供支持
Keywords
关键词
conversion tracking, google tag, gtag, enhanced conversions, offline conversions, GCLID, conversion import, attribution modeling, data-driven attribution, conversion value rules, conversion actions, conversion debugging, conversion setup, google ads conversions, conversion validation
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License
转化跟踪, Google 标签, gtag, 增强型转化, 离线转化, GCLID, 转化导入, 归因建模, 数据驱动归因, 转化价值规则, 转化操作, 转化调试, 转化设置, Google Ads 转化, 转化验证
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License