User behavior stats
Fetch statistics regarding user behavior on the website
Available on:
Path parameters
-
ID of an account
Query parameters
-
Period to fetch stats for
Values are
TODAY
,YESTERDAY
,THIS_WEEK
,LAST_WEEK
,THIS_MONTH
,LAST_MONTH
,LAST_30_DAYS
, orLAST_3_MONTHS
.
GET /accounts/{account_id}/behavior
curl \
-X GET https://api.clickguard.com/accounts/{account_id}/behavior?period=TODAY \
-H "X-API-KEY: $API_KEY"
Response examples (200)
"{\n \"total_device_clicks\": 189,\n \"total_no_device_clicks\": 65,\n \"high_interaction_clicks\": 64,\n \"med_interaction_clicks\": 37,\n \"low_interaction_clicks\": 20,\n \"no_interaction_clicks\": 54,\n \"high_bot_probability_clicks\": 6,\n \"low_bot_probability_clicks\": 159,\n \"converted_clicks\": 16,\n \"average_page_views\": 1.63,\n \"average_time_on_site\": 247568.73,\n \"bounce_rate\": 25.59\n}"
Response examples (200)
{
"total_device_clicks": 42.0,
"total_no_device_clicks": 42.0,
"high_interaction_clicks": 42.0,
"med_interaction_clicks": 42.0,
"low_interaction_clicks": 42.0,
"no_interaction_clicks": 42.0,
"high_bot_probability_clicks": 42.0,
"med_bot_probability_clicks": 42.0,
"low_bot_probability_clicks": 42.0,
"converted_clicks": 42.0,
"average_page_views": 42.0,
"average_time_on_site": 42.0,
"bounce_rate": 42.0
}