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