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

Commit ed61991

Browse files
docs: update documentation
1 parent 7f5bbcf commit ed61991

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/opt-out.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,23 @@ Vue.use(VueAnalytics, {
4040
return Promise.resolve(true)
4141
}
4242
})
43+
```
44+
45+
It is also possible to disable tracking from everywhere at any time using the `disable` method.
46+
47+
```js
48+
export default {
49+
methods: {
50+
disableTracking () {
51+
this.$ga.disable(true)
52+
// from now on analytics is disabled!
53+
}
54+
}
55+
}
56+
```
57+
58+
or
59+
60+
```js
61+
Vue.$ga.disable(true)
4362
```

0 commit comments

Comments
 (0)