Report event for viewing widget/visualization/query

This commit is contained in:
Arik Fraimovich 2014-04-22 16:35:40 +03:00
parent 4b6b1984aa
commit c49fbe1ac2

View File

@ -69,6 +69,9 @@
};
// TODO: fire event for query view for each query
Events.record(currentUser, "view", "widget", $scope.widget.id);
Events.record(currentUser, "view", "query", $scope.widget.visualization.query.id);
Events.record(currentUser, "view", "visualization", $scope.widget.visualization.id);
$scope.query = new Query($scope.widget.visualization.query);
$scope.queryResult = $scope.query.getQueryResult();