Actions
Code Actions
Actions can also be set in the code base. You can fire an action using formbricks.track()
formbricks.track("Action Name");
Here is an example of how to fire an action when a user clicks a button:
const handleClick = () => {
formbricks.track("Button Clicked");
};
return <button onClick={handleClick}>Click Me</button>;