Analytics Insights 标志

Analytics Insights

组织
hyperfx-ai
analytics-insights

Drive Google Analytics (GA4), Google Tag Manager, Google Search Console, and BigQuery from chat — tracking plans, GA4 reports, key-event (conversion) setup, custom dimensions and metrics, GTM audits, GSC performance, and GA4 BigQuery export queries. Use when the user wants an analytics audit, a GA4 report, a tracking plan, conversion setup, GTM cleanup, search-performance data, or asks "how is the site performing?" or "are my conversions firing?".

概览

发布者hyperfx-ai
代码仓库marketing-skills
技能名称analytics-insights
星标数
107
复刻数
21
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 hyperfx-ai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Analytics Insights AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/hyperfx-ai/marketing-skills/tree/main/skills/analytics-insights
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hyperfx-ai/marketing-skills.git /tmp/marketing-skills
mkdir -p .claude/skills
cp -r /tmp/marketing-skills/skills/analytics-insights .claude/skills/analytics-insights
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Analytics Insights,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Analytics Insights。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Analytics Insights 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Analytics Insights

Operator skill for the Google measurement stack — GA4, GTM, Search Console, and BigQuery — driven directly from chat. Build a tracking plan, run reports, mark conversions, audit existing setup, and query the warehouse without leaving the conversation.

Out of scope — defer to other skills

RequestSend them to
Keyword research, AI-search visibility, full SEO auditseo-research (HyperSEO toolkit — broader and richer than GSC for keyword work)
Google Ads campaign performancegoogle-ads (campaign-level) — but GA4-side conversion attribution lives here
Meta / Facebook ads metricsmeta-ads
Email program metricsemail-lifecycle (provider-side)

GSC and HyperSEO overlap on search-performance data. Rule of thumb: use GSC here for the user's own site's impression / click / position data. Use HyperSEO (in seo-research) for keyword research, competitor data, AI-search visibility.

Requirements

  • Hyper MCP installed and connected. https://app.hyperfx.ai/mcp
  • At least one of these connected at https://app.hyperfx.ai/apps:
    • Google Analytics — GA4 reports, custom metrics / dimensions, key-event (conversion) management.
    • Google Tag Manager — tag / trigger / variable / workspace / version management.
    • Google Search Console — search-performance data, sitemaps, URL inspection.
    • BigQuery — SQL queries against the GA4 export (or any other dataset).

If google_analytics_ga4_reports_run, google_tag_manager_tags_manage, google_search_console_performance_get and database_query are all not found, the integration to connect is one of Google Analytics, Google Tag Manager, Google Search Console or Database (a BigQuery connection).

How to run the tools in this skill

Every tool in this skill is named by its canonical tool name. Run it with the call your surface gives you:

SurfaceFind a toolRun it
Hyper chatCall the tool by its name; search_tools(queries=["<provider> <action>"]) shows its parameters<name>(...)
MCP client (Claude, Cursor, Codex, ChatGPT)search("<what you want to do>"), then describe("<name>")call_read("<name>", {...}), call_write or call_destructive: the one that describe names in call_with
Hyper CLIhyperai search "<what you want to do>", then hyperai describe <name>hyperai call <name> --json '{...}'

If a tool is not found: in Hyper chat, find its toolkit id with discover_toolkits and pass it to enable_toolkit. On an MCP client or the CLI, tell the user which integration to connect in Hyper.

Tool surface

GroupTools
GA4 — reportinggoogle_analytics_ga4_reports_run, google_analytics_accounts_list, google_analytics_properties_list, google_analytics_properties_get
GA4 — properties & data streamsgoogle_analytics_ga4_properties_create, google_analytics_properties_update, google_analytics_properties_delete, google_analytics_data_streams_create, google_analytics_data_streams_list, google_analytics_data_streams_get, google_analytics_data_streams_update, google_analytics_data_streams_delete, google_analytics_data_retention_get (read-only — no update variant in MCP), google_analytics_data_collection_acknowledge
GA4 — key events (conversions)google_analytics_key_events_create, google_analytics_key_events_list, google_analytics_key_events_get, google_analytics_key_events_update, google_analytics_key_events_delete
GA4 — custom metrics / dimensionsgoogle_analytics_custom_metrics_create, google_analytics_custom_metrics_list, google_analytics_custom_metrics_get, google_analytics_custom_metrics_update, google_analytics_custom_metrics_archive, google_analytics_custom_dimensions_create, google_analytics_custom_dimensions_list, google_analytics_custom_dimensions_get, google_analytics_custom_dimensions_update, google_analytics_custom_dimensions_archive
GTMgoogle_tag_manager_accounts_manage, google_tag_manager_containers_manage, google_tag_manager_workspaces_manage, google_tag_manager_tags_manage, google_tag_manager_triggers_manage, google_tag_manager_variables_manage, google_tag_manager_built_in_variables_manage, google_tag_manager_folders_manage, google_tag_manager_environments_manage, google_tag_manager_versions_manage, google_tag_manager_version_headers_manage, google_tag_manager_user_permissions_manage, google_tag_manager_clients_manage, google_tag_manager_templates_manage, google_tag_manager_transformations_manage, google_tag_manager_zones_manage, google_tag_manager_destinations_manage
Google Search Consolegoogle_search_console_performance_get, google_search_console_sites_list, google_search_console_sitemaps_list, google_search_console_sitemaps_get, google_search_console_sitemaps_submit, google_search_console_sitemaps_delete, google_search_console_urls_submit
BigQuerybigquery_execute_query, bigquery_insert_rows

Critical rules

  1. GA4 property IDs — arg name differs by tool. Three patterns: (a) Reporting tools (run_ga4_report, get_property) take property_id="properties/123456789". (b) Create and list tools (create_key_event, list_key_events, create_custom_dimension, list_custom_dimensions, etc.) take parent="properties/123456789". (c) Get/update/delete tools operate on a specific resource and take name= with the full resource path (e.g. "properties/123456789/keyEvents/12345"). All three need the properties/ prefix in some form — passing a bare numeric ID silently fails. When in doubt, check the tool's schema for which arg is marked required.
  2. Date ranges are inclusive on both ends. start_date="2026-04-01" and end_date="2026-04-30" returns 30 days, not 29. Same for relative dates: 7daysAgo to today is 8 days, not 7.
  3. GA4 sampling kicks in above ~10M events. For high-volume properties, the GA4 API silently samples results. If precision matters (board reporting, financial attribution), use the BigQuery GA4 export instead — see references/bigquery-ga4-export.md.
  4. Conversions in GA4 are "key events". GA4 renamed "conversions" to "key events" in 2024. The tools reflect this — use google_analytics_key_events_create to mark an event as a conversion. Don't get confused by older docs.
  5. GTM changes need a workspace + version + publish. Tags / triggers / variables created in a workspace are not live until the workspace is committed to a new version and that version is published. Use google_tag_manager_workspaces_manage → modify → google_tag_manager_versions_manage (create) → publish.
  6. GSC data has a 2–3 day lag. Don't query "yesterday" in GSC and expect data — query 3+ days back for stable numbers. GA4 has a 24-48h lag for some metrics.
  7. Apple Mail Privacy Protection inflates GA4 "engaged" sessions from email. Don't trust email-driven engagement numbers in GA4 alone — cross-reference with the email provider's own click data.

Workflow — pick the right path

The skill covers four distinct jobs. Pick first; the workflows are different.

The user wants…PathReference
A report ("how did we do last month?")Phase R—
To set up tracking ("we need to measure X")Phase Treferences/ga4-tracking-plan.md
To audit existing GTM / GA4 ("why is conversion data wonky?")Phase Areferences/gtm-audit.md
Precise / unsampled / cross-source analysisPhase Breferences/bigquery-ga4-export.md

Phase R — Run a report (most common path)

Warehouse option: When the workspace has an analytics warehouse connection, discover its tables and schema and query them through database_query. Read Warehouse Data Status for the selected connection and report its last successful refresh; do not assume an hourly cache or unsampled data. Otherwise use google_analytics_ga4_reports_run for GA4 and google_search_console_performance_get for GSC. Keep account IDs, dates and metric definitions explicit.

  1. Confirm the property. google_analytics_accounts_list() → google_analytics_properties_list(filter="parent:accounts/<account_id>"). Ask the user to pick if there are multiple. Save the properties/<id> for the rest of the conversation.
  2. Pick the date range. Always confirm. "Last 30 days" is start_date="30daysAgo", end_date="yesterday" (avoid today — partial-day data is unstable).
  3. Pick metrics + dimensions. Don't blast 12 metrics × 6 dimensions in one report — the result is unreadable. Pick the 2–3 metrics that answer the user's question and the 1–2 dimensions that segment them meaningfully.
  4. Run the report.
google_analytics_ga4_reports_run(
  property_id="properties/123456789",
  start_date="30daysAgo",
  end_date="yesterday",
  metrics=["activeUsers", "sessions", "conversions", "totalRevenue"],
  dimensions=["sessionDefaultChannelGroup", "deviceCategory"],
)
  1. Present results as a table. Always show the raw numbers alongside any interpretation. "Organic search drove 12,400 sessions (+18% MoM)" beats "organic was up."
  2. One follow-on if the data flags it. If a metric stands out (e.g., conversion rate dropped 40% on mobile), run one targeted follow-up report — don't speculate.
Common GA4 metrics & dimensions

The GA4 API uses camelCase names. The most useful:

Metrics: activeUsers, sessions, screenPageViews, bounceRate, engagementRate, averageSessionDuration, conversions, eventCount, totalRevenue, transactions, purchaseRevenue, userEngagementDuration.

Dimensions: country, city, deviceCategory, operatingSystem, browser, sessionDefaultChannelGroup, sessionSource, sessionMedium, sessionCampaignName, pagePath, eventName, date, hour, landingPage.

For the full list, the user can browse the GA4 Data API reference.

Phase T — Set up tracking

The GA4 API can create properties, data streams, key events, custom metrics, and custom dimensions — but it can't deploy GTM tags into the page. That step is GTM-side (or hard-coded in the site). The skill workflow:

  1. Tracking plan first. Define what events you need to fire, where they fire, and which ones are conversions (key events). Full template in references/ga4-tracking-plan.md.
  2. GA4-side setup — create custom dimensions / metrics, mark key events:
google_analytics_custom_dimensions_create(
  parent="properties/123456789",
  parameter_name="plan_tier",
  display_name="Plan Tier",
  scope="EVENT",
)

google_analytics_key_events_create(
  parent="properties/123456789",
  event_name="purchase",
  counting_method="ONCE_PER_EVENT",
)
  1. GTM-side setup — create/update tags + triggers + variables in a workspace, then version + publish:
google_tag_manager_workspaces_manage(operation="create", account_id="...", container_id="...", name="purchase-tracking-v3")

google_tag_manager_tags_manage(operation="create", workspace_path="...", tag_definition={...})
google_tag_manager_triggers_manage(operation="create", workspace_path="...", trigger_definition={...})
google_tag_manager_variables_manage(operation="create", workspace_path="...", variable_definition={...})

google_tag_manager_versions_manage(operation="create", workspace_path="...", version_name="purchase-tracking-v3")
# then publish via the GTM UI or version operation
  1. Validate — see Phase A.

Phase A — Audit (the existing setup is broken or suspect)

Most "our analytics is wrong" complaints are one of:

SymptomLikely causeHow to confirm
Conversion event not appearing in GA4Event firing in GTM but not reaching GA4 (wrong measurement ID, blocked by consent gate, ad blocker)google_analytics_ga4_reports_run for eventName=purchase over the last 7d → if 0, check GTM
Conversion count wildly offEvent firing on every page (not just confirmation), or duplicate tagsAudit GTM tags via google_tag_manager_tags_manage(operation="list"), check for multiple tags firing on the same trigger
Revenue reported differently in GA4 vs the platform of recordCurrency mismatch, refund handling, attribution windowPull both side-by-side, look for refund / currency rows
Suddenly mobile traffic dropped to ~0Tag firing only on desktop trigger, or a recent GTM publish broke the mobile containergoogle_tag_manager_versions_manage(operation="list") to find recent publishes, diff with previous version
GSC clicks ≠ GA4 organic sessionsAlways different — different definitions. Don't try to reconcile exactly.Expected; document and move on

Detailed audit walkthrough in references/gtm-audit.md.

Phase B — BigQuery GA4 export (precision / cross-source analysis)

For unsampled data, custom attribution, joining GA4 with order-DB / CRM data, or cohort analysis. Requires the GA4 → BigQuery export to be turned on in the GA4 admin (free for standard properties since 2023).

bigquery_execute_query(
  query="""
    SELECT
      event_date,
      COUNT(DISTINCT user_pseudo_id) AS users,
      COUNTIF(event_name = 'purchase') AS purchases,
      SUM(IF(event_name = 'purchase', ecommerce.purchase_revenue, 0)) AS revenue
    FROM `your-project.analytics_123456789.events_*`
    WHERE _TABLE_SUFFIX BETWEEN '20260401' AND '20260430'
    GROUP BY event_date
    ORDER BY event_date
  """
)

Schema, common queries, and the full attribution-modeling workflow in references/bigquery-ga4-export.md.

Output standards

  • Always present numbers as tables, not prose. "12,400 sessions, 8.2% bounce, 1.4% conversion" → markdown table.
  • Always include the date range in the report header. "Apr 1–30, 2026" — undated numbers are useless.
  • Always include the property / site the report came from. Multi-property organizations get burned by this constantly.
  • Annotate sampling. If GA4 returns a samplesReadCount < samplingSpaceSize, say so explicitly. The user needs to know whether to trust the number for finance / board reporting.
  • Distinguish "ratio metric" from "summable metric". Bounce rate, engagement rate, conversion rate are ratios and don't sum — present them as one number, not a column total.

Reference workflows

ReferenceWhen to read
references/ga4-tracking-plan.mdDesigning what to track — recommended event schema, custom dimensions / metrics, key-event mapping, naming conventions
references/gtm-audit.mdAuditing an existing GTM container — finding duplicate tags, broken triggers, unused variables, missing consent gates
references/bigquery-ga4-export.mdQuerying the GA4 BigQuery export — schema, common queries (DAU, funnel, attribution, cohort, retention), join patterns

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Analytics Insights AI 技能有什么作用?

Drive Google Analytics (GA4), Google Tag Manager, Google Search Console, and BigQuery from chat — tracking plans, GA4 reports, key-event (conversion) setup, custom dimensions and metrics, GTM audits, GSC performance, and GA4 BigQuery export queries. Use when the user wants an analytics audit, a GA4 report, a tracking plan, conversion setup, GTM cleanup, search-performance data, or asks "how is the site performing?" or "are my conversions firing?".

为什么在 TypingMind 中使用 Analytics Insights?

因为您只需安装一次,就能搭配任何模型使用。Analytics Insights 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Analytics Insights?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/hyperfx-ai/marketing-skills/tree/main/skills/analytics-insights。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Analytics Insights?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Analytics Insights 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Analytics Insights 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Analytics Insights AI 技能免费吗?

是的。hyperfx-ai 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇