# Segment

> Discover how to integrate HowdyGo with Segment to track and analyze demo interactions efficiently. Follow our guide to set up the Segment integration using an API Key and start sending analytics events to your Segment account.

> [!NOTE]
> **The Segment integration** is available on the **Pro** plan and above.

The Segment integration allows you to send analytics events to your Segment account using an API Key.

## Setup

To set up the Segment integration, follow these steps:

1. In your Segment account, create a new Node.js server source:

   - Navigate to Connections > Sources > Add Source.
   - Search for Node.js in the source catalog and select Node.js.
   - Click "Add Source" from the informational panel on the right.
   - Specify a name, e.g., "HowdyGo," and provide a label if necessary.

2. Once your source is created, send a copy of the `Write Key` to our [support team](mailto:support@howdygo.com) via email.

3. Wait for us to configure the integration on our side and confirm that it is ready to use.

## Events

### Demo Open

Triggered when a prospect opens a demo.

```json
{
  "event": "howdygo_demo_open",
  "user_id": {
    "type": "string",
    "format": "email"
  },
  "anonymous_id": {
    "type": "string",
    "format": "uuid"
  },
  "properties": {
    "demo_id": {
      "type": "string",
      "format": "uuid"
    },
    "demo_title": {
      "type": "string"
    },
    "demo_url": {
      "type": "string",
      "format": "uuid"
    }
  }
}
```

### Step Viewed

When a prospect views a step of a demo

```json
{
  "event": "howdygo_step_viewed",
  "user_id": {
    "type": "string",
    "format": "email"
  },
  "anonymous_id": {
    "type": "string",
    "format": "uuid"
  },
  "properties": {
    "demo_id": {
      "type": "string",
      "format": "uuid"
    },
    "demo_title": {
      "type": "string"
    },
    "demo_url": {
      "type": "string",
      "format": "uuid"
    },
    "step_id": {
      "type": "string",
      "format": "uuid"
    },
    "step_index": {
      "type": "number"
    }
  }
}
```

### CTA Click

When a prospect clicks on a call to action

```json
{
  "event": "howdygo_cta_click",
  "user_id": {
    "type": "string",
    "format": "email"
  },
  "anonymous_id": {
    "type": "string",
    "format": "uuid"
  },
  "properties": {
    "demo_id": {
      "type": "string",
      "format": "uuid"
    },
    "demo_title": {
      "type": "string"
    },
    "demo_url": {
      "type": "string",
      "format": "uuid"
    },
    "cta_id": {
      "type": "string",
      "format": "uuid"
    },
    "cta_url": {
      "type": "string",
      "format": "uuid"
    }
  }
}
```
