Track and segment users based on notification clicks and topics using OneSignal Data Tags.
addTag
or addTags
to store it.
In this example, we tag the user with a "notification_topic"
from the custom data. You can add any other fields you want—like category, product type, or campaign.
data
parameter.
This will be the topic of the notification and what you use to segment users. Common topics would be “news”, “entertainment”, “politics”, “finance”, “tech”, etc.
Adding notification topic data in dashboard
notification_topic
equals
finance
Segmenting users based on topic clicked