Is there a way to persist a context data variable across screens using a function in the SDK? Similar to how the getPreviousValue plugin works for the web.
To provide a specific example...
I want to track how users got to a specific screen and which button or link they clicked to get there. Currently, we are using a trackAction on the link click to get that information, but this approach is causing us to go over our server call limit as two calls are being fired for each click (trackAction on click, subsequent trackState on screen load).
Our approach to reduce server calls is the following...
1. Onclick of the button/link, store details on which button/link it was
2. Remove the trackAction on the click
3. Pass the stored information on the button/click on the following trackState
Our mobile developers said it wasn't possible to save the button/click information across screens for reasons, so I wanted to see if there was any native features within the SDK or Launch that could be used for this approach.