Limit on ahoy event api
rekhaagarwal09 opened this issue · 2 comments
rekhaagarwal09 commented
Hello
Is there any limit to events array list size in below api:
https://github.com/ankane/ahoy#events-1
{
"visit_token": "",
"visitor_token": "",
"events": [
{
"id": "",
"name": "Viewed item",
"properties": {
"item_id": 123
},
"time": "2018-01-01T00:00:00-07:00"
}
]
}
We observed that when event array size exceeding to 30, its giving 403 error.
Also its posting upto 10 events at once only.
ankane commented
Hey @rekhaagarwal09, there's a limit of 10 events and 8KB per request by default. You can change this with:
Ahoy.max_content_length = 16.kilobytes
Ahoy.max_events_per_request = 20
It'll return 413 if max_content_length
is exceeded.
rekhaagarwal09 commented
hey @ankane Thanks a lot for reply.
We will try this.