Piano Analytics doesn’t have a default “Push” source. However, you can classify traffic from push campaigns into its own separate source by relying on a custom marketing source.
-
Add
at_mediumandat_campaignto the destination link of your notification:
https://www.example.com/article-slug?at_medium=push&at_campaign=breaking_news_0810
-
at_medium: the channel. Set it to "push" for example to identify push notifications.
-
at_campaign: a name that identifies the notification, such as the notification name, the article, or a promotion ID.
-
Send the notification.
-
To analyze the traffic, go to Explorer > Traffic sources > Marketing sources.
In apps, no source properties are sent automatically. You need to get the source and campaign names yourself (from a deep link, for example) and set them in the src_medium and src_campaign properties on the first event of the visit. For implementation details, see the Piano Analytics SDK documentation for iOS and Android.
As with any traffic source, a push notification only sets the source when it starts a new visit. If the visitor already has a visit in progress when they click, the visit keeps its original source. To override it, use the src_force property.