> ## Documentation Index
> Fetch the complete documentation index at: https://85b42a7-productmetrics.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://85b42a7-productmetrics.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://85b42a7-productmetrics.manicule.dev/docs/api/mcp.
> Every agent surface: https://85b42a7-productmetrics.manicule.dev/docs/.well-known/llms-manifest.json

# set-up-tracking skill (/docs/agent-skills/set-up-tracking)

<!-- agent-signals: reading_time_min: 3 · est_tokens: 1880 · updated: 2026-11-16 -->
Related: [Product Metrics agent skills](/docs/agent-skills/overview.md), [Install Product Metrics skills](/docs/agent-skills/install.md), [connect-google-ads skill](/docs/agent-skills/connect-google-ads.md), [check-tracking skill](/docs/agent-skills/check-tracking.md), [bid-on-profit skill](/docs/agent-skills/bid-on-profit.md), [analyse-google-ads skill](/docs/agent-skills/analyse-google-ads.md)

> The skill an agent uses to take a store from nothing to tracking active with the productmetrics CLI or the MCP server.

**`set-up-tracking` walks an agent through the whole Product Metrics setup: sign in, workspace, store, Google Ads, Meta, conversion actions, consent, costs and the first purchase.** The agent runs the steps that have an API and hands you the ones that need your browser or your store admin.

## When an agent uses it

* "Set up Product Metrics for my store."
* "Connect my WooCommerce shop and start sending profit to Google Ads."
* "What's left to set up?"

## Example conversation

```text
You:    Set up Product Metrics for my Shopify store, shop.example.com.
Agent:  You're signed in but have no workspace yet. I've created
        "Example Shop".
        Open this link and approve Google Ads and Merchant Center:
        https://app.productmetrics.io/connect/google?scope=ads
You:    Done.
Agent:  Which account runs your campaigns?
        123-456-7890 "Example Shop" or 987-654-3210 "Old shop"?
You:    The first.
Agent:  Connected. Now open this link and approve the Product Metrics
        app in Shopify, then turn on the Product Metrics app embed in
        your theme editor and select Save.
        ...
        Left for you in Tracking: Configure consent (Shopify Customer
        Privacy) and Add your additional costs. Then place a test order
        and I'll check it arrived.
```



**What the agent runs**

```text
productmetrics status --json                       → signed in
productmetrics setup get-status --json             → journey_stage: needs_workspace
productmetrics onboarding set-account-type --account-type direct_advertiser --json
productmetrics onboarding complete --json
productmetrics companies create --name "Example Shop" --auto-idempotency-key --json
productmetrics google get-connect-link --scope ads --json          (exit 4: browser)
productmetrics google-ads list-accounts --json
productmetrics google-ads create-property-connection ... \
  --connection-mode user_oauth --customer-id 1234567890
productmetrics stores connect --company-id ... --provider shopify \
  --auto-idempotency-key --json                        (exit 4: browser)
```

## Commands and tools it uses

| Step                 | CLI                                                                                                                                                                                          | MCP (`execute`) operation                                                                                                        |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| Sign-in and state    | `productmetrics status`, `productmetrics onboarding get-state`, `productmetrics setup get-status`, `productmetrics whoami`                                                                   | `onboarding.get_state`, `setup.get_status`, `properties.list`                                                                    |
| Workspace            | `productmetrics companies create`                                                                                                                                                            | `companies.create`                                                                                                               |
| Google access        | `productmetrics google get-connect-link`                                                                                                                                                     | `google.get_connect_link`                                                                                                        |
| Google Ads account   | `productmetrics google-ads list-accounts`, `productmetrics google-ads create-property-connection`                                                                                            | `google_ads.list_accounts`, `google_ads.create_property_connection`                                                              |
| Store                | `productmetrics tracking get-commerce-configuration`, `productmetrics stores connect`, `productmetrics tracking create-website-installation`, `productmetrics tracking get-shopware6-status` | `tracking.get_commerce_configuration`, `stores.connect`, `tracking.create_website_installation`, `tracking.get_shopware6_status` |
| Store to property    | `productmetrics tracking get-configuration`, `productmetrics tracking assign-property`                                                                                                       | `tracking.get_configuration`, `tracking.assign_property`                                                                         |
| Conversion actions   | `productmetrics google-ads create-conversion-actions`, `productmetrics google-ads get-conversion-actions`                                                                                    | `google_ads.create_conversion_actions`, `google_ads.get_conversion_actions`                                                      |
| Enhanced conversions | `productmetrics tracking get-enhanced-conversions`                                                                                                                                           | `tracking.get_enhanced_conversions`                                                                                              |
| Meta                 | `productmetrics destinations set-meta`, `productmetrics destinations test-meta`, `productmetrics destinations list-meta`                                                                     | `destinations.set_meta`, `destinations.test_meta`, `destinations.list_meta`                                                      |
| First purchase       | `productmetrics tracking get-last-purchase`, `productmetrics orders list`                                                                                                                    | `tracking.get_last_purchase`, `orders.list`                                                                                      |

Through MCP the agent finds each operation with `search` and calls it with `codemode.request` in `execute`.

**App steps, no API:** Magento (a developer installs the module), the Cloudflare sign-in for Lightspeed and Cloudflare Tracking, **Configure consent** and **Add your additional costs**. The skill gives you the exact labels.



> **Note:** The agent asks you for a Lightspeed API key and secret, or a Meta Conversions API access token, only because the API needs your own credential. It passes them on and never repeats them. Setup tokens for WooCommerce and Shopware are shown to you only.

## The skill

Read the full file at [`/.well-known/agent-skills/set-up-tracking/SKILL.md`](https://www.productmetrics.io/docs/.well-known/agent-skills/set-up-tracking/SKILL.md), or install it with:

```bash
npx skills add https://www.productmetrics.io/docs \
  --skill set-up-tracking
```

## Where next

* [Quickstart](/docs/quickstart): the same steps for a person
* [check-tracking skill](/docs/agent-skills/check-tracking)
* [connect-google-ads skill](/docs/agent-skills/connect-google-ads)
* [CLI for agents](/docs/cli/for-agents)
