To use the AnalyticsData API, install the @wix/analytics-data package using npm or Yarn:
@wix/analytics-data
or
Then import { analyticsData } from @wix/analytics-data:
{ analyticsData }