This is Metrix pure html/js sdk sample implementation.
First, update index.html
file to match your application configs
const APP_ID = "<<enter your metrix app id here>>"
const API_KEY = "<<enter your metrix api key here>>"
const PUSH_PUBLIC_KEY = "<<enter your push public key here>>"
const SAMPLE_EVENT_SLUG = "<<enter your metrix event slug here>>"
Then, run the development server:
npm i
npm start
Open http://localhost:3000 with your browser to see the sample page.
- Web SDK Documentation - learn about Metrix Web SDK.