Skip to main content

Activity history

Shake tracks user's interaction with your app, their network traffic, logs and system events, and automatically attaches all of those to the ticket.

Setup

Shake activity history feature is enabled by default once you start Shake in your app. You have flexibility to disable specific data type from the activity history as needed.

Here's a list of data that is collected in the activity history.

User actions

Shake automatically monitors taps made on your app's UI elements, providing insights into user interactions within your application.

You can enable or disable user actions data like shown below:

index.js
Shake.report.isUserActionsEnabled = true;

Network traffic

Shake automatically tracks network requests sent from your app, along with detailed information such as request body and headers, response body and headers, method, status code, duration and timestamp

You can enable or disable network traffic data like shown below:

index.js
Shake.report.isNetworkRequestsEnabled = true;

System events

Shake automatically tracks system events, you can see when user navigated away and returned to your app by changing the browser tab.

You can enable or disable system events data like shown below:

index.js
Shake.report.isSystemEventsEnabled = true;

Screen changes

Screen automatically tracks url changes which helps with understanding how user navigated through the app.

You can enable or disable screen changes data like shown below:

index.js
Shake.report.isScreenChangesEnabled = true;
note

Shake capture URL changes, if your app is a single page app than we recommend using custom logs for tracking screen changes.

Custom logs

You can manually add custom logs to the activity history to capture important events:

index.js
Shake.log(LogLevel.DEBUG, 'Hello world');

You can enable or disable custom logs data like shown below:

index.js
Shake.report.isCustomLogsEnabled = true;

Console logs

Shake automatically tracks console logs, providing additional information useful for debugging and understanding application states.

You can enable or disable console logs data like shown below:

index.js
Shake.report.isConsoleLogsEnabled = true;

Disable

If you don't want to send activity history data with the reports, you can disable it like shown below:

index.js
Shake.report.enableActivityHistory(false);