diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index a91ccc119c..80b58cb003 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee @@ -301,8 +301,7 @@ define [ onChange = () -> updateCount++ - projectId = _.last(location.pathname.split("/")) - event_tracking.editingSessionHeartbeat(projectId) + event_tracking.editingSessionHeartbeat() if updateCount == 100 event_tracking.send 'editor-interaction', 'multi-doc-update' diff --git a/services/web/public/coffee/main/event.coffee b/services/web/public/coffee/main/event.coffee index b1abf6c674..87b50e49d4 100644 --- a/services/web/public/coffee/main/event.coffee +++ b/services/web/public/coffee/main/event.coffee @@ -35,9 +35,9 @@ define [ send: (category, action, label, value)-> ga('send', 'event', category, action, label, value) - editingSessionHeartbeat: _.throttle( (projectId, segmentation = {}) -> + editingSessionHeartbeat: _.throttle( (segmentation = {}) -> $http({ - url: "/editingSession/#{projectId}", + url: "/editingSession/#{window.project_id}", method: "PUT", data: segmentation, headers: {