mixpanel fixes

This commit is contained in:
Albert Yi
2018-10-22 16:54:38 -07:00
parent ae4e40aa76
commit b999fc86ea
5 changed files with 35 additions and 23 deletions

View File

@@ -20,3 +20,13 @@
<% content_for(:page_title) do %>
Feedback - <%= @user_feedback.user_name %> - <%= Danbooru.config.app_name %>
<% end %>
<% if flash[:alias_mixpanel] %>
<% content_for(:html_header) do %>
<script>
$(function() {
window.Danbooru.mixpanelAlias("<%= CurrentUser.id %>");
});
</script>
<% end %>
<% end %>