adobe.target.trackEvent : Equivalent in mobile applications : Replicate for mobile | Community
Skip to main content
May 6, 2022
Solved

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

  • May 6, 2022
  • 1 reply
  • 873 views

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

}

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Moses_Maxen

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#clickedlocation and https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-target/target-api-reference#retrievelocationcontent

1 reply

Moses_MaxenAdobe EmployeeAccepted solution
Adobe Employee
May 9, 2022

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#clickedlocation and https://aep-sdks.gitbook.io/docs/using-mobile-extensions/adobe-target/target-api-reference#retrievelocationcontent