remove index/show mixpanel events

This commit is contained in:
Albert Yi
2018-10-23 11:02:30 -07:00
parent 9ce419b692
commit 261cc8d993
2 changed files with 0 additions and 18 deletions

View File

@@ -78,11 +78,4 @@
<% end %>
<%= missed_post_search_count_js %>
<%= render "posts/partials/index/seo_meta_tags" %>
<script>
$(function() {
window.Danbooru.mixpanelEvent("Post Search", {
"page": <%= raw params[:page].to_json %>,
});
});
</script>
<% end %>

View File

@@ -192,17 +192,6 @@
<%= tag.meta name: "og:site", content: Danbooru.config.app_name %>
<%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %>
<script>
$(function() {
window.Danbooru.mixpanelEvent("Post View", {
"rating": '<%= @post.rating %>',
"size": <%= @post.file_size %>,
"fav_count": <%= @post.fav_count %>,
"created_at": <%= raw @post.created_at.strftime('%F %T').to_json %>
});
});
</script>
<% end %>
<%= render "posts/partials/common/secondary_links" %>