How to replicate the "adobe.target.trackEvent" for mobile?
I'm using "trackEvent" on the website to then read this value in "Profile Scripts" and use it for a frequent audience, and everything works perfectly for me.
The problem is that I don't know how to do it in a mobile application that uses SDK.
Example of what works well on web, but I need the solution for mobile.
1.In my experience writing
<script>
adobe.target.trackEvent({
"mbox": "seguros"
});
</script>
2. Profile Scripts
var count = user.get("seguros") || 0;
if (mbox.name == "seguros") {
count += 1;
return parseInt(count);
}