This is Metrix sample js integration project bootstrapped with create-next-app
.
First, update .env
file to match your application configs
NEXT_PUBLIC_METRIX_APP_ID=
NEXT_PUBLIC_METRIX_API_KEY=
NEXT_PUBLIC_METRIX_EVENT_SLUG=
NEXT_PUBLIC_PUSH_PUBLIC_KEY=
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the home page.
Implementation details: metrix/metrix-sample.tsx
- Web SDK Documentation - learn about Metrix Web SDK.