How to track app open because of push notifications?


we implemented Ionic Push to receive push in our app and it is working quite well. Now we want to know how many of our app opens happen because of a push we sent - so users tapping or swiping the push that then opens the app and shows the push message.

Is there a way to connect this and sent it to our analytics or backend?
How would I do so?