I integrated ahoy
well. But my purpose is to track how many times any model show page visited.
Let say i have 2 model CarModel
and CarMake
I want to tract visits like CarModel.first.visits
and CarMake.first.visits
But only solutions find is to hit ahot.track("model"+car_model.id)
and saves it in events and then I need to query by strings, which is not a generic way.
I want to get visits of any model by Model.visits
is ahoy
support like this?