diff --git a/src/components/library/library.jsx b/src/components/library/library.jsx
index 2da09f2720deed4e72e02943665175af3cdbe46b..9d63fc3bfad63cab11cf3f8df27bec40d7f9c13e 100644
--- a/src/components/library/library.jsx
+++ b/src/components/library/library.jsx
@@ -62,12 +62,8 @@ class LibraryComponent extends React.Component {
         this.props.onItemSelected(this.getFilteredData()[id]);
     }
     handleClose () {
-        analytics.event({
-            category: 'library',
-            action: `${this.props.id}: close with search`,
-            label: this.state.filterQuery || '(empty)'
-        });
         this.props.onRequestClose();
+        analytics.pageview(`/${this.props.id}/search?q=${this.state.filterQuery}`);
     }
     handleTagClick (tag) {
         this.setState({