The get method provides an interface to control values that will be used this Web SDK instance. This commonly includes actions like setting User ID values and configuring which integrations are enabled.
gsght('get', '{field}')Argument | Type | Example | Description |
|---|---|---|---|
| String |
| The field that you want to get the value for. See the section below for supported fields |
UsinggetwithonloadCalls to
getwill fail unless the Web SDK has been fully initialized before the call. To ensure this is handled consistently, please look at using the onload method.
Fields
gsid
gsidGets the Gamesight Session ID (gsid) for the current device.
gsght('get', 'gsid') // 513f5c447d384684a11603cae3083895user_id
user_idGets the list of user_id values that have been set on the current instance of the Web SDK
gsght('get', 'user_id') // [{UserPayload}]root_domain
root_domainGets the current root_domain that is being used for this instance of the Web SDK
gsght('get', 'root_domain') // https://gsght.comAdditional keys
In addition to the above key, the get method supports: warnings, gs_enabled, fb_enabled, and acm_enabled
