add referer prop

This commit is contained in:
Albert Yi
2018-10-22 17:21:26 -07:00
parent 1b9e3d687d
commit 11e75aec2a
2 changed files with 4 additions and 2 deletions

View File

@@ -82,7 +82,8 @@
$(function() {
window.Danbooru.mixpanelEvent("Post Search", {
"tags": <%= params[:tags].to_json %>,
"page": <%= params[:page].to_json %>
"page": <%= params[:page].to_json %>,
"referer": <%= request.referer.to_json %>
});
});
</script>