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

Commit

Permalink
docs: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGabriele committed May 19, 2018
1 parent 7f5bbcf commit ed61991
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/opt-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,23 @@ Vue.use(VueAnalytics, {
return Promise.resolve(true)
}
})
```

It is also possible to disable tracking from everywhere at any time using the `disable` method.

```js
export default {
methods: {
disableTracking () {
this.$ga.disable(true)
// from now on analytics is disabled!
}
}
}
```

or

```js
Vue.$ga.disable(true)
```

0 comments on commit ed61991

Please sign in to comment.