# LogRocket

## Destination Info

* Accepts [Page](/docs/segment/connections/spec/page), [Alias](/docs/segment/connections/spec/alias), [Group](/docs/segment/connections/spec/group), [Identify](/docs/segment/connections/spec/identify), [Track](/docs/segment/connections/spec/track) calls.
* Refer to it as **Logrocket**, **LogRocket** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)
* This destination is not compatible with [Destination Insert Functions.](/docs/segment/connections/functions/insert-functions/)
* This integration is **partner owned.** Please reach out to the partner's support for any issues.

[LogRocket](https://www.logrocket.com/) combines session replay, error tracking, and product analytics – empowering software teams to create the ideal web and mobile
product experience. With the Segment integration, your Segment user telemetry and events will be sent to LogRocket for enhanced analytics and filtering.

## Getting started

1. From the Segment web app, click **Catalog**, then click **Destinations**.
2. Find the **LogRocket** destination item in the left navigation, and click it.
3. Click **Configure LogRocket**.
4. Select an existing Source to connect to LogRocket.
5. On the **Settings** tab, set your LogRocket [appID](https://app.logrocket.com/).

## Destination Settings

| Field                | Description                                                                              | Required | Type    |
| -------------------- | ---------------------------------------------------------------------------------------- | -------- | ------- |
| LogRocket App        | The LogRocket app ID.                                                                    | Yes      | string  |
| Input Sanitization   | Obfuscate all user-input elements (like \<input> and \<select>) from session recordings. | Yes      | boolean |
| Network Sanitization | Sanitize all network request and response bodies from session recordings.                | Yes      | boolean |

## Available Presets

LogRocket has the following presets

| Preset Name | Trigger                 | Default Action |
| ----------- | ----------------------- | -------------- |
| Identify    | Event type = "identify" | Identify       |
| Track       | Event type = "track"    | Track          |

## Available Actions

Build your own Mappings. Combine supported [triggers](/docs/segment/connections/destinations/actions/#components-of-a-destination-action) with the following LogRocket-supported actions:

> \[!NOTE]
>
> Individual destination instances have support a maximum of 50 mappings.

* [Identify](#identify-8)
* [Track](#track-6)

### Identify

Send identification information to logrocket.

Identify is a **Web** action. The default Trigger is `type = "identify"`

| Field   | Description                                                                       | Required | Type   |
| ------- | --------------------------------------------------------------------------------- | -------- | ------ |
| User ID | user id                                                                           | No       | STRING |
| Traits  | A JSON object containing additional traits that will be associated with the user. | No       | OBJECT |

### Track

Send track events to logrocket for filtering and tagging.

Track is a **Web** action. The default Trigger is `type = "track"`

| Field      | Description                                                                            | Required | Type   |
| ---------- | -------------------------------------------------------------------------------------- | -------- | ------ |
| Name       | The name of the event.                                                                 | Yes      | STRING |
| Properties | A JSON object containing additional properties that will be associated with the event. | No       | OBJECT |
