Skip to content

Instantly share code, notes, and snippets.

@UsabillaSuccess
Last active July 19, 2017 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UsabillaSuccess/1f51c6c3ef6c37b72dd06d95439b9dcb to your computer and use it in GitHub Desktop.
Save UsabillaSuccess/1f51c6c3ef6c37b72dd06d95439b9dcb to your computer and use it in GitHub Desktop.
usbl-virtpageview-vuejs
import router from './router';
router.afterEach((to, from) => {
// do your stuff
window.usabilla_live('virtualPageView');
});
new Vue({
el: '#app',
router,
template: '<App/>',
components: { App }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment