Commit 164ed8db authored by Mike Jang's avatar Mike Jang

Merge branch 'doc-fix-tracking-development' into 'master'

Correct tracking snippets on HAML

See merge request gitlab-org/gitlab!30357
parents d9de26e4 90c060bd
...@@ -17,7 +17,7 @@ When working within HAML (or Vue templates) we can add `data-track-*` attributes ...@@ -17,7 +17,7 @@ When working within HAML (or Vue templates) we can add `data-track-*` attributes
Below is an example of `data-track-*` attributes assigned to a button: Below is an example of `data-track-*` attributes assigned to a button:
```haml ```haml
%button.btn{ data: { track: { event: "click_button", label: "template_preview", property: "my-template" } } } %button.btn{ data: { track_event: "click_button", track_label: "template_preview", track_property: "my-template" } }
``` ```
```html ```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