Skip to main content

Hello everyone,

I'm currently trying to figure out how to stitch sessions across sources. Here's the scenario: a user starts a session on our mobile app and is then redirected via an external link to a web flow that also uses our web SDK. I want the web event to be part of the same session that started on the mobile app.

Would sending the session ID as a parameter in the redirect link and reusing it to manually set the web session ID accomplish this? Or is there a better way to achieve this? Additionally, some events might be triggered from our backend server using the Amplitude API, which could also set both the user and session IDs.

Any suggestions or insights on this would be greatly appreciated!

Hi Ahmed,

Thanks for writing in, and I would be happy to help you with this!

To stitch sessions across sources you would have to find a way to store the Session ID values and then pass the Session ID values you want for you users.

Passing values through a link could work and that is one way we recommend passing values cross domain too:
https://amplitude.com/docs/data/sources/instrument-track-unique-users#set-up-cross-domain-tracking

Best,
Sydney


P.S. Checkout upcoming events and user meetups on our events page.

Reply