# Segment

Connect Segment with Blitzllama to use push user attributes and cohorts from your existing tools to precisely target users through Blitzllama and generate powerful insights.

{% hint style="warning" %}
Segment integration is in beta. Please reach out to us over the support chat on Blitzllama's dashboard to whitelist your account.
{% endhint %}

### Supported Capabilities

* We support Segment's Identify and Group calls.
* Segment's Identify and Groups calls are the equivalent of attributes and cohorts in Blitzllama.

### Connecting Segment to Blitzllama

1. Navigate to the Destination page inside Segment's Catalog tab.
2. Search for Blitzllama, click on the card to land on the Blitzllama's Catalog page
3. Select the data sources to send to Blitzllama destination
4. Get the API key within Blitzllama's dashboard: navigate to the Connections tab, search for Segment, click on the card to find and copy the API key.

### Data Mapping&#x20;

#### Segment - Identify&#x20;

Every single `traits` in Segment maps to single `Attributes` in Blitzllama. Use `Attributes` to identify users in Blitzllama. An example Identify call will look like this:&#x20;

```
analytics.identify('97980cfea0067', {
  city: 'Bangalore',
  plan: 'premium',
  name: 'Peter Gibbons',
  logins: '5',
  email: 'peter@example.com',
});
```

For more information, refer to Segment Spec documentation - [Identify](https://segment.com/docs/connections/spec/identify/)

On Blitzllama's dashboard, the corresponding data can be found in the `Preview` section in the `Cohorts` tab.

![](/files/bk9el7xzYSMon1jqePIm)

#### Segment - Group

`Group` in Segment map to `Cohorts` in Blitzllama. Use `Groups` to seamlessly sync cohorts to Blitzllama. An example `Group` call will look like this:&#x20;

```
analytics.group("0e8c78ea9d97a7b8185e8632", {
  name: "Initech",
  industry: "Technology",
  employees: 329,
  plan: "enterprise",
  "total billed": 830
});
```

For more information, refer to Segment Spec documentation - [Groups](https://segment.com/docs/connections/spec/group/)

The synced Segment's Groups will be available on the `Cohorts` tab on Blitzllama's dashboard.

![](/files/j4Hazw3xTKP1EtTXDi26)

{% hint style="info" %}
Blitzllama accepts unlimited user attributes and will auto accept all user traits from Segment's Identify call.
{% endhint %}

{% hint style="info" %}
Blitzllama accepts unlimited user cohorts and will auto accept all user groups from Segment's Group call.
{% endhint %}

In case you are stuck at any of the above steps, please don't hesitate to email us at <tech@blitzllama.com> or hit us up on the support chat.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.blitzllama.com/connections-sources/segment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
