Skip to content
Snippets Groups Projects
Unverified Commit 4f6abfe2 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #2703 from paulkaplan/use-query-searh

Use pageview with query param for tracking search usage
parents 3f9c314c 608ff599
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