Push notification tracking

Track push notification opens and attribute session revenue.

Last updated June 3, 2026

Track push_opened events when users tap notifications so push campaigns can receive engagement attribution without replacing the visitor's original install source.

Prerequisites

  • A mobile SDK installed
  • Push notifications configured
  • Campaign ID or title included in the push payload

Steps

1

Attach the notification callback

Call Grometrics only after the user opens the notification, not when it is merely received.

2

Send push_opened

React Native exposes trackPush; native SDKs send the same event with trackEvent. Source, medium, and campaign remain event-level engagement properties.

push-opened.ts

1await tracker.trackPush({2  type: 'opened',3  notificationId: payload.id,4  source: 'reminder',5  campaign: 'summer-sale-2026',6  deepLink: '/promo/summer'7});
3

Resume before sending

Send the event after the app resumes so it uses the active app session.

Options / Configuration

OptionTypeRequiredDescription
campaignstringnoGroups push revenue by campaign
titlestringnoDisplayed in Realtime and Push tab
deepLinkstringnoScreen opened by the notification

Event model

EventUsed for
push_openedRealtime feed, Push tab, campaign attribution

What happens next

Tap a test notification and confirm Push appears in Realtime, then build a push_opened to conversion-event funnel filtered by source.

Verify your setup

Verify your setup

Troubleshooting

Push row is untitled

Include campaignId or title in the notification payload.

Was this page helpful?

Push notification tracking — Grometrics Docs | Grometrics