mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Add old tracking for now
This commit is contained in:
parent
ed4f39990e
commit
b2d1acdc1e
@ -328,6 +328,15 @@ function plugin(options, imports, register) {
|
||||
|
||||
if (new Date(user.lastVfsAccess).getDate() != new Date().getDate() ||
|
||||
Date.now() > user.lastVfsAccess + VFS_ACTIVITY_WINDOW) {
|
||||
|
||||
// Keeping this temporarily to be replaced by API request only
|
||||
async.series([
|
||||
analytics.aliasClean.bind(analytics, req.cookies.mixpanelAnonymousId, user.id),
|
||||
analytics.identifyClean.bind(analytics, user, {}),
|
||||
analytics.trackClean.bind(analytics, user, "VFS is active", { uid: user.id }),
|
||||
], function(err) {
|
||||
if (err) return console.log("Error logging activity", err.stack || err);
|
||||
});
|
||||
|
||||
superagent
|
||||
.post(options.apiBaseUrl + "/metric/usage/" + req.params.pid + "?access_token=" + req.query.access_token)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user