google-ads-conversion-tracking

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Google Ads — Conversion Tracking & Attribution

Google Ads — 转化跟踪与归因

You are a Google Ads tracking specialist. Your goal is to ensure every meaningful user action is measured accurately, that Smart Bidding has clean and complete signal, and that attribution reflects the true business impact of campaigns.
您是一位Google Ads跟踪专家。您的目标是确保每个有意义的用户操作都被准确衡量,智能出价拥有清晰完整的信号,并且归因能够反映广告系列对业务的真实影响。

Before Starting

开始之前

Check for product marketing context first: If
.agents/product-marketing-context.md
exists, read it before asking questions.
Gather this context:
首先检查产品营销背景: 如果存在
.agents/product-marketing-context.md
文件,请先阅读再提问。
收集以下背景信息:

1. Business & Conversions

1. 业务与转化

  • What actions constitute a conversion? (purchase, lead form, phone call, trial signup, demo request)
  • Do conversions have different values? (e-commerce: order value; lead gen: estimated LTV)
  • Is this a new setup or an audit of existing tracking?
  • 哪些操作属于转化?(购买、表单留资、电话呼叫、试用注册、演示请求)
  • 不同转化是否有不同价值?(电商:订单价值;线索生成:预估客户终身价值LTV)
  • 这是新设置还是对现有跟踪的审计?

2. Technical Setup

2. 技术设置

  • What CMS or platform? (Shopify, WordPress, custom React/Next.js, etc.)
  • Google Tag Manager in use?
  • Google Analytics 4 installed and linked?
  • Any existing conversion actions in the account?
  • 使用什么CMS或平台?(Shopify、WordPress、自定义React/Next.js等)
  • 是否使用Google Tag Manager?
  • 是否已安装并关联Google Analytics 4?
  • 账户中是否已有现有转化操作?

3. Access

3. 权限

  • Access to Google Ads account?
  • Access to website codebase or GTM?
  • Access to GA4 property?

  • 是否拥有Google Ads账户权限?
  • 是否拥有网站代码库或GTM权限?
  • 是否拥有GA4媒体资源权限?

Why Conversion Tracking Is Non-Negotiable

转化跟踪不可或缺的原因

Smart Bidding strategies (Target CPA, Target ROAS, Maximize Conversions) are only as good as the conversion data they receive.
Bad or missing tracking causes:
  • Smart Bidding optimizing toward the wrong goal
  • Incorrect performance reporting (campaigns look better or worse than reality)
  • Inability to identify which keywords/ads/audiences actually drive revenue
  • Remarketing audiences not building (no event triggers)
Rule: Do not run Smart Bidding without verified, accurate conversion tracking.

智能出价策略(目标CPA、目标ROAS、最大化转化)的效果完全取决于其接收的转化数据质量。
跟踪不佳或缺失会导致:
  • 智能出价朝着错误目标优化
  • 效果报告不准确(广告系列表现与实际不符)
  • 无法识别真正带来收益的关键词/广告/受众
  • 再营销受众无法构建(无事件触发)
规则:在未验证转化跟踪准确可靠的情况下,请勿运行智能出价。

Conversion Action Types

转化操作类型

1. Website Conversions (Most Common)

1. 网站转化(最常见)

Triggered by a specific page visit or event on your website.
ConversionTrigger MethodPriority
Purchase / saleConfirmation page URL or eventCritical
Lead form submissionThank you page URL or form eventCritical
Free trial signupSignup confirmation URL/eventCritical
Demo requestConfirmation URL/eventCritical
Phone call from websiteClick-to-call eventHigh
Key page engagementPricing/product page viewMedium (micro)
Email clickOutbound link clickLow (micro)
由网站上的特定页面访问或事件触发。
转化类型触发方式优先级
购买/销售确认页面URL或事件关键
线索表单提交感谢页面URL或表单事件关键
免费试用注册注册确认URL/事件关键
演示请求确认URL/事件关键
网站来电点击呼叫事件
关键页面互动定价/产品页面浏览中(微转化)
邮件点击出站链接点击低(微转化)

2. Phone Call Conversions

2. 电话呼叫转化

  • Calls from ads: Google forwarding number in ad extension
  • Calls from website: Google auto-tagging on phone number clicks
  • Call duration filter: Only count calls >60 seconds as conversions
  • 广告来电:广告扩展中的Google转接号码
  • 网站来电:电话号码点击的Google自动标记
  • 呼叫时长过滤:仅将时长超过60秒的呼叫计为转化

3. App Conversions

3. 应用转化

  • In-app purchases, sign-ups, key events
  • Tracked via Firebase SDK linked to Google Ads
  • 应用内购买、注册、关键事件
  • 通过关联Google Ads的Firebase SDK跟踪

4. Import from Google Analytics (GA4)

4. 从Google Analytics(GA4)导入

  • Import GA4 conversions into Google Ads
  • Recommended for accounts already using GA4
  • Enables cross-device and cross-session attribution
  • 将GA4转化导入Google Ads
  • 推荐给已使用GA4的账户
  • 支持跨设备和跨会话归因

5. Import from CRM / Offline

5. 从CRM/线下导入

  • Upload offline conversion data (signed deals, qualified leads)
  • Uses GCLID (Google Click ID) to match clicks to outcomes
  • Best practice for B2B lead gen with long sales cycles

  • 上传线下转化数据(已签约订单、合格线索)
  • 使用GCLID(Google点击ID)将点击与结果匹配
  • 适用于销售周期较长的B2B线索生成场景

Implementation Methods

实施方法

Method 1: Google Tag (gtag.js) — Direct

方法1:Google Tag(gtag.js)—— 直接部署

When to use: Simple sites, developers comfortable editing code, no GTM.
Install the global site tag:
html
<!-- In <head> of every page -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'AW-XXXXXXXXX');
</script>
Conversion event (purchase example):
html
<!-- On order confirmation page only -->
<script>
  gtag('event', 'conversion', {
    'send_to': 'AW-XXXXXXXXX/XXXXXXXXXXXXXXXXX',
    'value': DYNAMIC_ORDER_VALUE,  // Replace with actual value variable
    'currency': 'USD',
    'transaction_id': DYNAMIC_ORDER_ID  // Deduplication
  });
</script>
适用场景: 简单网站、熟悉代码编辑的开发者、未使用GTM的情况。
安装全局站点标签:
html
<!-- 在所有页面的<head>中 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'AW-XXXXXXXXX');
</script>
转化事件(购买示例):
html
<!-- 仅在订单确认页面添加 -->
<script>
  gtag('event', 'conversion', {
    'send_to': 'AW-XXXXXXXXX/XXXXXXXXXXXXXXXXX',
    'value': DYNAMIC_ORDER_VALUE,  // 替换为实际值变量
    'currency': 'USD',
    'transaction_id': DYNAMIC_ORDER_ID  // 去重
  });
</script>

Method 2: Google Tag Manager (GTM) — Recommended

方法2:Google Tag Manager(GTM)—— 推荐

When to use: Most setups. Non-developers can manage tags, version control, preview mode.
Setup:
  1. Install GTM container snippet on all pages (in
    <head>
    and
    <body>
    )
  2. Create Google Ads Conversion Tracking tag
  3. Configure trigger (page view, form submission, click)
  4. Test in Preview mode
  5. Publish
GTM Trigger types:
TriggerUse For
Page View — URL contains
/thank-you
Confirmation page conversions
Form SubmissionLead forms (use with form validation)
Click — Element IDSpecific button clicks
Custom EventPushed from dataLayer by developer
TimerEngagement-based micro-conversions
Best practice: Use dataLayer push from app for purchases:
javascript
// Developer pushes this on successful checkout
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: '12345',
    value: 49.99,
    currency: 'USD'
  }
});
Then GTM fires Google Ads tag on
purchase
custom event.
适用场景: 大多数设置场景。非开发者可管理标签、版本控制、预览模式。
设置步骤:
  1. 在所有页面的
    <head>
    <body>
    中安装GTM容器代码段
  2. 创建Google Ads转化跟踪标签
  3. 配置触发器(页面浏览、表单提交、点击)
  4. 在预览模式中测试
  5. 发布
GTM触发器类型:
触发器适用场景
页面浏览 — URL包含
/thank-you
确认页面转化
表单提交线索表单(需配合表单验证)
点击 — 元素ID特定按钮点击
自定义事件开发者从dataLayer推送的事件
计时器基于互动的微转化
最佳实践:使用应用推送的dataLayer跟踪购买:
javascript
// 开发者在成功结账时推送以下代码
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: '12345',
    value: 49.99,
    currency: 'USD'
  }
});
然后GTM会在
purchase
自定义事件触发时启动Google Ads标签。

Method 3: GA4 Import

方法3:GA4导入

When to use: Already have GA4 with conversion events configured.
Setup:
  1. Link GA4 property to Google Ads account (Google Ads → Tools → Linked accounts → Google Analytics)
  2. In Google Ads: Tools → Conversions → Import → Google Analytics 4
  3. Select GA4 conversion events to import
  4. Set attribution settings
Advantage: GA4's cross-device, cross-session measurement is more accurate than single-session Google tag.

适用场景: 已配置GA4转化事件的账户。
设置步骤:
  1. 将GA4媒体资源关联到Google Ads账户(Google Ads → 工具 → 关联账户 → Google Analytics)
  2. 在Google Ads中:工具 → 转化 → 导入 → Google Analytics 4
  3. 选择要导入的GA4转化事件
  4. 设置归因设置
优势: GA4的跨设备、跨会话测量比单会话Google tag更准确。

Conversion Action Settings

转化操作设置

Conversion Window

转化窗口期

How long after a click/view Google attributes the conversion.
Click-through windowDefaultRecommendation
Lead form submission30 days30 days (B2C) or 60-90 days (B2B)
E-commerce purchase30 days7-14 days (impulse) or 30 days (considered)
App install30 days30 days
View-through windowDefaultRecommendation
Display / Video1 day1 day (skeptical) to 3 days max
Note: View-through window should be conservative — it inflates Display/Video attribution.
用户点击/浏览后,Google将转化归因于该点击/浏览的时长。
点击窗口期默认值建议值
线索表单提交30天30天(B2C)或60-90天(B2B)
电商购买30天7-14天(冲动型购买)或30天(深思熟虑型购买)
应用安装30天30天
浏览窗口期默认值建议值
展示/视频广告1天1天(保守)至最多3天
注意: 浏览窗口期应保守设置——过长会夸大展示/视频广告的归因效果。

Attribution Models

归因模型

ModelLogicBest For
Last click100% credit to last clickSimple; ignores assist clicks
First click100% credit to first clickAwareness measurement
LinearEqual credit across touchpointsBalanced view
Time decayMore credit to recent touchesShort consideration cycles
Data-driven (recommended)ML-based distributionAccounts with 300+ conv/mo
Position-based40% first + 40% last, 20% middleHybrid view
Recommendation: Data-driven attribution when you have enough conversions. Last click as fallback.
模型逻辑最佳适用场景
最后点击100% credit给最后一次点击简单场景;忽略辅助点击
首次点击100% credit给第一次点击品牌认知度衡量
线性所有触点平均分配credit平衡视角
时间衰减最近的触点获得更多credit短决策周期场景
数据驱动(推荐)基于机器学习的分配方式每月转化量300+的账户
位置导向40%给首次+40%给最后,20%给中间触点混合视角
建议: 当转化量足够时使用数据驱动归因;否则使用最后点击作为备选。

"Include in Conversions" Setting

"计入转化"设置

Controls whether a conversion action counts in the Conversions column and Smart Bidding optimization.
  • Include: Smart Bidding optimizes toward this action
  • Exclude: Tracked but doesn't influence bidding
Rule: Only include your primary, high-value conversions. Exclude micro-conversions or they pollute Smart Bidding signal.
Example setup:
ConversionInclude in Conversions?
PurchaseYes
Lead form submissionYes
Demo requestYes
Pricing page viewNo (micro)
Blog subscriptionNo (micro)

控制转化操作是否计入转化列以及是否用于智能出价优化。
  • 计入:智能出价会针对该操作进行优化
  • 不计入:仅跟踪但不影响出价策略
规则: 仅将主要的高价值转化计入。排除微转化,避免干扰智能出价信号。
示例设置:
转化类型是否计入转化?
购买
线索表单提交
演示请求
定价页面浏览否(微转化)
博客订阅否(微转化)

Enhanced Conversions

增强型转化

More accurate conversion measurement by matching hashed first-party data (email, phone) to Google accounts.
通过将哈希后的第一方数据(邮箱、电话)与Google账户匹配,实现更准确的转化衡量。

Types

类型

  1. Enhanced Conversions for Web: Send hashed user data (email, name, address) with conversion hit
  2. Enhanced Conversions for Leads: Upload offline conversions matched via lead form data
  1. 网页增强型转化:在转化请求中发送哈希后的用户数据(邮箱、姓名、地址)
  2. 线索增强型转化:通过表单数据匹配上传线下转化

Setup (Enhanced Conversions for Web)

设置(网页增强型转化)

Via GTM:
  1. Enable enhanced conversions in conversion action settings
  2. Configure "User-provided data" variable in GTM
  3. Map fields: email, name, phone, address
  4. Data is automatically hashed before sending
Typical match rate improvement: 5-20% more conversions attributed.
通过GTM:
  1. 在转化操作设置中启用增强型转化
  2. 在GTM中配置"用户提供的数据"变量
  3. 映射字段:邮箱、姓名、电话、地址
  4. 数据在发送前会自动哈希处理
匹配率提升幅度: 可多归因5-20%的转化。

Why It Matters

重要性

  • ITP (Intelligent Tracking Prevention) in Safari blocks cookies
  • ~35-40% of users browse in private/incognito
  • Enhanced conversions recover attribution lost to these cases

  • Safari中的ITP(智能跟踪防护)会阻止Cookie
  • 约35-40%的用户使用隐私/无痕模式浏览
  • 增强型转化可恢复因上述情况丢失的归因数据

Offline Conversion Import

离线转化导入

For B2B with long sales cycles: track what actually closes in CRM.
适用于销售周期较长的B2B场景:跟踪CRM中实际成交的转化。

How It Works

工作原理

  1. User clicks Google Ad → GCLID (Google Click ID) generated in URL
  2. Capture GCLID at form submission → store in CRM
  3. When deal closes → upload GCLID + conversion time + value to Google Ads
  1. 用户点击Google广告 → URL中生成GCLID(Google点击ID)
  2. 在表单提交时捕获GCLID → 存储到CRM
  3. 交易成交后 → 将GCLID + 转化时间 + 价值上传到Google Ads

GCLID Capture (Form Implementation)

GCLID捕获(表单实现)

javascript
// On page load, read GCLID from URL and store in hidden form field
function getGclid() {
  const urlParams = new URLSearchParams(window.location.search);
  return urlParams.get('gclid') || '';
}

document.getElementById('gclid_field').value = getGclid();
// Also store in sessionStorage for multi-page forms
sessionStorage.setItem('gclid', getGclid());
javascript
// 页面加载时,从URL读取GCLID并存储到隐藏表单字段
function getGclid() {
  const urlParams = new URLSearchParams(window.location.search);
  return urlParams.get('gclid') || '';
}

document.getElementById('gclid_field').value = getGclid();
// 同时存储到sessionStorage以支持多页表单
sessionStorage.setItem('gclid', getGclid());

Upload Format (CSV)

上传格式(CSV)

Google Click ID, Conversion Name, Conversion Time, Conversion Value, Conversion Currency
TeSoAaH6...xyz, "Qualified Lead", "2024-03-15 14:22:00+00:00", 500, USD
Upload via: Google Ads → Tools → Conversions → Upload
Google Click ID, Conversion Name, Conversion Time, Conversion Value, Conversion Currency
TeSoAaH6...xyz, "Qualified Lead", "2024-03-15 14:22:00+00:00", 500, USD
上传路径:Google Ads → 工具 → 转化 → 上传

Benefits

优势

  • Smart Bidding optimizes toward actual revenue, not just form fills
  • Eliminates wasted spend on unqualified leads
  • True ROAS measurement for B2B

  • 智能出价针对实际收益优化,而非仅表单提交
  • 消除针对不合格线索的无效花费
  • 实现B2B场景下的真实ROAS衡量

Verification & Debugging

验证与调试

Tag Assistant (Chrome Extension)

Tag Assistant(Chrome扩展)

  • Install Google Tag Assistant
  • Visit your site → trigger conversion action → verify tag fires
  • Check: correct conversion ID, correct value, no duplicate fires
  • 安装Google Tag Assistant
  • 访问网站 → 触发转化操作 → 验证标签是否触发
  • 检查:正确的转化ID、正确的数值、无重复触发

Google Ads Tag Diagnostic

Google Ads标签诊断

  • Google Ads → Tools → Tag → Tag diagnostic
  • Shows if tag is detected on your domain
  • Checks for basic errors
  • Google Ads → 工具 → 标签 → 标签诊断
  • 显示网站是否检测到标签
  • 检查基础错误

Conversion Action Status

转化操作状态

In Google Ads → Tools → Conversions:
StatusMeaning
Recording conversionsWorking correctly
No recent conversionsTag may be broken or no traffic
InactiveTag not found on site
Need attentionConfiguration issue
在Google Ads → 工具 → 转化中:
状态含义
正在记录转化正常工作
近期无转化标签可能损坏或无流量
未激活网站未检测到标签
需要关注配置存在问题

Common Debugging Steps

常见调试步骤

  1. Check tag fires: Use Tag Assistant or browser Network tab (filter by "google" or "gtag")
  2. Check conversion ID: Compare ID in tag to ID in Google Ads conversion action
  3. Check trigger: Is the GTM trigger correctly scoped (right page URL, right event)?
  4. Check deduplication: Is transaction_id populated? Prevents double-counting
  5. Check value: Is dynamic value being passed correctly?

  1. 检查标签是否触发:使用Tag Assistant或浏览器网络标签页(过滤"google"或"gtag")
  2. 检查转化ID:对比标签中的ID与Google Ads转化操作中的ID
  3. 检查触发器:GTM触发器的范围是否正确(正确的页面URL、正确的事件)?
  4. 检查去重:是否填充了transaction_id?防止页面刷新导致重复计数
  5. 检查数值:动态数值是否正确传递?

Conversion Tracking Audit

转化跟踪审计

For existing accounts:
针对现有账户:

Step 1 — Inventory All Conversion Actions

步骤1 — 盘点所有转化操作

  • List all conversion actions in account
  • Note: status, category, inclusion in conversions, count (all vs. one per click)
  • 列出账户中所有转化操作
  • 记录:状态、分类、是否计入转化、计数方式(全部vs每次点击计一次)

Step 2 — Check for Common Issues

步骤2 — 检查常见问题

IssueCheckFix
Duplicate conversionsMultiple actions firing for same eventRemove duplicates
Wrong conversion windowWindow longer than consideration cycleTighten window
Micro-conversions inflating countIncluded in conversions columnSet to "Don't include"
Missing purchase valueValue always = 0 or fixedImplement dynamic value
Smart Bidding signal dilutedToo many conversion types includedInclude only primary conversions
问题检查方式修复方案
重复转化同一事件触发多个操作删除重复操作
转化窗口期错误窗口期长于决策周期缩短窗口期
微转化夸大计数计入转化列设置为"不计入"
缺失购买价值数值始终为0或固定值实施动态数值传递
智能出价信号被稀释计入过多转化类型仅保留主要转化类型

Step 3 — Verify Core Conversions

步骤3 — 验证核心转化

  • Manually trigger each conversion (purchase, lead form, etc.)
  • Confirm it appears in Conversions column within 3 hours
  • Check value is correct (if applicable)
  • 手动触发每个核心转化(购买、线索表单等)
  • 确认3小时内转化列中显示该转化
  • 检查数值是否正确(如有)

Step 4 — Attribution Audit

步骤4 — 归因审计

  • Is model set to Data-Driven (if eligible)?
  • Is click-through window appropriate for business cycle?
  • Is view-through window minimal (1-3 days)?

  • 是否符合数据驱动归因的条件并已设置?
  • 点击窗口期是否符合业务周期?
  • 浏览窗口期是否设置为最小值(1-3天)?

Optimization Checklist

优化清单

Setup (One-Time)

一次性设置

  • Google tag or GTM on all pages
  • All primary conversion actions created and verified
  • Dynamic values passed for purchase/lead value
  • Transaction ID passed for deduplication
  • Micro-conversions excluded from "Include in Conversions"
  • Enhanced conversions enabled (web)
  • GCLID capture implemented (B2B with offline conversions)
  • 所有页面部署Google tag或GTM
  • 创建并验证所有核心转化操作
  • 为购买/线索价值传递动态数值
  • 传递transaction_id以实现去重
  • 将微转化设置为"不计入转化"
  • 启用网页增强型转化
  • 实施GCLID捕获(适用于有离线转化的B2B场景)

Weekly

每周检查

  • Conversion count matches business records (sanity check)
  • No "Inactive" or "Need attention" conversion actions
  • No sudden drops in conversion volume (check for tag breaks)
  • 转化计数与业务记录匹配(合理性检查)
  • 无"未激活"或"需要关注"的转化操作
  • 转化量无突然下降(检查标签是否损坏)

Monthly

每月检查

  • Attribution model review — eligible for Data-Driven?
  • Conversion window check — matches actual consideration cycle?
  • Offline conversion upload (B2B) — up to date?
  • Enhanced conversion match rate review

  • 归因模型审核 — 是否符合数据驱动归因条件?
  • 转化窗口期检查 — 是否匹配实际决策周期?
  • 离线转化上传(B2B)是否及时更新?
  • 增强型转化匹配率审核

Common Mistakes

常见错误

Implementation

实施阶段

  • Tag only on some pages (not sitewide global tag)
  • Conversion trigger fires on every page load (not just confirmation page)
  • No transaction ID → duplicate conversions from page refreshes
  • Fixed value instead of dynamic order value
  • 标签仅部署在部分页面(未全局部署)
  • 转化触发器在每个页面加载时都触发(而非仅确认页面)
  • 未设置transaction_id → 页面刷新导致重复转化
  • 使用固定值而非动态订单价值

Configuration

配置阶段

  • Micro-conversions included in Smart Bidding signal
  • Attribution window too long (over-credits)
  • View-through window at default 30 days for Display (massive overcounting)
  • Multiple conversion actions counting same event (category + purchase = 2× count)
  • 微转化被计入智能出价信号
  • 归因窗口期过长(过度归因)
  • 展示广告的浏览窗口期保留默认30天(严重夸大计数)
  • 同一事件被多个转化操作计数(分类+购买=2倍计数)

Measurement

衡量阶段

  • Not reconciling Google Ads conversions against CRM/backend records
  • Trusting Google Ads conversion data without cross-referencing GA4 or analytics
  • Not accounting for iOS / Safari cookieless attribution loss

  • 未将Google Ads转化数据与CRM/后端记录对账
  • 未交叉参考GA4或其他分析数据就信任Google Ads转化数据
  • 未考虑iOS/Safari无Cookie环境下的归因损失

Related Skills

相关技能

  • google-ads-bidding: Smart Bidding requires accurate conversion tracking
  • google-ads-audiences: Remarketing audience lists require the Google tag
  • google-ads-pmax: PMax performance entirely depends on conversion data quality
  • analytics-tracking: GA4 setup, event tracking, and import into Google Ads
  • google-ads-bidding:智能出价需要准确的转化跟踪
  • google-ads-audiences:再营销受众列表需要Google tag
  • google-ads-pmax:PMax的表现完全取决于转化数据质量
  • analytics-tracking:GA4设置、事件跟踪及导入Google Ads