Skip to main content
The Web SDK client exposes an anonymousId property which can be used as the deviceId value when tracking an action.
const deviceId = authsignal.anonymousId;
This value is persisted as a cookie on the domain where you have initialized the Web SDK client. The name of the cookie is __as_aid. You can pass this value to your server and into a track request using a Server SDK in order to use rules based on device.