Skip to content
Snippets Groups Projects
Unverified Commit 18901b3b authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add Nextcloud upload/download event tracking

parent f13d7e9c
Branches
No related tags found
No related merge requests found
Pipeline #30685 passed
......@@ -441,6 +441,12 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
const event = new CustomEvent("dbp-nextcloud-file-picker-number-files",
{ "detail": data, bubbles: true, composed: true });
this.dispatchEvent(event);
if (files.length > 0) {
this.sendSetPropertyEvent(
'analytics-event',
{category: 'FileHandlingNextcloud', action: 'DownloadFiles', name: files.length});
}
}
/**
......@@ -509,6 +515,12 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
this.forAll = false;
this.setRepeatForAllConflicts();
this.uploadFile(directory);
if (files.length > 0) {
this.sendSetPropertyEvent(
'analytics-event',
{category: 'FileHandlingNextcloud', action: 'UploadFiles', name: files.length});
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment