Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Commit af161dd

Browse files
Merge branch 'master' of github.com:MatteoGabriele/vue-analytics
2 parents 8fddca1 + 61c074d commit af161dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/page-tracking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const router = new VueRouter({
146146
important: the route pageviewTemplate has always priority over the global one.
147147

148148

149-
## Avoid trasnforming route query object into querystring
149+
## Avoid transforming route query object into querystring
150150
It is possible to avoid route query to be sent as querystring using the `transformQueryString` property
151151

152152
```js

docs/v-ga.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Vue.use(VueAnalytics, {
4141
}
4242
})
4343
```
44+
lets take in mind that every function we write in the `commands` object is also binded to the current component scope, so that we have access to the Vue instance prototype object and eventually to methods, data and computed values of the component itself __(I raccomand to not use any component specific properties to avoid the method to be coupled to a specific component structure)__
4445

4546
then we only need to add the `v-ga` directive to your element and access the method from the `commands` list that now is shared in the `$ga` object
4647

0 commit comments

Comments
 (0)