Debugging

Do not use the debug mode in production.
To debug your installation there is a integrated debug-function. Just add the parameter

ttio.data.debug = true;

and the API will send all debug information back in the request. The request contains a printed php array. Do not use the debug mode in production.

request: repeats the input parameters
meta: Some data like useragent, timestamp etc.
sessionid: SessionID for this request
clientid: ClientID for this request
userid: UserID for this request, if submitted
message: Human readable answer from the API, including error messages.
success: Computer readable answer from the API. 1 = success, 0 = failed.

Array
(
    [request] => Array
        (
            [ty] => pageview
            [de] => true
            [wi] => 26
            [si] => 7c384591-704e-a087-577b-c6f1426be104
            [ci] => 4173602a-2166-5a6b-ed47-b0802a02bf9c
            [ui] => false
            [lp] => http://shop.example.com/product-1251236?wid=26
            [rp] => 
            [bva] => 14.99
            [bco] => 1
            [z] => dca729a8-91fa-2a96-edc6-6a444122afa9
        )

    [meta] => Array
        (
            [ip] => 85.16.21.84
            [timestamp] => 1466869180
            [useragent] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) (..)
            [utc] => 2016-06-25T15:39:40+00:00
            [locationid] => 1372
            [timeForRequest] => 0.2064
        )

    [sessionid] => 7c384591-704e-a087-577b-c6f1426be104
    [clientid] => 4173602a-2166-5a6b-ed47-b0802a02bf9c
    [message] => Array
        (
            [0] => data successfull transmitted
        )

    [success] => 1
)