File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,15 @@ const [product, module] = Astro.url.pathname.split("/").filter(Boolean);
3737<Default ><slot /></Default >
3838
3939<script >
40+ import { track } from "~/util/zaraz"
4041 function initSidebarSearch() {
4142 const searchInput = document.getElementById('sidebar-search') as HTMLInputElement;
4243 const noResultsMessage = document.getElementById('sidebar-no-results') as HTMLElement;
4344 const globalSearchLink = document.getElementById('global-search-link') as HTMLButtonElement;
4445 const sidebarContent = document.querySelector('.sidebar-content');
4546
47+ track("use sidebar search", { query: searchInput });
48+
4649 if (!searchInput || !sidebarContent || !noResultsMessage || !globalSearchLink) return;
4750
4851 const originalState: Map<Element, boolean> = new Map();
You can’t perform that action at this time.
0 commit comments