> ## Documentation Index
> Fetch the complete documentation index at: https://996f455-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://996f455-productmetrics.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://996f455-productmetrics.manicule.dev/docs/api/mcp.
> Every agent surface: https://996f455-productmetrics.manicule.dev/docs/.well-known/llms-manifest.json

# Get tracking configuration (/docs/api/stores-and-tracking/tracking-get-configuration)

<!-- agent-signals: reading_time_min: 3 · est_tokens: 1930 · updated: 2026-11-16 -->
Related: [Connect a store](/docs/api/stores-and-tracking/stores-connect.md), [New WooCommerce setup token](/docs/api/stores-and-tracking/stores-create-woocommerce-setup-claim.md), [Choose the store platform](/docs/api/stores-and-tracking/stores-select-platform.md), [Assign a store to a property](/docs/api/stores-and-tracking/tracking-assign-property.md), [Track a website](/docs/api/stores-and-tracking/tracking-create-website-installation.md), [Get store connections](/docs/api/stores-and-tracking/tracking-get-commerce-configuration.md)

> The property's tracking setup in one read: its website installations and their status, connected stores, storefront scopes, where purchases are sent (Google Ads conversion action, pageview destination) and delivery health.

`GET https://prod-backend.productmetrics.io/api/public/v1/companies/{companyId}/properties/{propertyId}/tracking`

**Scope** `read` · **Access** Read only · **Operation id** `tracking.get_configuration`

## Try it

`productmetrics` runs after `productmetrics login`; curl needs `PM_TOKEN` (see [Authentication](/docs/api/overview#authentication)). Set `$COMPANY_ID`, `$PROPERTY_ID` first.



**productmetrics CLI:**

```bash
productmetrics tracking get-configuration \
  --company-id $COMPANY_ID \
  --property-id $PROPERTY_ID \
  --json
```

**curl:**

```bash
curl "https://prod-backend.productmetrics.io/api/public/v1/companies/$COMPANY_ID/properties/$PROPERTY_ID/tracking" \
  -H "Authorization: Bearer $PM_TOKEN"
```

## Response



API response (200):

```json
{
  "data": {
    "companyId": "2a7d9b3c-1e4f-4a5b-8c6d-7e8f9a0b1c2d",
    "propertyId": "8c1f4d2e-7a3b-4c5d-9e6f-0a1b2c3d4e5f",
    "desiredRevision": 0,
    "activeRevision": 0,
    "installations": [
      {
        "id": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "verifiedDomain": "example-store.com",
        "scriptPath": "/",
        "collectorPath": "/",
        "scriptUrl": "https://example-store.com",
        "cdnScriptUrl": "https://example-store.com",
        "collectorUrl": "https://example-store.com",
        "status": "draft",
        "enabled": true,
        "replacedFromInstallationId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "featureFlags": {
          "identityDiscovery": true,
          "dynamicCheckoutObservation": true,
          "cmpAdapter": "shopify_customer_privacy",
          "expandedBotSignals": true,
          "serverAuthoritativeAttributionMode": "off"
        },
        "dataLayerPurchaseMapping": null,
        "deletion": {
          "state": "none",
          "barrierRevision": 1
        }
      }
    ],
    "connections": [
      {
        "id": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "installationId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "provider": "lightspeed_c_series",
        "externalConnectionId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "status": "pending",
        "credentialStatus": "configured"
      }
    ],
    "properties": [
      {
        "id": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "name": "Example Store"
      }
    ],
    "scopes": [
      {
        "id": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "installationId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "ecommerceConnectionId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "countryCodes": [
          "NL"
        ],
        "pathPrefixes": [
          "/"
        ],
        "localeCodes": [
          "nl-NL"
        ],
        "currencyCodes": [
          "EUR"
        ],
        "isDefault": true,
        "enabled": true
      }
    ],
    "mappings": [
      {
        "id": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "propertyId": "8c1f4d2e-7a3b-4c5d-9e6f-0a1b2c3d4e5f",
        "version": 1,
        "googleAdsAccountId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "googleAdsLoginCustomerId": "9876543210",
        "pageviewDestination": "/",
        "purchaseConversionActionId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "purchaseConversionActionName": "Product Metrics - Order revenue",
        "consentPolicyVersion": 1,
        "enabledForNewEvents": true,
        "retiredAt": "2026-11-02T09:30:00.000Z",
        "credentialStatus": "configured",
        "conversionActions": []
      }
    ],
    "propertyLinks": [
      {
        "id": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "storefrontScopeId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "propertyId": "8c1f4d2e-7a3b-4c5d-9e6f-0a1b2c3d4e5f",
        "destinationMappingId": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
        "enabled": true
      }
    ],
    "assignments": [],
    "marginPolicies": [],
    "marginDefaultCatalog": {
      "ecommerce_connection_id": "6f1c2a7e-3b4d-4e8f-9a01-2c3d4e5f6a7b",
      "catalog_version": 1,
      "currency_code": "EUR",
      "country_code": "NL",
      "approved_at": "2026-11-02T09:30:00.000Z",
      "default_rules": {
        "outbound_shipping_micros": "108000000",
        "return_shipping_micros": "108000000",
        "pick_pack_base_micros": "108000000",
        "pick_pack_unit_micros": "108000000",
        "fulfillment_unit_micros": "108000000",
        "return_processing_unit_micros": "108000000",
        "external_payment_fixed_micros": "108000000",
        "external_payment_basis_points": 0
      },
      "value_loss_basis_points": {
        "RESTOCKED": 0,
        "NOT_RESTOCKED": 0
      }
    },
    "deliveryHealth": {
      "state": "not_configured",
      "publicationState": "pending",
      "attemptCount": 42,
      "reason": "missing_installation",
      "lastErrorCategory": "configuration_publication"
    }
  },
  "request_id": "req_01JA9ER9WR34E5SMHW9HT2XE9X"
}
```

**CLI output:** `productmetrics tracking get-configuration --json` prints `{ "ok": true, "data": …, "request_id": "…" }` with the same `data`.

## Before you call

Call this first to see what is set up and what comes next; the installation and scope ids other tracking operations ask for come from here.

## Path parameters

| Name         | Type          | Description                                                                                                          |
| ------------ | ------------- | -------------------------------------------------------------------------------------------------------------------- |
| `companyId`  | string (uuid) | Your workspace id, from `productmetrics whoami` or [`properties.list`](/docs/api/account/properties-list) (`company_id`). |
| `propertyId` | string (uuid) | The property id, from `productmetrics whoami` or [`properties.list`](/docs/api/account/properties-list) (`property_id`).  |

## Errors

A failure answers with its HTTP status and `{ error: { code, message, details? }, request_id }`. Branch on `code` (stable, lower_snake); show `message` to the person. The CLI prints the same `error` with `"ok": false`.

```json
{
  "error": {
    "code": "insufficient_scope",
    "message": "This operation needs the read scope; connect again and allow it.",
    "details": {
      "required_scope": "read"
    }
  },
  "request_id": "req_01JNBHMFWH33PXHY40NWAB111P"
}
```

| Status | Code                 | When                                                                                                                      |
| ------ | -------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| 400    | `invalid_request`    | A path, query or body value does not match this page. `details.issues` lists each `location`, `path` and `message`.       |
| 401    | `invalid_token`      | The token is missing, expired or revoked: sign in again (`productmetrics login`). The `WWW-Authenticate` header says why. |
| 403    | `insufficient_scope` | The token lacks the `read` scope (`details.required_scope`): sign in again and allow it.                                  |
| 404    | `not_found`          | An id in the path does not exist, or the signed-in person cannot open it.                                                 |
| 429    | `rate_limited`       | More than 600 requests a minute for this person: wait the `Retry-After` seconds (60) and retry.                           |

[All Stores and tracking operations](/docs/api/stores-and-tracking)
