Get User IDs and Regions From a DCS Response get-user-ids-and-regions-from-a-dcs-response
This section describes how to parse a DCS response to retrieve the visitor and region IDs required to make real-time calls to the DCS.
User and Region IDs user-region-ids
A DCS response contains data about your site visitors. You need the visitor and region ID before you can make server-to-server calls to the DCS.
- The user ID is required to identify and associate data with a particular visitor.
- The region ID is required because it is tied to a regional server name, which you need to send data to the DCS. The DCS stores information in data centers that are geographically closest to site visitors. See DCS Region IDs, Locations, and Host Names.
These parameters are described below. Code in italics represents a variable placeholder.
Parameter
Data type
Example
"uuid": user ID
String
"uuid":"123456789"
"dcs_region":region ID
Int
"dcs_region":9
Sample Response sample-response
This simple response shows the UUID
and region ID
. Note, this is sample data only. Your log files may be longer and more complex.
{
"stuff": [],
"uuid": "22920112968019678612904394744954398990",
"dcs_region": 7,
"tid": "31ZpxW5bQGc="
}
Next Steps next-steps
Once you have the user ID and regional server name, you can start sending and receiving DCS data. See Making DCS API Calls.
recommendation-more-help
de293fbf-b489-49b0-8daa-51ed303af695