Class: Insights

Insights

new Insights()

Source:
  • WixClient.js

Mixes In

Methods

getActivitiesSummary(scope) → {Promise.<Insights.ActivitySummary, error>}

Returns the number of activity type events attributed to a specific application

Parameters:
Name Type Description
scope string

The scope of the results to return, either for the entire site or limited to the current application. Can either be site or app. By default, summary information for the current application will be returned

Source:
  • WixClient.js
Returns:

Summary information, or an error

Type
Promise.<Insights.ActivitySummary, error>

getActivitySummaryForContact(contactId) → {*}

Parameters:
Name Type Description
contactId
Source:
  • WixClient.js
Returns:
Type
*

Type Definitions

ActivitySummary

Summary information for activities performed on a site

Type:
  • Object
Properties:
Name Type Description
activityTypes Array.<Insights.ActivityTypeSummary>

an array of Insights.ActivityTypeCount items

total number

The total number of activities

Source:
  • WixClient.js

ActivityTypeSummary

Summary information for an activity type performed on a site

Type:
  • Object
Properties:
Name Type Description
activityType string

the activity type

total number

The total number of activities of the given type

Source:
  • WixClient.js