Page opened

Record when a user opens a page.

This event tracks when a user opens a page, either by clicking a link or typing a URL in the address bar.

The key difference between this event and the Tab URL changed event is that the latter triggers when the URL changes without reloading the page, which is common in single-page applications (SPAs).

And unlike the Tab opened event, which triggers when a new tab is opened, the page opened event fires every time a page is accessed, even within the same tab.

Croct's mascot amazed
Automatically tracked

The SDK automatically tracks this event when a user accesses a page.

Input properties

This event has no input properties.

Processed properties

These properties are automatically tracked:

tabId
string

The unique identifier of the tab, which is a random UUID.

url
string

The URL of the page the user opened.

referrer(optional)
string

The URL of the page that linked to the current page.

The value is null if the user accessed the page directly.

Payload examples

Below are some payload examples for this event:

123456
{
"type": "pageOpened",
"tabId": "b1f9ca15-51f9-4e8d-9e3a-53e234e17687",
"url": "https://example.com",
"referrer": "https://google.com"
}