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 4747 },
4848 "homepage" : " https://github.com/ProvableHQ/sdk#readme" ,
4949 "dependencies" : {
50- "@provablehq/wasm" : " ^0.8.8 " ,
50+ "@provablehq/wasm" : " ^0.9.0 " ,
5151 "comlink" : " ^4.4.2" ,
5252 "core-js" : " ^3.40.0" ,
5353 "mime" : " ^4.0.6" ,
Original file line number Diff line number Diff line change 1414 "deploy" : " gh-pages -d dist"
1515 },
1616 "dependencies" : {
17+ "@amplitude/analytics-browser" : " ^2.16.1" ,
1718 "@ant-design/icons" : " ^5.6.0" ,
1819 "@codemirror/language" : " ^6.10.8" ,
1920 "@codemirror/legacy-modes" : " ^6.4.2" ,
2021 "@codemirror/stream-parser" : " ^0.19.9" ,
21- "@provablehq/sdk" : " ^0.8.8 " ,
22+ "@provablehq/sdk" : " ^0.9.0 " ,
2223 "@uiw/codemirror-theme-noctis-lilac" : " ^4.23.7" ,
2324 "@uiw/codemirror-theme-okaidia" : " ^4.23.7" ,
2425 "@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";
44import { RouterProvider } from "react-router-dom" ;
55import { router } from "./routing.jsx" ;
66import 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+ }
727
828const container = document . getElementById ( "root" ) ;
929const root = createRoot ( container ) ;
@@ -32,4 +52,4 @@ const reportWebVitals = (onPerfEntry) => {
3252// If you want to start measuring performance in your app, pass a function
3353// to log results (for example: reportWebVitals(console.log))
3454// 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