소스 검색

HUE-3489 [editor] Improve result download format stats

Romain Rigaux 9 년 전
부모
커밋
063bf76ae1
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      desktop/core/src/desktop/templates/ko_components.mako

+ 4 - 0
desktop/core/src/desktop/templates/ko_components.mako

@@ -643,6 +643,10 @@ from desktop.views import _ko
       };
 
       DownloadResultsViewModel.prototype.download = function (format) {
+        if (typeof trackOnGA == 'function') {
+          trackOnGA('notebook/download/' + format);
+        }
+
         var self = this;
         self.$downloadForm.find('input[name=\'format\']').val(format);
         self.$downloadForm.find('input[name=\'notebook\']').val(ko.mapping.toJSON(self.notebook.getContext()));