# Preact analytics example [Demo link](https://analytics-preact-example.netlify.app/) See `/src/analytics.js` for analytics setup. Page views are tracked with `analytics.page` via `preact-router` ## CLI Commands ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # test the production build locally npm run serve ```