A Vue.js project
# install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report
To integrate with Pyze, do the following steps:
- Add the tracking snippet in the index.js file or the file where the routes are defined.
- Replace "YOUR_PYZE_APP_KEY" with the key obtained from your growth.pyze.com account for this app.
- Call the Pyze.postPageView method within the afterEach method of your router instance. (See router -> index.js)
- Call events in any of your component's .Vue file. (See components -> Hello.Vue)