Skip to main content
Skip table of contents

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 the destination link used by your push notification with standard campaign parameters, for example:

&at_medium=Push&at_campaign=campaignPush

  • at_medium: Set to Push to 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.

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.

Mobile apps (Android and iOS)

For Android and iOS, apply the same tagging approach when building the deep link / destination URL opened by the push notification.

Additional information for Android and iOS:

Piano Analytics SDK

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.