This repository was archived by the owner on Dec 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change
1
+ const { withPlausibleProxy } = require ( 'next-plausible' ) ;
1
2
const { i18n } = require ( './next-i18next.config' ) ;
2
3
3
- module . exports = {
4
+ module . exports = withPlausibleProxy ( {
4
5
i18n,
5
- } ;
6
+ } ) ;
Original file line number Diff line number Diff line change 20
20
"jest" : " ^27.2.0" ,
21
21
"next" : " ^11.1.2" ,
22
22
"next-i18next" : " ^8.8.0" ,
23
+ "next-plausible" : " ^3.1.4" ,
23
24
"react" : " ^17.0.2" ,
24
25
"react-confetti" : " ^6.0.1" ,
25
26
"react-dom" : " ^17.0.2" ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { AppProps } from 'next/app';
9
9
10
10
import { DEVELOPER_DAO_WEBSITE } from '../utils/DeveloperDaoConstants' ;
11
11
import { theme } from '../theme' ;
12
+ import PlausibleProvider from 'next-plausible' ;
12
13
13
14
const socialBanner = `${ DEVELOPER_DAO_WEBSITE } /social-banner.png` ;
14
15
@@ -134,9 +135,11 @@ user's mobile device or desktop. See https://developers.google.com/web/fundament
134
135
const App = ( { Component, pageProps } : AppProps ) => (
135
136
< >
136
137
< SEO />
137
- < ChakraProvider theme = { theme } >
138
- < Component { ...pageProps } />
139
- </ ChakraProvider >
138
+ < PlausibleProvider domain = "developerdao.com" >
139
+ < ChakraProvider theme = { theme } >
140
+ < Component { ...pageProps } />
141
+ </ ChakraProvider >
142
+ </ PlausibleProvider >
140
143
</ >
141
144
) ;
142
145
Original file line number Diff line number Diff line change @@ -7494,6 +7494,11 @@ next-i18next@^8.8.0:
7494
7494
i18next-fs-backend "^1.0.7"
7495
7495
react-i18next "^11.8.13"
7496
7496
7497
+ next-plausible@^3.1.4 :
7498
+ version "3.1.4"
7499
+ resolved "https://registry.yarnpkg.com/next-plausible/-/next-plausible-3.1.4.tgz#a386ff4e2327995cb4a1307e53e1b4af70817b52"
7500
+ integrity sha512-NMLKJ0AKlKuvYU//RytyqSES5NtLRoH/ym3fCC02w2Ed1SrTgNRUrgpxyJrcguY/DYGPncQ3a0/nQ358vUTAwQ==
7501
+
7497
7502
next-tick@~1.0.0 :
7498
7503
version "1.0.0"
7499
7504
resolved "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz"
You can’t perform that action at this time.
0 commit comments