The Analytics Sessions API enables you to access session IDs collected from Wix sites.
Beta Feature:
This functionality is currently available to select beta users only.
A session is a visit of a visitor to a site. A session starts when a visitor reaches the site, and ends after 30 minutes of inactivity. Within each session, a visitor can take multiple actions and view multiple pages. Each session is identified using a browser session ID.
Wix offers select beta users an entry point to access selected analytics apps that record visitor sessions. When a Wix user accesses the entry point, Wix passes all relevant filters appended to the iframe URL, and you can use the filter data to request a list of relevant visitor sessions from Wix. With this API, you can extend Wix analytics data to help Wix users identify pain points and find areas for improvement.
To use the AnalyticsSession API, install the @wix/analytics-session
package using npm or Yarn:
npm install @wix/analytics-session
or
yarn add @wix/analytics-session
Then import { analyticsSession }
from @wix/analytics-session
:
import { analyticsSession } from "@wix/analytics-session";