File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 47
47
},
48
48
"homepage" : " https://github.com/ProvableHQ/sdk#readme" ,
49
49
"dependencies" : {
50
- "@provablehq/wasm" : " ^0.8.8 " ,
50
+ "@provablehq/wasm" : " ^0.9.0 " ,
51
51
"comlink" : " ^4.4.2" ,
52
52
"core-js" : " ^3.40.0" ,
53
53
"mime" : " ^4.0.6" ,
Original file line number Diff line number Diff line change 14
14
"deploy" : " gh-pages -d dist"
15
15
},
16
16
"dependencies" : {
17
+ "@amplitude/analytics-browser" : " ^2.16.1" ,
17
18
"@ant-design/icons" : " ^5.6.0" ,
18
19
"@codemirror/language" : " ^6.10.8" ,
19
20
"@codemirror/legacy-modes" : " ^6.4.2" ,
20
21
"@codemirror/stream-parser" : " ^0.19.9" ,
21
- "@provablehq/sdk" : " ^0.8.8 " ,
22
+ "@provablehq/sdk" : " ^0.9.0 " ,
22
23
"@uiw/codemirror-theme-noctis-lilac" : " ^4.23.7" ,
23
24
"@uiw/codemirror-theme-okaidia" : " ^4.23.7" ,
24
25
"@uiw/react-codemirror" : " ^4.23.7" ,
Original file line number Diff line number Diff line change @@ -4,6 +4,26 @@ import { createRoot } from "react-dom/client";
4
4
import { RouterProvider } from "react-router-dom" ;
5
5
import { router } from "./routing.jsx" ;
6
6
import WorkerProvider from "./workers/WorkerProvider.jsx" ;
7
+ import { init } from '@amplitude/analytics-browser' ;
8
+ import { autocapturePlugin } from '@amplitude/plugin-autocapture-browser' ;
9
+
10
+ // Initialize Amplitude with your API key
11
+ const AMPLITUDE_API_KEY = import . meta. env . VITE_AMPLITUDE_API_KEY ;
12
+
13
+ if ( AMPLITUDE_API_KEY ) {
14
+ init ( AMPLITUDE_API_KEY , {
15
+ serverZone : "US" ,
16
+ defaultTracking : {
17
+ sessions : true ,
18
+ pageViews : true ,
19
+ formInteractions : true ,
20
+ fileDownloads : true ,
21
+ } ,
22
+ plugins : [
23
+ autocapturePlugin ( )
24
+ ]
25
+ } ) ;
26
+ }
7
27
8
28
const container = document . getElementById ( "root" ) ;
9
29
const root = createRoot ( container ) ;
@@ -32,4 +52,4 @@ const reportWebVitals = (onPerfEntry) => {
32
52
// If you want to start measuring performance in your app, pass a function
33
53
// to log results (for example: reportWebVitals(console.log))
34
54
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
35
- reportWebVitals ( ) ;
55
+ reportWebVitals ( ) ;
You can’t perform that action at this time.
0 commit comments