> ## 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

# Stores and tracking API (/docs/api/stores-and-tracking)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 898 · updated: 2026-11-16 -->
Related: [Account and onboarding API](/docs/api/account.md), [Meta and ChatGPT Ads destinations API](/docs/api/destinations.md), [Google Ads API](/docs/api/google-ads.md), [Merchant Center API](/docs/api/merchant-center.md), [Product Metrics API](/docs/api/overview.md), [Settings, product rules and feed API](/docs/api/settings.md)

> API operations to connect a store, install website tracking, set consent and features, route tracking to a property and check purchases arrive.

Connect the store, install tracking on the website, decide where each tracking scope sends its purchases, and check that purchases arrive.

14 operations. Paths are relative to `https://prod-backend.productmetrics.io/api/public/v1`; every request needs `Authorization: Bearer $PM_TOKEN`. See the [API overview](/docs/api/overview) for authentication, errors and rate limits.

## Connect a store or website



* [Choose the store platform](/docs/api/stores-and-tracking/stores-select-platform): `PUT /companies/{companyId}/store-platform`. Saves which store platform the workspace sells on.
* [Connect a store](/docs/api/stores-and-tracking/stores-connect): `POST /companies/{companyId}/stores`. Starts connecting a store so its orders are tracked.
* [New WooCommerce setup token](/docs/api/stores-and-tracking/stores-create-woocommerce-setup-claim): `POST /tracking/installations/{installationId}/woocommerce/setup-claims`. A new one-time setup token for a WooCommerce store.
* [Track a website](/docs/api/stores-and-tracking/tracking-create-website-installation): `POST /companies/{companyId}/tracking/website-installations`. Sets up tracking for a website without a store connection.

## Route and configure



* [Send a store's purchases to Google Ads](/docs/api/stores-and-tracking/tracking-set-scope-destination): `PUT /companies/{companyId}/tracking/scopes/{scopeId}/destination`. Sends a store's purchases to a property's Google Ads.
* [Assign a store to a property](/docs/api/stores-and-tracking/tracking-assign-property): `POST /companies/{companyId}/tracking/scopes/{scopeId}/property-assignments`. Assigns a store's orders to a property.
* [Set the cookie consent manager and tracking features](/docs/api/stores-and-tracking/tracking-update-installation-features): `PUT /companies/{companyId}/tracking/installations/{installationId}/features`. Sets the cookie consent manager and tracking features.
* [Set a store's countries and currencies](/docs/api/stores-and-tracking/tracking-update-scope-dimensions): `PUT /companies/{companyId}/tracking/scopes/{scopeId}/dimensions`. Sets the countries, currencies, languages and paths a store scope covers.
* [Set the profit cost fallback and margin costs](/docs/api/stores-and-tracking/tracking-update-margin-policy): `PUT /companies/{companyId}/tracking/connections/{connectionId}/margin-policy`. Sets the product cost fallback and margin costs that profit uses.

## Check



* [Get tracking configuration](/docs/api/stores-and-tracking/tracking-get-configuration): `GET /companies/{companyId}/properties/{propertyId}/tracking`. The property's tracking setup in one read.
* [Get store connections](/docs/api/stores-and-tracking/tracking-get-commerce-configuration): `GET /companies/{companyId}/tracking/commerce`. The workspace's store connections across all its properties.
* [Check tracking works](/docs/api/stores-and-tracking/tracking-get-last-purchase): `GET /companies/{companyId}/tracking/installations/{installationId}/last-purchase`. The last purchase tracked on a website: is tracking working?
* [Get Shopware 6 status](/docs/api/stores-and-tracking/tracking-get-shopware6-status): `GET /companies/{companyId}/tracking/installations/{installationId}/shopware6/status`. Whether a Shopware 6 store's orders arrive.
* [Get enhanced conversions readiness](/docs/api/stores-and-tracking/tracking-get-enhanced-conversions): `GET /companies/{companyId}/properties/{propertyId}/tracking/enhanced-conversions`. Whether Google Ads enhanced conversions are ready.
