Skip to content
Snippets Groups Projects
Commit 608ff599 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Use pageview with query param for tracking search usage

This replaces the event-based search analytics because that method does not allow us to get the advantages of more search-specific analytics.
parent 777b68f3
No related branches found
No related tags found
No related merge requests found
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment