> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tracify Analytics

> Integrate your application with the Tracify Analytics API

## Quickstart

Connect to Tracify Analytics with Nango and query your KPI data.

<Steps>
  <Step title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Tracify*.
  </Step>

  <Step title="Connect your Tracify account">
    Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then enter your Tracify Analytics API token, Site ID, and Preset ID. Later, you'll let your users do the same directly from your app.
  </Step>

  <Step title="Call the Tracify Analytics API">
    Replace the placeholders below with your [Environment API key](/docs/reference/backend/http-api/api-keys), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

    <Tabs>
      <Tab title="cURL">
        ```bash theme={null}
        curl "https://api.nango.dev/proxy/analytics/api/v1/kpis/overview/?csids=<SITE-ID>&preset_id=<PRESET-ID>&start_date=2025-01-01&end_date=2025-01-31&granularity=day&requested_metrics=customer_revenue" \\
          -H "Authorization: Bearer ***" \\
          -H "Provider-Config-Key: <INTEGRATION-ID>" \\
          -H "Connection-Id: <CONNECTION-ID>"
        ```
      </Tab>

      <Tab title="Node">
        Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

        ```typescript theme={null}
        import { Nango } from '@nangohq/node';

        const nango = new Nango({ apiKey: *** });

        const res = await nango.get({
            endpoint: '/analytics/api/v1/kpis/overview/?csids=<SITE-ID>&preset_id=<PRESET-ID>&start_date=2025-01-01&end_date=2025-01-31&granularity=day&requested_metrics=customer_revenue',
            providerConfigKey: '<INTEGRATION-ID>',
            connectionId: '<CONNECTION-ID>'
        });

        console.log(res.data);
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/docs/reference/sdks/node#get-a-connection-with-credentials) or [API](/docs/reference/api/connection/get).

    You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.
  </Step>

  <Step title="Implement Nango in your app">
    Follow our [Auth implementation guide](/docs/guides/primitives/auth) to integrate Nango in your app.
  </Step>
</Steps>

## Tracify Analytics integration guides

Nango-maintained guides for common use cases.

* [How do I link my Tracify Analytics account?](/docs/api-integrations/tracify/connect)
  Connect your Tracify Analytics account using the Connect UI

Official docs:

* [Tracify Analytics API documentation](https://tracify.dev/analytics-api/)
* [Tracify API OpenAPI specification](https://tracify-api.tracify.ai/analytics/api/v1/openapi.json)

## API gotchas

* The published KPI templates require both a `siteId` and a `presetId`. Nango stores these as connection configuration and sends the site ID as the API's `csids` query parameter.
* `presetId` is not required by every Tracify Analytics endpoint. For example, export-status queries use the site ID and task ID but do not use a preset ID.
* Data from the last 24 hours is preliminary and may change after processing. Re-request recent periods when finalized data is required.

## Pre-built syncs & actions for Tracify Analytics

Enable them in your dashboard. Extend and customize to fit your needs.

## Pre-built tooling

<AccordionGroup>
  <Accordion title="✅ Authorization">
    | Tools                             | Status |
    | --------------------------------- | ------ |
    | Pre-built authorization (API Key) | ✅      |
    | Pre-built authorization UI        | ✅      |
    | Custom authorization UI           | ✅      |
    | End-user authorization guide      | ✅      |
    | Expired credentials detection     | ✅      |
  </Accordion>

  <Accordion title="✅ Read & write data">
    | Tools                                     | Status                         |
    | ----------------------------------------- | ------------------------------ |
    | Pre-built integrations                    | ✅                              |
    | API unification                           | ✅                              |
    | 2-way sync                                | ✅                              |
    | Webhooks from Nango on data modifications | ✅                              |
    | Real-time webhooks from 3rd-party API     | 🚫 (time to contribute: \<48h) |
    | Proxy requests                            | ✅                              |
  </Accordion>

  <Accordion title="✅ Observability & data quality">
    | Tools                   | Status |
    | ----------------------- | ------ |
    | HTTP request logging    | ✅      |
    | End-to-end type safety  | ✅      |
    | Data runtime validation | ✅      |
    | OpenTelemetry export    | ✅      |
    | Slack alerts on errors  | ✅      |
    | Integration status API  | ✅      |
  </Accordion>

  <Accordion title="✅ Customization">
    | Tools                              | Status                         |
    | ---------------------------------- | ------------------------------ |
    | Create or customize use-cases      | ✅                              |
    | Pre-configured pagination          | 🚫 (time to contribute: \<48h) |
    | Pre-configured rate-limit handling | 🚫 (time to contribute: \<48h) |
    | Per-customer configurations        | ✅                              |
  </Accordion>
</AccordionGroup>

### Analytics KPIs

| Function name                | Description                                                               | Type                                           | Source code                                                                                                                        |
| ---------------------------- | ------------------------------------------------------------------------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `get-kpis-overview`          | Fetches aggregated Tracify KPI overview data for a date range.            | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-overview.ts)          |
| `get-kpis-channels`          | Lists Tracify channel KPI data for a date range.                          | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-channels.ts)          |
| `get-kpis-channel`           | Fetches KPI data for one Tracify channel.                                 | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-channel.ts)           |
| `get-kpis-channel-breakdown` | Fetches a paginated KPI breakdown for one Tracify channel.                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-channel-breakdown.ts) |
| `get-kpis-channel-export`    | Gets the status or result of a Tracify KPI export job.                    | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-channel-export.ts)    |
| `get-kpis-nvr-channel`       | Fetches new-versus-returning customer KPI data for one channel.           | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-nvr-channel.ts)       |
| `get-kpis-nvr`               | Fetches new-versus-returning customer KPI data across channels.           | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-nvr.ts)               |
| `get-kpis-discount-codes`    | Fetches KPI data grouped by Tracify discount code.                        | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/actions/get-kpis-discount-codes.ts)    |
| `kpis-channels`              | Keeps the last 30 days of Tracify channel KPI data fresh.                 | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/syncs/kpis-channels.ts)                |
| `kpis-discount-codes`        | Keeps the last 30 days of Tracify discount-code KPI data fresh.           | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/syncs/kpis-discount-codes.ts)          |
| `kpis-nvr`                   | Keeps the last seven days of Tracify new-versus-returning KPI data fresh. | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/syncs/kpis-nvr.ts)                     |
| `kpis-overview`              | Keeps the last 30 days of aggregated Tracify KPI overview data fresh.     | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/tracify/syncs/kpis-overview.ts)                |

***
