2020-05-28 05:08:05 -04:00
|
|
|
import Tracking from '~/tracking';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The value of 1 in count, means there was one action performed
|
|
|
|
* related to the tracked action, in either of the following categories
|
|
|
|
* 1. Refreshing the logs
|
|
|
|
* 2. Select an environment
|
|
|
|
* 3. Change the time range
|
|
|
|
* 4. Use the search bar
|
|
|
|
*/
|
2020-12-23 16:10:24 -05:00
|
|
|
const trackLogs = (label) =>
|
2020-05-28 05:08:05 -04:00
|
|
|
Tracking.event(document.body.dataset.page, 'logs_view', {
|
|
|
|
label,
|
|
|
|
property: 'count',
|
|
|
|
value: 1,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default trackLogs;
|