Track Clicks Only Once on a Checkbox
First, as usual, sorry if this answer exists but I searched and couldn't quite find the answer for which I am looking. I'm trying to track an action on an input checkbox only once, that is if I have a list of checkboxes I want to only track if user clicked on it once, so even if they deselect a chackbox they've checked only the first click is tracked. I know there's a way to check if a checkbox has been clicked in JS via "querySelector().input" type call, but I'm lost as to how to bring that full circle to only have tracking event fire only once regardless of how many times the user toggles it. Consider the following mark-up:
<li class="js-form-item form-item form-item__item form-item--checkbox__item">
<span class="checkbox">
<input view_id="explore" display_id="explore_main" data-drupal-selector="edit-category-title-app" type="checkbox" id="edit-category-title-app" name="category[title_app]" value="title_app" class="form-checkbox form-item__textfield">
<label for="edit-category-title-app" class="checkbox__label">
<span class="checkbox__faux"></span><span class="form-item__label">App</span>
</label>
</span>
</li>
Message was edited by: Leo Shvedsky