About the Analytics Data API

The Analytics Data API enables access to a site's analytics data.
Data is collected on a daily basis, and organized according to specific categories, called measurement types.

Data measurement types include:

  • Total sessions: Total amount of site visits. A session ends after 30 minutes of inactivity.
  • Total sales: Total amount of money expected from all product and service sales, before deducting refunds, shipping, and fees, including both online and manual payments.
  • Total orders: Total amount of income from sales after deducting refunds.
  • Clicks to contact: Total amount of site sessions where a visitor clicked to contact you via WhatsApp, phone or email.

Before you begin

  • Note that Wix stores analytics data for 62 days.
  • Actions that are counted in the "clicks to contact" measurement type do not include form submissions.
  • To use the analytics-data API, import the wix-analytics-data.v2 module.
    import { analyticsData } from "wix-analytics-data.v2";
Was this helpful?
Yes
No