How to find out if a toggle was clicked ON or OFF?

New

I have several toggles that I’d like to know when they get turn on or off. I created a new element attribute since the <input> has an aria-checked which is false or true depending the interaction. I’m thinking I should be able to find out if the toggle on a specific area returns true or false….am I right in doing something like this?

I’m not 100% sure about the rules….

 

0

Comments

1 comment

  • Hey @DataSeed99! Lookin’ good. Once your attribute is created, you should be able to run a search like this one to find sessions where the toggle is on or off.


    If that’s not generating any results, you might want to double check your attribute setup and make sure everything is configured correctly. It’s tough to confirm without visibility into your specific code and setup. 

    One other thought for anyone following along–you could also accomplish this using the FS.event API by sending a “Toggle Clicked” event with a “Toggle Status” property for true/false. In that scenario, your search criteria would look something like this: 

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post