> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Track an analytics event

> Tracks an analytics event with optional properties.



## OpenAPI

````yaml /api-reference/tiger-cloud-rest-api/openapi.yaml post /analytics/track
openapi: 3.0.3
info:
  title: Tiger Cloud API
  description: |
    A RESTful API for Tiger Cloud.
  version: 1.0.0
  license:
    name: Proprietary
    url: https://www.tigerdata.com/legal/terms
  contact:
    name: Tiger Data Support
    url: https://www.tigerdata.com/contact
servers:
  - url: https://console.cloud.timescale.com/public/api/v1
    description: API server for Tiger Cloud
  - url: http://localhost:8080
    description: Local development server
security:
  - basicAuth: []
tags:
  - name: Auth
    description: Authentication and authorization information.
  - name: VPCs
    description: Manage VPCs and their peering connections.
  - name: Services
    description: Manage services, read replicas, and their associated actions.
  - name: Analytics
    description: Track analytics events.
paths:
  /analytics/track:
    post:
      tags:
        - Analytics
      summary: Track an analytics event
      description: Tracks an analytics event with optional properties.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - event
              properties:
                event:
                  type: string
                  description: The name of the event to track
                  example: service_created
                properties:
                  type: object
                  additionalProperties: true
                  description: >-
                    Optional map of arbitrary properties associated with the
                    event
                  example:
                    region: us-east-1
      responses:
        '200':
          $ref: '#/components/responses/AnalyticsResponse'
        4XX:
          $ref: '#/components/responses/ClientError'
components:
  responses:
    AnalyticsResponse:
      description: Analytics action completed successfully.
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                description: Status of the analytics operation
                example: success
    ClientError:
      description: Client error response (4xx status codes).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >
        HTTP Basic Authentication using your Tiger Cloud public key and secret
        key.


        Format: `Authorization: Basic <base64(public_key:secret_key)>`


        Example:

        ```bash

        curl -X GET
        "https://console.cloud.timescale.com/public/api/v1/projects/{project_id}/services"
        \
          -H "Authorization: Basic $(echo -n 'your_public_key:your_secret_key' | base64)"
        ```

````