Optional
requestWeb standard Request object. Use this in a edge function to pass the incoming request object. The SDK will check the request object for cookies to track the user, and extract preset attributes such as query parameters, referrer, geolocation etc.
Optional
userThe user ID. Pass the user ID explicitly.
Optional
customPass a custom variant query parameter name.
SDK initialization options