I am trying to receive the info, if a checkbox (class=sc-form-checkbox) on the website has been checked or not via Google Tag Manager (see attached Screenshot).
Checkbox
Therefore I have used the following Java Script function:
function() { var checkbox = document.getElementById("sc-form-checkbox-span"); return checkbox.checked || false; }
However, I only receive the value false. What could be the error?