Skip to content
Snippets Groups Projects
Unverified Commit 72ea6bdf authored by Bradley Hilton's avatar Bradley Hilton
Browse files

Add the owner param to the piwik trackEvents

parent 2229514e
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ RocketChat.createRoom = function(type, name, owner, members, readOnly, extraData
if (type === 'c') {
Meteor.defer(() => {
RocketChat.callbacks.run('afterCreateChannel', room);
RocketChat.callbacks.run('afterCreateChannel', owner, room);
});
}
......
......@@ -26,7 +26,7 @@ RocketChat.callbacks.add('afterSaveMessage', (message) => {
}, 2000, 'trackEvents');
//Rooms
RocketChat.callbacks.add('afterCreateChannel', (room) => {
RocketChat.callbacks.add('afterCreateChannel', (owner, room) => {
if (window._paq && RocketChat.settings.get('PiwikAnalytics_features_rooms')) {
window._paq.push(['trackEvent', 'Room', 'Create', room.name + ' (' + room._id + ')' ]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment