You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
All ecommerce features are built-in in the plugin, so there's no need to require any ecommerce libraries: just enable the ecommerce features from the plugin configuration
4
+
5
+
```js
6
+
importVuefrom'vue'
7
+
importVueAnalyticsfrom'vue-analytics'
8
+
9
+
Vue.use(VueAnalytics, {
10
+
id:'UA-XXX-X',
11
+
ecommerce: {
12
+
enabled:true
13
+
}
14
+
})
15
+
```
16
+
17
+
It is also possible to use the Enhanced Ecommerce library just by change it the configuration like so
18
+
19
+
```js
20
+
Vue.use(VueAnalytics, {
21
+
id:'UA-XXX-X',
22
+
ecommerce: {
23
+
enabled:true,
24
+
enhanced:true
25
+
}
26
+
})
27
+
```
28
+
29
+
Finally it's possible to pass addition option during the installation of the library
30
+
31
+
```js
32
+
Vue.use(VueAnalytics, {
33
+
id:'UA-XXX-X',
34
+
ecommerce: {
35
+
enabled:true,
36
+
options: { ... }
37
+
}
38
+
})
39
+
```
40
+
41
+
All the available features are documented in Google Analytics dev guide
0 commit comments