File tree 3 files changed +3043
-3364
lines changed
3 files changed +3043
-3364
lines changed Original file line number Diff line number Diff line change 12
12
"@every-analytics/react-analytics-provider" : " file:../.." ,
13
13
"@types/react" : " file:../../node_modules/react" ,
14
14
"@types/react-dom" : " file:../../node_modules/react-dom" ,
15
- "amplitude-js" : " ^8.5.0" ,
16
15
"next" : " 11.1.0" ,
17
16
"react" : " file:../../node_modules/react" ,
18
17
"react-dom" : " file:../../node_modules/react-dom"
Original file line number Diff line number Diff line change 1
1
import { NextPage } from 'next' ;
2
2
import { useRouter } from 'next/dist/client/router' ;
3
+ import { AnalyticsClick } from '../../../../../build' ;
3
4
import styles from './index.module.css' ;
4
5
5
6
const ColorPage : NextPage = ( ) => {
@@ -10,9 +11,11 @@ const ColorPage: NextPage = () => {
10
11
< >
11
12
< h1 > { color } fruites</ h1 >
12
13
< ul className = { styles . container } >
13
- { getProductsByColor ( color ) . map ( _color => (
14
- < li key = { _color } > { _color } </ li >
15
- ) ) }
14
+ { getProductsByColor ( color ) . map ( _color => {
15
+ < AnalyticsClick key = { _color } name = "color" params = { { _color} } >
16
+ < li key = { _color } > { _color } </ li >
17
+ </ AnalyticsClick > ;
18
+ } ) }
16
19
</ ul >
17
20
</ >
18
21
) ;
You can’t perform that action at this time.
0 commit comments