Commit 8c38522a authored by Fiona Neill's avatar Fiona Neill

Merge branch 'sam.figueroa-master-patch-54435' into 'master'

Update guidance on setting data attributes for tracking

See merge request gitlab-org/gitlab!80363
parents 3edf062f 3e333ba0
......@@ -41,7 +41,7 @@ To implement tracking for HAML or Vue templates, add a [`data-track` attribute](
The following example shows `data-track-*` attributes assigned to a button:
```haml
%button.btn{ data: { track: { action: "click_button", label: "template_preview", property: "my-template" } } }
%button.btn{ data: { track_action: "click_button", track_label: "template_preview", track_property: "my-template" } }
```
```html
......
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