Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit aa0edda

Browse files
author
Matteo Gabriele
committed
Merge branch 'master' of github.com:MatteoGabriele/vue-analytics
2 parents 711645c + 8f2e26e commit aa0edda

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

docs/page-tracking.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,17 @@ Vue.use(VueAnalytics, {
114114
})
115115
```
116116

117-
##
117+
## Avoid trasnforming route params into querystring
118+
It is possible to avoid route params to be sent as querystring using the `transformRouteParams` property
119+
120+
```js
121+
Vue.use(VueAnalytics, {
122+
router,
123+
autoTracking: {
124+
transformRouteParams: false
125+
}
126+
})
127+
```
118128

119129

120130

docs/set.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,17 @@ also possible to pass an object literal
1212
this.$ga.set({ fieldName, fieldName })
1313
```
1414

15+
### Set multiple fields before first hit
16+
Adding the `set` property to the configuration object, we can set multiple fields automatically before the first hit
1517

18+
```js
19+
import Vue from 'vue'
20+
import VueAnalytics from 'vue-analytics'
1621

22+
Vue.use(VueAnalytics, {
23+
id: 'UA-XXX-X',
24+
set: [
25+
{ field: 'fieldname', value: 'fieldvalue' }
26+
]
27+
})
28+
```

0 commit comments

Comments
 (0)