Commit beff0dfd authored by Alper Akgun's avatar Alper Akgun Committed by Fiona Neill

Update Vue tracking mixing docs

parent a538eac7
...@@ -102,14 +102,12 @@ track_action: "click_button" }) ...@@ -102,14 +102,12 @@ track_action: "click_button" })
### Implement Vue component tracking ### Implement Vue component tracking
For custom event tracking, use a Vue `mixin` in components. Vue `mixin` exposes the `Tracking.event` For custom event tracking, use a Vue `mixin` in components. Vue `mixin` exposes the `Tracking.event`
static method and the `track` method called from components or templates. You can specify tracking static method and the `track` method. You can specify tracking options in `data` or `computed`.
options in `data` or `computed`. These options override any defaults and allow the values to be dynamic These options override any defaults and allow the values to be dynamic from props or based on state.
from props or based on state.
Default options are passed when an event is tracked from the component. If you don't specify an option, Several default options are passed when an event is tracked from the component:
the default `document.body.dataset.page` is used. The default options are:
- `category` - `category`: If you don't specify, by default `document.body.dataset.page` is used.
- `label` - `label`
- `property` - `property`
- `value` - `value`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment