To use the AnalyticsSession API, install the @wix/analytics-session package using npm or Yarn:
@wix/analytics-session
1
or
Then import { analyticsSession } from @wix/analytics-session:
{ analyticsSession }