I've been trying to implement the gem Impressionist, but as the doc is confusing and the gem carries a bit of overhead for my simple use case I wonder how I could go about implementing this myself?
I want to track impressions (requests) of a certain action in a controller.
The impressions don't have to be registered by unique visitors.
I need the counter to be unique to each record in the model (i.e. Shop 1: 34 hits, Shop 2: 77 hits etc).
The counter should not include requests from bots on this list: http://www.user-agents.org/allagents.xml
What would be the minimal code required to accomplish the above?
Update
To clarify, if possible I don't want to use the gem Impressionist. I only used that as a prelude to describe what problem I'm trying to solve.