瀏覽代碼

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()));