Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

set-up-tracking

БесплатноБез исполняемых скриптовНе проверен

Set up Product Metrics server-side conversion tracking end to end for a store owner, with the productmetrics CLI or the Product Metrics MCP server (search and…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub

Об этом скилле

Set up Product Metrics tracking

You take a store owner from nothing to tracking active: their paid orders reach Google Ads (and Meta, if they use it) server-side, with revenue, profit, new or returning customer and lifetime value. You drive the steps that have an API; the person does the steps that need them in a browser or in their store admin. Docs: https://www.productmetrics.io/docs/quickstart.

Write for a store owner, not a developer. Short sentences. Say what you did, what they need to do, and what comes next.

0. Pick the interface

Use whichever is available, in this order:

  1. The productmetrics CLI. Check with productmetrics status --json. Read productmetrics help agents once. Pass --json to every command.
  2. The Product Metrics MCP server (https://www.productmetrics.io/mcp), through its search and execute tools. search reads the API spec; execute runs codemode.request(...) calls. Never guess a path or body: search first.

Every API operation has an id like stores.connect. In the CLI it is productmetrics stores connect; in MCP it is the operation with that operationId. Before a command you have not used, run productmetrics <group> <command> --help --json (or search for the operation) for its exact flags.

If neither is available, send the person to https://www.productmetrics.io/docs/cli/overview or https://www.productmetrics.io/docs/mcp/connect and stop.

Rules

  • All conversion actions by agents are secondary. Product Metrics creates its actions as secondary and leaves existing ones as they are. What the account bids on is the person's choice: making an action primary (and the old purchase action secondary) in Google Ads (Goals → Conversions, or a campaign-specific goal), and picking the conversion a Meta ad set or ChatGPT Ads campaign optimises on, is their step by every route, also when they ask you to do it. Tell them exactly what to click, wait until they say it is done, then read it back with productmetrics google-ads get-conversion-actions --property-id <property_id> --json (goal_status). The bidding choice belongs to the advertiser, and one primary purchase action keeps bidding right and counts every purchase once.
  • Discover, never guess. Ids (company_id, property_id, installation and scope ids) come from earlier results. Never invent one.
  • Writes: pass --auto-idempotency-key (MCP: idempotencyKey: crypto.randomUUID()) where the command's --help lists it: companies create, stores connect and tracking update-margin-policy. On a failed write, retry with the key the error hint names, so nothing is created twice. Other writes take no key (the CLI refuses one): after a failure, read to check whether the change happened before retrying.
  • Browser steps. When a command exits with code 4 or returns next_action: { "type": "browser", "url": … } (MCP: an operation marked x-browser-step returns a URL), give the person the URL, say what they will see, wait until they say they are done, then read the state again. You cannot click through these for them. A WooCommerce or Shopware 6 store exits 4 with next_action: { "type": "store_plugin", "expires_at": … } instead: the person pastes the setup token (print it with --show-secrets) into the Product Metrics plugin in their store admin before it expires.
  • Secrets. Never ask for, print or store passwords, tokens or API keys, except where the API needs the person's own credential:
    • Lightspeed apiKey and apiSecret, and the Meta Conversions API accessToken: ask the person for them, pass them straight to the command, and never repeat them back, log them or put them in a summary.
    • A setup token (WooCommerce, Shopware) is hidden in output. With the CLI, run the command again with --show-secrets only to show it to the person. Through MCP it comes back hidden: tell the person to copy it from Ecommerce platforms in the Product Metrics app.
  • Deletes (access: destructive, --yes, MCP confirm: true): only when the person explicitly asks.

1. Sign in

productmetrics status --json

If signed_in is false, ask the person to run productmetrics login in their own terminal (it opens a browser). In CI, PM_TOKEN is set instead. With MCP, the person signs in when they add the connector; if execute says the connection only has MCP access, ask them to remove and re-add Product Metrics in their AI app and allow read, setup and write.

2. Read where setup stands

productmetrics onboarding get-state --json
productmetrics setup get-status --json
productmetrics whoami --json

setup get-status is the map for every later step. Read journey_stage, user.google_grant, and hub.company.next_action / hub.property.next_action. Once you know the workspace and property, read it again with them:

productmetrics setup get-status \
  --company-id <company_id> \
  --property-id <property_id> \
  --json
Полный SKILL.md на GitHub

Установить set-up-tracking в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

skill-report.json

FAQ

Что делает скилл set-up-tracking?

Set up Product Metrics server-side conversion tracking end to end for a store owner, with the productmetrics CLI or the Product Metrics MCP server (search and execute tools): sign in, create or pick the workspace, connect the store (Shopify, WooCommerce, Shopware, Lightspeed, Magento or any website through Cloudflare Tracking), connect Google Ads and Meta, create the conversion actions, set consent and additional costs, and confirm the first purchase arrives. Use it when someone asks to "set up Product Metrics", "install tracking", "connect my store", "start sending profit to Google Ads", or asks what is left to set up. Browser steps (Google consent, Shopify approval, checkout, Cloudflare sign-in) are handed to the person as a URL.

Как установить скилл set-up-tracking?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл set-up-tracking запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить set-up-tracking с