Track Checkbox State
Remember the state of a checkbox as the user changes pages
Overview
Implementing
<script>
// Handle checkbox tracking
// both checked and unchecked events
$("input[type='checkbox'][wfu-bind-tracked]").change(function() {
const label = $(this).attr("wfu-bind-tracked");
if(this.checked)
window.tracker.track(label);
else
window.tracker.untrack(label);
updateTracked();
});
</script>Last updated