eliminate mixpanel references
This commit is contained in:
@@ -87,11 +87,11 @@
|
||||
$(window).trigger("danbooru:error", msg);
|
||||
}
|
||||
window._paq = window._paq || [];
|
||||
<% if CurrentUser.is_member? && !CurrentUser.opt_out_mixpanel? %>
|
||||
<% if CurrentUser.is_member? && !CurrentUser.opt_out_tracking? %>
|
||||
window._paq.push(["setUserId", '<%= CurrentUser.id %>']);
|
||||
<% end %>
|
||||
window._paq.push(["setDomains", "*.donmai.us"]);
|
||||
<% if !CurrentUser.opt_out_mixpanel? %>
|
||||
<% if !CurrentUser.opt_out_tracking? %>
|
||||
window._paq.push(["setCustomVariable", 1, "level", <%= CurrentUser.level %>, "visit"]);
|
||||
window._paq.push(["setCustomVariable", 2, "age", <%= ((Time.now - CurrentUser.created_at) / 1.year).to_i %>, "visit"]);
|
||||
window._paq.push(["setCustomVariable", 3, "postUpdateCount", <%= CurrentUser.post_update_count.to_i / 100 %>, "visit"]);
|
||||
|
||||
Reference in New Issue
Block a user