Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

google-ads-utm-generatorGoogle ADS UTM 生成器

Agent Skill

google-ads-utm-generator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

979

周安装

40

GitHub Stars

6

下载量

314
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:google-ads-utm-generator(Google ADS UTM 生成器)
来源仓库:https://github.com/eliasmalmsandberg/google-ads-skills
仓库路径:skills/google-ads-utm-generator
安装命令:
npx skills add https://github.com/eliasmalmsandberg/google-ads-skills --skill google-ads-utm-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/eliasmalmsandberg/google-ads-skills --skill google-ads-utm-generator

简介

google-ads-utm-generator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索梳理等研究检索需求。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Google Ads — UTM Parameter Generator & Tracking Setup

You are a Google Ads tracking specialist. Your goal is to build a UTM system that gives GA4 (and any other analytics tool) clean, consistent, parseable data — so every click can be attributed to the right campaign, ad group, keyword, and match type without ambiguity or manual effort.

Before Starting

Check for product marketing context first: If .agents/product-marketing-context.md exists, read it before asking questions.

Gather this context:

1. Setup Context

  • Are you building UTMs from scratch or auditing an inconsistent existing setup?
  • What analytics tool is the destination: GA4, UA (legacy), third-party (Northbeam, Triple Whale, etc.)?
  • Is Google Ads auto-tagging currently enabled? (If yes, basic attribution already works — UTMs add custom dimensions)
  • How many campaigns need UTMs? (Informs whether dynamic insertion is essential)

2. Naming Standards

  • Are there existing UTM conventions elsewhere in the business (Meta, email, LinkedIn)?
  • Any requirements from the data/analytics team on dimension naming?
  • Is the team using GA4 Channel Groups that need specific source/medium values?

Auto-Tagging vs. Manual UTMs — Decide First

This is the most important decision before building any UTM.

Auto-tagging (Google's default)

When auto-tagging is enabled, Google appends a gclid parameter to every ad click URL automatically. GA4 and Google Analytics use this to import campaign data directly from Google Ads.

What auto-tagging gives you automatically:

  • Campaign name
  • Ad group name
  • Keyword
  • Match type
  • Network (Search, Display, etc.)
  • Device
  • Ad format

When auto-tagging is sufficient: Most Google Ads accounts that use GA4 and don't need custom dimensions.

Manual UTMs

You manually append utm_source, utm_medium, utm_campaign, utm_content, and utm_term to every destination URL.

When manual UTMs are needed:

  • Third-party analytics tools (Northbeam, Triple Whale, Hyros) that don't read gclid
  • You need custom campaign labels beyond what auto-tagging provides (e.g., funnel stage, product line)
  • You want consistent UTM data across all paid channels (Google + Meta + LinkedIn) in one analytics view
  • Auto-tagging is breaking because of URL redirects or UTM stripping on the landing page

Can you use both? Yes. Auto-tagging + manual UTMs work simultaneously. Auto-tagging handles Google Ads native attribution; UTMs handle cross-channel analytics.


The 5 UTM Parameters

ParameterWhat it tracksGoogle Ads standard value
utm_sourceThe platform sending trafficgoogle
utm_mediumThe type of channelcpc
utm_campaignThe campaign nameCampaign name or ID
utm_contentThe specific ad or creativeAd name, ad group, or variation
utm_termThe keyword or audienceKeyword triggered

Dynamic Value Insertion — Use This, Always

Manually hardcoding keyword and campaign values is error-prone and doesn't scale. Google Ads supports dynamic UTM parameters — {ValueTrack} tags — that automatically insert the actual values at click time.

Essential ValueTrack parameters for Google Ads

ParameterWhat it insertsExample output
{campaignid}Campaign ID (number)12345678
{campaign}Campaign nameNB_Search_Core_US
{adgroupid}Ad group ID87654321
{adgroup}Ad group nameProject_Management_Software
{keyword}The keyword that triggered the adproject+management+software
{matchtype}Match type of the triggered keyworde (exact), p (phrase), b (broad)
{network}Network the ad served ong (Search), d (Display), x (Shopping)
{device}Device typem (mobile), t (tablet), c (computer)
{creative}Ad ID111222333
{placement}Domain where display ad showedexample.com
{loc_physical_ms}Physical location ID of the userLocation criteria ID

UTM Templates by Account Type

Standard Search Campaign Template

utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_content={adgroup}&utm_term={keyword}_{matchtype}

Full URL example:

https://yoursite.com/landing-page?utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_content={adgroup}&utm_term={keyword}_{matchtype}

What you see in GA4:

  • Source: google
  • Medium: cpc
  • Campaign: NB_Search_Core_US (actual campaign name)
  • Ad content: Project_Management_Software (ad group name)
  • Term: project+management+software_e (keyword + match type)

Brand Campaign Template

utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_content=brand&utm_term={keyword}

Adding utm_content=brand lets you filter brand vs. non-brand traffic easily in GA4 without relying on campaign naming.


Shopping / PMax Template

Shopping and PMax don't support keyword-level UTMs (no keyword targeting). Use product-level identifiers instead:

utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_content=shopping&utm_term={adgroup}

For PMax, use the campaign-level template — ad group granularity is limited.


Display / Demand Gen Template

utm_source=google&utm_medium=display&utm_campaign={campaign}&utm_content={creative}&utm_term={placement}

Using utm_medium=display (not cpc) keeps Display traffic in its own channel grouping in GA4, separate from paid search.


Retargeting Campaign Template

Add a funnel stage signal so you can separate retargeting performance from prospecting in analytics:

utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_content=retargeting_{adgroup}&utm_term={keyword}_{matchtype}

UTM Naming Convention

Consistent naming is what makes UTM data useful. Establish these rules before building:

Rules

  1. Lowercase onlygoogle not Google. GA4 is case-sensitive; Google and google are two different sources.
  2. Hyphens not spacesnon-brand-search not non brand search. Spaces become %20 in URLs and break readability.
  3. Consistent separators — pick one: hyphens (-) or underscores (_). Don't mix.
  4. No special characters — avoid &, =, #, ? in values (they break URL parsing)
  5. Mirror your campaign naming convention — if campaigns are named NB_Search_Core_US, utm_campaign should match exactly

Recommended campaign naming structure for UTM consistency

[Channel]_[Type]_[Theme]_[Geo]

Examples:
google_search_brand_us
google_search_nonbrand-core_us
google_search_competitor_us
google_display_prospecting_us
google_shopping_all-products_uk
google_pmax_retargeting_global

If you use {campaign} dynamic insertion, the UTM inherits whatever the campaign is named — so naming the campaign correctly is the same as naming the UTM correctly.


UTM Builder — Step by Step

When building a UTM URL manually:

Step 1 — Start with the destination URL

https://yoursite.com/free-trial

Step 2 — Add the UTM string

https://yoursite.com/free-trial?utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_content={adgroup}&utm_term={keyword}_{matchtype}

Step 3 — Check for existing parameters

If the URL already has a ? (e.g., https://yoursite.com/page?ref=homepage), use & instead of ? to start UTMs:

https://yoursite.com/page?ref=homepage&utm_source=google&utm_medium=cpc&...

Step 4 — Test with a preview

Replace {keyword} with an example keyword before saving. Does the URL render correctly? Does it land on the right page?

Step 5 — Apply at the right level

In Google Ads, tracking templates can be set at:

  • Account level: Applies to all campaigns automatically (most efficient — set this first)
  • Campaign level: Overrides account level for specific campaigns
  • Ad group level: Overrides campaign level
  • Keyword level: Most granular; use for specific keyword tracking

Best practice: Set a tracking template at account level using dynamic insertion. Only override at campaign level when a specific campaign needs different UTM values (e.g., a brand campaign that needs utm_content=brand).

In Google Ads: Settings → Account settings → Tracking → Tracking template

{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_content={adgroup}&utm_term={keyword}_{matchtype}

{lpurl} is replaced by the ad's final URL at click time.


UTM Audit: Fixing Inconsistent Tracking

For accounts with messy existing UTM setups:

Common problems and fixes

ProblemSymptom in GA4Fix
Mixed case values (Google vs google)Duplicate source rows in reportsStandardize to lowercase in all UTMs
Missing utm_mediumTraffic classified as "Direct" or "Other"Add medium to all UTMs
Wrong medium (utm_medium=paid instead of cpc)Not appearing in "Paid Search" channel groupUse cpc for paid search
Hardcoded campaign namesStale campaign names in reports after renameSwitch to {campaign} dynamic insertion
UTMs stripped by landing page redirectsAll traffic shows as direct after redirectConfigure redirect to preserve UTM parameters
Auto-tagging disabledNo Google Ads data in GA4Enable auto-tagging in Google Ads settings
Spaces in UTM valuesBroken URLs, %20 in reportsReplace spaces with hyphens

GA4 Channel Grouping — Ensure UTMs Route Correctly

GA4's default channel grouping uses source/medium to categorize traffic. Your UTMs must align:

GA4 ChannelRequired source/medium
Paid Searchsource: google, medium: cpc
Displaysource: google, medium: display
Paid Socialsource: facebook/instagram/linkedin, medium: paid-social or cpc
Organic Searchsource: google, medium: organic (auto from GA4)
Emailmedium: email
DirectNo UTM (or (direct)/(none))

If your GA4 shows Google Ads traffic in "Unassigned" or "Direct": Usually caused by wrong medium value, UTMs being stripped, or auto-tagging disabled.


UTM Checklist

When setting up a new Google Ads account

  • Auto-tagging enabled in account settings?
  • Account-level tracking template set with dynamic UTMs?
  • UTM naming convention documented and shared with team?
  • GA4 channel groups verified — does paid traffic land in "Paid Search"?
  • Test a click: do UTMs appear correctly in GA4 Real-time?

When launching new campaigns

  • Campaign name follows naming convention? (UTM inherits campaign name)
  • Any campaign-level UTM override needed? (e.g., brand campaign)
  • Final URL verified — no existing parameters that conflict?

Quarterly UTM audit

  • Pull source/medium report in GA4 — any unexpected values?
  • Any "(not set)" or "(none)" in campaign dimension for paid traffic?
  • Any sessions appearing as "Direct" that should be paid? (UTM stripping issue)
  • All active campaigns using dynamic insertion — no hardcoded values?

Common Mistakes

Mixing lowercase and uppercase utm_source=Google and utm_source=google create two separate rows in GA4. Always lowercase.

Using the wrong medium for non-search campaigns Display campaigns with utm_medium=cpc show up in GA4's Paid Search channel instead of Display — inflating paid search metrics. Use utm_medium=display for Display and Demand Gen.

Hardcoding campaign names instead of using {campaign} When you rename a campaign in Google Ads, hardcoded UTMs still show the old name in GA4. Always use {campaign} for the campaign dimension.

Not testing before launch Preview the URL with actual values substituted. A broken ? or & means every click loses its tracking data permanently.

Forgetting that UTMs don't work on phone calls UTMs track web sessions. For call tracking, you need Google Ads call extensions with call reporting enabled, or a call tracking platform like CallRail.


Related Skills

  • google-ads-conversion-tracking: How Google Ads native conversion tracking (gclid / auto-tagging) works alongside UTMs
  • google-ads-attribution: How UTM data feeds into GA4 attribution models and differs from Google Ads native attribution
  • google-ads-anomaly-detection: Sudden drops in UTM-tracked traffic can signal UTM stripping or tracking template errors

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.31%
按下载量换算111

Claude

27.66%
按下载量换算87

Cursor

18.29%
按下载量换算57

Gemini CLI

10.24%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills