Refactor piwik startup
This commit is contained in:
parent
38b4769806
commit
48dab4bb0d
1 changed files with 7 additions and 8 deletions
|
|
@ -1,8 +1,7 @@
|
|||
Meteor.startup(function() {
|
||||
return Tracker.autorun(function() {
|
||||
var userId;
|
||||
userId = Meteor.userId();
|
||||
// console.log(userId);
|
||||
Meteor.Piwik.setUserInfo(userId);
|
||||
});
|
||||
});
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Tracker } from 'meteor/tracker';
|
||||
|
||||
Meteor.startup(() => Tracker.autorun(() => {
|
||||
const userId = Meteor.userId();
|
||||
Meteor.Piwik.setUserInfo(userId);
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue