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