Session started

Learn how to track the start of a session.

This event tracks the start of a session.

Croct's mascot amazed
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

The session at the time it started.

Payload examples

Below are some payload examples for this event:

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
{  "type": "sessionStarted",  "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    }  }}