You can include request body in analytics by using the atatus_set_request_body() function.

Compatibility

Requires PHP agent version 1.14.0 or higher.

Syntax

atatus_set_request_body($value)

Parameter

Parameter Type Description
$value String (Required) Body data.

Example

copy
icon/buttons/copy
<?php

if (extension_loaded('atatus')) {
    atatus_set_request_body('{
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }');
}