Skip to main content
Question

Stitching Sessions Across Mobile, Web, and Server-side

  • December 10, 2024
  • 1 reply
  • 75 views

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!

1 reply

sydney.koh
Team Member
Forum|alt.badge.img+8
  • Amplitude Support
  • 127 replies
  • December 12, 2024
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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings