add events for posts pages

This commit is contained in:
Albert Yi
2018-10-22 17:19:32 -07:00
parent 08e3051d31
commit 1b9e3d687d
5 changed files with 31 additions and 30 deletions

View File

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