Skip to content
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

Amplitude session id always -1 #45

Open
henriblancke opened this issue Jul 19, 2022 · 1 comment
Open

Amplitude session id always -1 #45

henriblancke opened this issue Jul 19, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@henriblancke
Copy link

henriblancke commented Jul 19, 2022

I've not been able to get session ids working for Amplitude on both iOS and Android. Session IDs keep defaulting to -1. This is with amplitudeIntegrationEnabled enabled and for both per event and system default method:

# The per event method
Segment.screen(
  screenName: screenName,
  properties: {},
  options: {
    'integrations': {
      'Amplitude': {'session_id': '1578083527'}
    }
  },
)

# System default method
SegmentDefaultOptions.instance.options = {
  'integrations': {
    'Amplitude': {
      'session_id': '1578083527'
    }
  }
}

I've tried passing in the example value 1578083527 as session id, as well as a second and a millisecond unix epoch, none seem to propagate to Amplitude.

Anything I am missing or a configuration step I'm overlooking? Thank you for your help!

@danielgomezrico danielgomezrico added the help wanted Extra attention is needed label Jul 21, 2022
@this-alias
Copy link

Did you ever solve this issue? We have the same problem with session ID defaulting to -1 in Amplitude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants