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 scopestring 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
- Source:
- WixClient.js
Properties:
Name Type Description activityTypesArray.<Insights.ActivityTypeSummary> an array of
Insights.ActivityTypeCountitemstotalnumber The total number of activities
-
ActivityTypeSummary
-
Summary information for an activity type performed on a site
Type:
- Object
- Source:
- WixClient.js
Properties:
Name Type Description activityTypestring the activity type
totalnumber The total number of activities of the given type