Sample vue.js app integrated with pyze
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
config
node_modules
src
static
README.md
index.html
package.json

README.md

vueapp

A Vue.js project

Build Setup

# 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

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

To integrate with Pyze, do the following steps:

  1. Add the tracking snippet in the index.js file or the file where the routes are defined.
  2. Replace "YOUR_PYZE_APP_KEY" with the key obtained from your growth.pyze.com account for this app.
  3. Call the Pyze.postPageView method within the afterEach method of your router instance. (See router -> index.js)
  4. Call events in any of your component's .Vue file. (See components -> Hello.Vue)