Target "trackEvent()" equivalent for Alloy?
Greetings!
I'm currently testing the Web SDK (Alloy) to handle everything related to Target.
Most of my activities are written form based and currently I'm struggling to find something similar to the old school "adobe.target.trackEvent()" function to count e.g. simple clicks of a button.
Normally I would write something like this:
adobe.target.trackEvent({
"mbox": "click-mbox"
});
How would i write the same via Alloy?
I found this in the documentation (https://experienceleague.adobe.com/docs/experience-platform/edge/personalization/adobe-target/web-sdk-atjs-comparison.html%3Flang%3Dit#how-to-track-events), but to be honest I don't really get it.
I understand that we are now using
alloy("sendEvent", {
…
});
but i couldn't figure out where to pass the "click-mbox" value.
Am I missing something? Thank you in advance! 🙂