To track whether an event is clicked or not

Asked 2 years ago, Updated 2 years ago, 40 views

We are conducting a survey, and we need to collect whether or not you clicked on a specific button included in the document.

I understand that Google event tracking can determine the total number of clicks. (ex. This button has been clicked 24 times in total) The information I need is not to know the total number of clicks, but whether one person has clicked more than one button in each document.

Also, if you want to respond to a survey without clicking, I want to display a warning pop-up to click the button. Below are the types of buttons currently applied.

Please answer me. Thank you.

<script>
    $(document).ready(function(){

        $("#comment").hide();
        $("#type1Btn").click(function(){

            $("#comment").slideToggle();
        });
    });

</script>

html jquery javascript

2022-09-22 19:58

1 Answers

Note: If possible, write this logic as a Closer function . Otherwise, the user can open the console to tamper with the clicked value and move on.


2022-09-22 19:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.