dcsverbose Parameter
  • 29 Nov 2021
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

dcsverbose Parameter

  • Dark
    Light
  • PDF

Article Summary

The optional dcsverbose parameter is used to return a response containing detailed validation information.

Use the dcsverbose parameter to validate requests to the data collection server. dcsverbose can be used with both the Get Visitor ID method and the Post Event Data method to include validation data in the response.

  • With the Get Visitor ID method, the response includes the visitor ID that is created as a result of the request.
  • With the Post Event Data method, the response returns detailed error information if the request failed. If the request was successful, the response includes the log line that would be generated as a result of the request.

dcsverbose is recommended for debugging during application development. Depending on the dcsformat setting for the request, responses have the potential to become extremely large. Because of this overhead, you should disable dcsverbose after you finish debugging and before you begin building your application for production use.

Sample Request: Failed Without dcsverbose (Text Format)

POST /v1/asdf;lkjh/events.svc
Content-Type: application/x-www-form-urlencoded
Content-Length: 111
dcsuri=/Home&dcsua=My%20Client&WT.ti=My%20Home%20Page&WT.tz=-8&WT.cg=My%20Content%20Group&customparam=customval
Sample Response: Failed Without dcsverbose (Text Format)

HTTP/1.0 400 Bad Request
Connection: close
Content-Type: text/plain
Content-Length:
Sample Request: Failed with dcsverbose (Text Format)
POST /v1/asdf;lkjh/events.svc?dcsverbose=true
Content-Type: application/x-www-form-urlencoded
Content-Length: 111
dcsuri=/Home&dcsua=My%20Client&WT.ti=My%20Home%20Page&WT.tz=-8&WT.cg=My%20Content%20Group&customparam=customval

Sample Response: Failed with dcsverbose (Text Format)

HTTP/1.0 400 Bad Request
Connection: close
Content-Type: text/plain
Content-Length: 91
ERR_INVALID_DCS_ID
The following invalid hit was discarded
due to an invalid DCS ID:asdf;lkjh


Was this article helpful?