Track Events
2 min
you can log custom events to help trigger specific campaigns or segment users based on their behavior to track a basic event appstorys trackevent('eventname') if you want to include additional information along with the event, you can attach metadata like this appstorys trackevent('event', { "key" "value" }) this additional data can be useful for fine tuning campaign targeting or analysis important back press campaigns if you want to trigger campaigns on back navigation trigger, you must call handlebackpress() correctly, for example const handleback = async () => { appstorys trackevent('back button pressed'); appstorys handlebackpress(() => { navigation goback(); }); }; for backend events syncing, please use the backend event webhook docid\ aywnkr7otzfodxdlm8s g guide in the docs