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() {
|
import { Meteor } from 'meteor/meteor';
|
||||||
return Tracker.autorun(function() {
|
import { Tracker } from 'meteor/tracker';
|
||||||
var userId;
|
|
||||||
userId = Meteor.userId();
|
Meteor.startup(() => Tracker.autorun(() => {
|
||||||
// console.log(userId);
|
const userId = Meteor.userId();
|
||||||
Meteor.Piwik.setUserInfo(userId);
|
Meteor.Piwik.setUserInfo(userId);
|
||||||
});
|
}));
|
||||||
});
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue