The amplitude docs include this note:
Starting from v2.8.0
the SDK supports getting the device ID from the URL paramter ampDeviceId
. The SDK configuration, for example, init('API_KEY', { deviceId: 'custom-device-id' })
still takes precedence over the URL parameter. Previous versions of the SDK supported the deviceId
URL parameter, this option is still supported for backward compatibility but ampDeviceId
will take precedence if both are set. You don't need to change your code if upgrade to versions higher than v2.8.0
but it is recommended.
But then later on, there is also mention of the “ampSessionId” while I’m pretty sure the older version was just “sessionId”. Is there a full list somewhere of all the URL parameters that the SDK will attempt to automatically use, along with information about priority (for example I’m assuming ampSessionId would override sessionId) and support/deprecation information?
For example, we do still use `sessionId` in some cases, and I’d like to confirm whether that’s still valid or if we need to switch to the `ampSessionId`.