yarn nuxt 0.8.1
v0.8.1

latest releases: 3.13.2, 3.13.1, 3.13.0...
7 years ago

Feature

  • Add routeChanged event for $nuxt, you can use it like this in your plugins:
if (process.BROWSER_BUILD) {
  // set google-analytics script here...
  // and then:
  window.onNuxtReady((app) => {
    app.$nuxt.$on('routeChanged', (to, from) => {
      ga('set', 'page', to.fullPath)
      ga('send', 'pageview')
    })
  })
}

Don't miss a new nuxt release

NewReleases is sending notifications on new releases.