Commit 119b67e8 authored by Sam Figueroa's avatar Sam Figueroa

Re-remove advice on using double nested hashes

- 0a5e6e68 reintroduced documentation
  that suggests using a double nested hash to add data tracking attributes. 
  Using this method has led to bugs in the tracking not working properly 
  refs: https://gitlab.com/gitlab-data/product-analytics/-/issues/158#note_861165025
  Hence I am removing this again to avoid future bugs. 
parent 6e12bef5
...@@ -47,10 +47,7 @@ To implement tracking for HAML or Vue templates, add a [`data-track` attribute]( ...@@ -47,10 +47,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" } }
// or
// %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