Commit 3e333ba0 authored by Sam Figueroa's avatar Sam Figueroa

Update guidance on setting data attributes for tracking

- Using the nested hash for `track` doesn't consistently produce the results 
  in all cases as expected. 
parent ec586cc6
...@@ -41,7 +41,7 @@ To implement tracking for HAML or Vue templates, add a [`data-track` attribute]( ...@@ -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: The following example shows `data-track-*` attributes assigned to a button:
```haml ```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 ```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