Running custom code when some kind of event occurs
setUserData
and triggerAction
, and extra context about what triggered the Action.
Create a custom code Action
+ Add New Action
.Add
.Write your custom code
output()
function.output()
is the User Data, and the other arguments
are described here.window.location
, document
, and localStorage
.
This can have useful benefits, such as:
localStorage
window.logInToApp()
.