-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add return url to analytics #1239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saperi22 is this ready to review or do we need to hand it off before you are out?
@jaxdesmarais do we want to send this info. at all? We are logging the url on individual success or failure events. I hoped logging it when handle return is called would be easier and would be a central place for success and failed events. However, Tim mentioned we'd have to search for the handle return to app event, find the session id and manually stitch through the other events. Given that, I was wondering if this would be useful or would it never be used at all. |
👀 is the session ID different for the handle return events vs the success/failed events? If so that sounds like a bug that we should resolve. In the success case for example all of the following events should have the same session ID/correlation ID/PayPal context ID:
|
I didnt mean there are separate sessions ids. The concern was whether we'll be able to use the url sent in handleReturnToApp() and figure out whether the it succeeded or failed. |
Ah gotcha. Agree, I do not think we will know the status based on the URL. But that is less the issue, the issue is that Venice does not ever log the full URL they send to us. This has been an issue on iOS because sometimes we cannot open the URL but we also don't know what the URL is. I don't think we have come across this same issue on Android yet, but the URL will help if we ever do come across a similar issue. This will allow us to hold onto the URL that we get back to allow us to troubleshoot that URL if we ever have issues and less to determine success/failure. That would be determined at a later point and the events could be linked via the session ID. |
The current change is to add logging at The other piece of work would be to remove logging from success and failure cases. This PR doesn't make the change, and I'm only trying to understand if that should happen.
Yes, Venice doesn't log anything, but we are doing it. It shouldn't matter if we log early or on result.
If I understand what you are saying correctly, we are both making the same statement. Are you saying you are ok with the changes? |
Yep, we are saying the same thing 😄 |
Summary of changes
Checklist
Authors