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

Commit

Permalink
Merge branch 'master' of github.com:MatteoGabriele/vue-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGabriele committed Dec 16, 2017
2 parents 8fddca1 + 61c074d commit af161dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/page-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const router = new VueRouter({
important: the route pageviewTemplate has always priority over the global one.


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

```js
Expand Down
1 change: 1 addition & 0 deletions docs/v-ga.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Vue.use(VueAnalytics, {
}
})
```
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)__

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

Expand Down

0 comments on commit af161dd

Please sign in to comment.