# Hotjar

> Read your Hotjar surveys and their responses, and handle people's requests to see or delete their data.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/hotjar

## Actions

### Delete user data

Find and permanently delete the data Hotjar holds about a person, for a data deletion request. Nobody is emailed, and the deletion can't be undone.

**Inputs**

- Email (`email`, text): The email address of the person whose data to find.
- User ID on your site (`site_user_id`, text): The person's own user ID on your website, if your site sends it to Hotjar through Hotjar's Identify API.

**Outputs**

- `data` (object): The response from Hotjar.

**Example output**

```json
{
  "data": {
    "accepted": true
  }
}
```

### Get survey

Get one Hotjar survey with its questions.

**Inputs**

- Survey (`survey_id`, text, required): The Hotjar survey. Its ID starts with survey_.

**Outputs**

- `data` (object): The response from Hotjar.

**Example output**

```json
{
  "data": {
    "created_time": "example",
    "id": "example",
    "is_enabled": true,
    "name": "example",
    "questions": [
      {
        "choices": [
          {
            "allow_comment": true,
            "text": "example"
          }
        ],
        "id": "example",
        "image_url": "example",
        "is_required": true,
        "labels": {
          "high_label": "example",
          "low_label": "example"
        },
        "text": "example",
        "type": "example"
      }
    ],
    "responses_url": "example",
    "sentiment_analysis_enabled": true,
    "type": "example",
    "updated_time": "example",
    "url": "example"
  }
}
```

### List survey responses

List a Hotjar survey's responses, newest first, with the next page's cursor.

**Inputs**

- Survey (`survey_id`, text, required): The Hotjar survey. Its ID starts with survey_.
- Limit (`limit`, number): How many responses to return, up to 100. From 1 to 100.
- Next page cursor (`cursor`, text): To read the next page, the next_cursor value a previous list step returned. Leave empty for the first page.

**Outputs**

- `data` (object): The response from Hotjar.

**Example output**

```json
{
  "data": {
    "next_cursor": "example",
    "results": [
      {
        "answers": [
          {
            "answer": "example",
            "comment": "example",
            "question_id": "example",
            "sentiment": "example",
            "tags": [
              {
                "name": "example"
              }
            ]
          }
        ],
        "browser": "example",
        "country": "example",
        "created_time": "example",
        "device": "example",
        "hotjar_user_id": "example",
        "id": "example",
        "is_complete": true,
        "os": "example",
        "recording_url": "example",
        "response_origin_url": "example",
        "user_attributes": [
          {
            "name": "example",
            "value": "example"
          }
        ],
        "window_size": {
          "height": 1,
          "width": 1
        }
      }
    ]
  }
}
```

### List surveys

List the surveys on your Hotjar site, with the next page's cursor.

**Inputs**

- Limit (`limit`, number): How many surveys to return, up to 100. From 1 to 100.
- Next page cursor (`cursor`, text): To read the next page, the next_cursor value a previous list step returned. Leave empty for the first page.
- Include questions (`with_questions`, true/false): Also return each survey's questions. Off by default.

**Outputs**

- `data` (object): The response from Hotjar.

**Example output**

```json
{
  "data": {
    "next_cursor": "example",
    "results": [
      {
        "created_time": "example",
        "id": "example",
        "is_enabled": true,
        "name": "example",
        "questions": [
          {
            "choices": [
              {
                "allow_comment": true,
                "text": "example"
              }
            ],
            "id": "example",
            "image_url": "example",
            "is_required": true,
            "labels": {
              "high_label": "example",
              "low_label": "example"
            },
            "text": "example",
            "type": "example"
          }
        ],
        "responses_url": "example",
        "sentiment_analysis_enabled": true,
        "type": "example",
        "updated_time": "example",
        "url": "example"
      }
    ]
  }
}
```

### Request user data report

Find the data Hotjar holds about a person, for a data access request. Hotjar emails a link to the report to the person's email address and to the report recipient set on Hotjar's User Lookup page. Nothing is deleted.

**Inputs**

- Email (`email`, text): The email address of the person whose data to find.
- User ID on your site (`site_user_id`, text): The person's own user ID on your website, if your site sends it to Hotjar through Hotjar's Identify API.

**Outputs**

- `data` (object): The response from Hotjar.

**Example output**

```json
{
  "data": {
    "accepted": true
  }
}
```
