Page Views by Day

TrackJS records the number of times the Agent loads on your site as Page Views. This endpoint returns the Error count by Day, sorted by date descending.

This endpoint returns the page view counts per day, sorted by date descending.

URI

GET https://api.trackjs.com/{CUSTOMER_ID}/v1/hits/daily

The following querystring parameters are accepted:

application

String

Optional

Filter the results to only the Application key provided.


endDate

ISO 8601 String

Optional

Filter the results to only return errors before this date. Time precision is within 1 second.


startDate

ISO 8601 String

Optional

Filter the results to only return errors after this date. Time precision is within 1 second.


page

Number

Optional

The page of data you want returned. By default, the first page of data is returned. See Paging.


size

Number 1-1000

Optional

The size of the page of data you want returned. See Paging.

Response

{
    "data": [{
        "key": "2014-09-12T00:00:00Z",
        "count": 2835
    },
    {
        "key": "2014-09-11T00:00:00Z",
        "count": 3890
    }],
    "metadata": {
        "startDate": "2014-09-01T00:00:00Z",
        "totalCount": 11,
        "page": 1,
        "size": 3,
        "hasMore": true
    }
}

Example

curl -H "Authorization: {API_KEY}" "https://api.trackjs.com/{CUSTOMER_ID}/v1/hits/daily?startDate=2018-11-20&endDate=2018-11-27"