IntegrationerHTTP Rapport APIPrøveanmodningerBegivenheder

How to request event statistics

Requests concerning events allow obtaining statistics on user actions that you track on the website.

Data on tracked events

Sample tabular data request #

Requesting the number of visits and events in terms of event types:

GET https:///content.mql5.com/v1/reports/website/dxnnhxrwpcwsgwowveipxmslrznjfhzarp/table
 ?metrics=webvisits,events
 &date_from=1549027860
 &date_to=1549632660
 &groups=tracking_event
 &order=webvisits

Response:

{
    "data": {
        "date_from": 1549027860,
        "date_to": 1549632660,
        "order""webvisits",
        "items": [ {
            "tracking_event""Registration Form",
            "webvisits": 1640,
            "events": 6138
        }, {
            "tracking_event""Registration Link",
            "webvisits": 1015,
            "events": 17243
        }, {
            "tracking_event""Download Android",
            "webvisits": 846,
            "events": 32516
        } ]
    }
}