Releases: MatteoGabriele/vue-analytics
v5.2.0
v5.1.1
v5.1.0
v5.0.1
5.0.0-beta.2
Features
- fields: this property add direct access to the options sent to create the trackers.
Vue.use(VueAnalytics, { id: 'UA-223232323', fields: { userId: '123456', name: 'my-tracker' } })
- untracked: the analytics script takes always a little bit more to load and sometimes you can fire an event before it's ready. Now all event fired before are stored and fired later on when google analytics is finally injected in the window object.
Breaking changes
-
user explorer: the
userId
is not longer editable in the root of the configuration object, because now is easy accessible within thefields
objectVue.use(VueAnalytics, { id: 'UA-223232323', fields: { userId: '123456' } })
-
onReady: the callback name in the plugin options is not more
onReady
but justready
-
onAnalyticsReady: since the untracked feature, mounting your app after analytics is ready is not longer needed, but you still can use it.
import { onAnalyticsReady } from 'vue-analytics' const App = new Vue({ ... }) onAnalyticsReady().then(() => { App.$mount('#app') })
the VueAnalytics instance doesn't have the
onScriptLoaded
method anymore
v4.0.0
New feature
- Now possible to use every plugin methods respecting Google Analytics api specifications
- Social interactions tracking
- Error exceptions tracking and auto tracking
- Possible to track page passing VueRouter instance
- Add
require
method
Breaking changes
-
Naming convention is changed
trackPage
is nowpage
trackEvent
is nowevent
trackTime
is nowtime
-
autoTracking now it's an object and let you enable or disbable
page
andexception
auto tracking
User guide
Added a user guide with links to every features
v3.0.0
New feature
Possibility to add multiple accounts to track at the same time
Vue.use(VueAnalytics, {
id: ['UA-XXX-X', 'UA-ZZZ-Z']
})
Breaking changes
No more manual script loading or manual auto tracking.
- The script is auto-injected when one or more ids are added to the configuration.
- Auto-tracking starts automatically when the VueRouter instance is passed.