Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
SOLVED

adobe.target.trackEvent : Equivalent in mobile applications : Replicate for mobile

Avatar

Level 1

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);

}

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hello @marysoto03AC, if using the Platform SDK, you could try leveraging the clickLocation method, or the retrieveLocationContent method for incrementing the profile script.    More information can be found here: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-target/target-api-reference#clickedlo... and https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-target/target-api-reference#retrievel...

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hello @marysoto03AC, if using the Platform SDK, you could try leveraging the clickLocation method, or the retrieveLocationContent method for incrementing the profile script.    More information can be found here: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-target/target-api-reference#clickedlo... and https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-target/target-api-reference#retrievel...