Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 26137a3

Browse files
authored
Add Plausible Analytics (#516)
* add plausible analytics * edit location for older version of next
1 parent a70ad4d commit 26137a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pages/_app.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ const AppWrapper: FunctionComponent<Props> = ({ children }) => {
2424
const App: FunctionComponent<AppProps> = ({ Component, pageProps }) => (
2525
<>
2626
<AppWrapper>
27+
<Script
28+
defer={true}
29+
data-domain="learn.sourcegraph.com"
30+
src="https://plausible.io/js/plausible.js"
31+
strategy="lazyOnload"
32+
/>
2733
<GoogleTagManagerScriptTag />
2834
<Script id='Swiftype' strategy='lazyOnload'>
2935
{`

0 commit comments

Comments
 (0)