Expand my Community achievements bar.

AJO - Push open and clicks in tracking dataset

Avatar

Level 4

Hi!  I would like to better understand how to differentiate between "push clicks" and "push opens" in the AJO Push Tracking dataset. I see that the pushTracking.applicationOpened event tracks when a user opens the application from a push notification. However, even when users interact and click within the app, I don't see any other event types captured in the dataset. Could you help clarify this? 

 

Also what's the definition and difference between push open and push clicks?

 

Thanks!

10 Replies

Avatar

Community Advisor

@Silvio6 Take a look at this thread to see the difference between push open vs click.

https://experienceleaguecommunities.adobe.com/t5/journey-optimizer-questions/what-is-the-difference-...

Thanks, Sathees

Avatar

Level 4

Hello @Silvio6 ,

  • If the user clicks/taps on the notification or buttons or any click on the notification, even if app not opened is captured as Push Click.
  • If the user clicks notification and app opens like if app is launched from the notification click then it is captured as Push Open.

In your scenario, The push notification is clicked and app launched. so it is captured as Push Open.
try, sending push notification and don't click instead swipe to clear and see whether push click is capturing or not.

 

Thanks

AJODev

Avatar

Level 4

ok, but there's no "pushNotification.click" eventType or something like that?

Avatar

Level 4

I believe yes, There is no default event type like pushNotification.click in Mobile SDK. we have to implement custom events like

ACPCore.trackAction("pushNotification.click", {
"pushTracking.messageId": "<messageId>"
});

correct me if am wrong.

Thanks
AJODev

Avatar

Level 1

The push open event is actually sent by default under the eventType field as pushTracking.applicationOpened (as per this doc https://experienceleague.adobe.com/en/docs/experience-platform/xdm/classes/experienceevent#accepted-...) but which is the eventType related to push clicks? Or how do they need to be configured and implemented to get actually sent ?

Avatar

Level 4

any news on this? which is the eventType related to push clicks? Or how do they need to be configured and implemented to get actually sent ?

Avatar

Community Advisor

Hello @Silvio6  I would suggest testing it against an actual device and don't believe what is mentioned in the documentation. Push Open/Clicks behavior will also change based on if the app is in foreground vs background.


     Manoj
     Find me on LinkedIn

Avatar

Administrator

Hi @Silvio6,

Were you able to resolve this query with the given solution or was this something you were able to figure out on your own or do you still need help here? Do let us know.

Thanks!



Sukrity Wadhwa

Avatar

Level 4

well I'm not finding anything related custom code to add to mobile app custom actions clicks. Is there any doc regarding that? Thanks.

Avatar

Level 4

@Silvio6 
Please reach out to your Mobile app developer team, they will help to create those custom actions clicks.
Reference :
class NotificationActionReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
val messageId = intent.getStringExtra("messageId") ?: ""
trackEvent(
eventType = "pushNotification.click",
messageId = messageId,
appOpened = false
)
}
}

// In your notification click handler
CustomEvent clickEvent = new CustomEvent.Builder("pushNotification.click")
.addProperty("action", "notification_clicked")
.addProperty("messageId", messageId)
.build();
clickEvent.track();

// In your main Activity, when app is opened from notification
CustomEvent openEvent = new CustomEvent.Builder("pushNotification.open")
.addProperty("action", "notification_opened")
.addProperty("messageId", messageId)
.build();
openEvent.track();


Thanks

AJODev