# Session merged

Learn how to track the merge of two or more sessions.

This event tracks the merge of two or more sessions.

> **Automatically tracked**
>
> We track this event for you, so no action is needed on your side.

## Input properties

This event has no input properties.

## Processed properties

These properties are automatically tracked:

- `session`: [`Session`](/reference/event/data-types/session)

  The session that resulted from the merge.

- `mergedSessions`: [`Array<Session>`](/reference/event/data-types/session)

  The list of sessions that have been merged, ordered from oldest to most recent.

## Payload examples

Below are some payload examples for this event:

**Processed payload**

```json
{
  "type": "sessionMerged",
  "session": {
    "sessionId": "12345678-1234-1234-1234-123456789012",
    "userId": "87654321-4321-4321-4321-210987654321",
    "parentId": null,
    "externalUserId": "user-123",
    "window": {
      "start": 1440990000000,
      "end": 1441000000000
    },
    "closeTime": 1441001000000,
    "referrer": "https://www.google.com/",
    "landingPageUrl": "https://www.example.com/winter-sale",
    "campaign": {
      "name": "winter-sale",
      "source": "google",
      "medium": "search",
      "content": "shoes",
      "term": "black shoes"
    },
    "location": {
      "continent": "NA",
      "country": "US",
      "region": {
        "name": "California",
        "code": "CA"
      },
      "city": "Los Angeles",
      "source": "IP"
    },
    "client": {
      "device": {
        "name": "MacBook Pro",
        "vendor": "Apple",
        "category": "desktop",
        "operatingSystem": {
          "name": "iOS",
          "version": "10.0.18363"
        }
      },
      "browser": {
        "name": "Chrome",
        "version": "78.0.3904.108",
        "type": "web"
      }
    },
    "attributes": {
      "plan": "starter"
    },
    "statistics": {
      "pageViews": 12,
      "tabViews": 3,
      "orders": 1
    }
  },
  "mergedSessions": [
    {
      "sessionId": "12345678-1234-1234-1234-943028190442",
      "userId": "87654321-4321-4321-4321-943189301934",
      "parentId": null,
      "externalUserId": null,
      "window": {
        "start": 1440980000000,
        "end": 1440990000000
      },
      "closeTime": 1440990000000,
      "referrer": "https://www.google.com/",
      "landingPageUrl": "https://www.example.com/winter-sale",
      "attributes": {},
      "statistics": {
        "pageViews": 4,
        "tabViews": 1,
        "orders": 0
      }
    }
  ]
}
```

## Explore

- [Analytics](/reference/analytics): Learn how to analyze your dashboards.
- [CQL](/explanation/audience/examples/session-activity): Learn how to create audiences based on the session details.
