Skip to content

Commit e1d620e

Browse files
committed
fix prettier even though this might get removed
1 parent 7258a00 commit e1d620e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/theme/NotFound/Content/index.tsx

+9-10
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,25 @@ import type {WrapperProps} from '@docusaurus/types';
66
type Props = WrapperProps<typeof ContentType>;
77

88
export default function ContentWrapper(props: Props): JSX.Element {
9-
109
useEffect(() => {
1110
if (typeof window !== 'undefined' && window?.gtag) {
1211
//normal page_view event
13-
gtag("event", "page_view", {
14-
page_title: "404 Not Found",
12+
gtag('event', 'page_view', {
13+
page_title: '404 Not Found',
1514
page_path: window.location.pathname,
16-
event_category: "Errors",
17-
event_label: "404"
15+
event_category: 'Errors',
16+
event_label: '404',
1817
});
1918

2019
//custom event that might be easier to work with
21-
window.gtag("event", "not_found", {
22-
page_title: "Page Not Found",
20+
window.gtag('event', 'not_found', {
21+
page_title: 'Page Not Found',
2322
page_path: window.location.pathname,
24-
event_category: "Errors",
25-
event_label: "404"
23+
event_category: 'Errors',
24+
event_label: '404',
2625
});
2726
}
28-
}, [])
27+
}, []);
2928
return (
3029
<>
3130
<Content {...props} />

0 commit comments

Comments
 (0)