How do I tag push campaigns?
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.
Tag push campaign links
Tag the destination link used by your push notification with standard campaign parameters, for example:
&at_medium=Push&at_campaign=campaignPush
at_medium: Set toPushto identify the channel as push notifications.at_campaign: Set to a meaningful campaign name (for example, the notification name, article name, or promotion identifier).
After implementation, you can analyze this traffic in Explorer > Traffic sources > Marketing sources.
As a reminder, in apps, no source properties are sent automatically. You need to retrieve the source and campaign names (from a deep link, for example) and manually push this information into the src_medium and src_campaign properties during the first event of the visit.
Additional information for Android and iOS:
Piano Analytics SDK
https://developers.piano.io/analytics/data-collection/sdks/ios-swift/
https://developers.piano.io/analytics/data-collection/sdks/android-kotlin/
Important behavior: when the source is applied
As with any traffic source, the marketing source will only be taken into account if the visitor isn’t already on your site (that is, no visit is ongoing). If a visit is already in progress, clicking on a push notification will not change the visit’s source—unless you use the src_force property.