- Integrate Ahoy gem for tracking user events and visits - Create models for Ahoy events and visits - Implement admin interfaces for managing events and visits - Add background job for cleaning up old analytics data - Update application controller and other relevant controllers to track specific actions This commit implements a comprehensive event tracking system that logs user interactions within the application. Additionally, it includes mechanisms for managing and cleaning historical visit and event data, ensuring efficient data handling.
15 lines
391 B
Ruby
15 lines
391 B
Ruby
class Ahoy::Store < Ahoy::DatabaseStore
|
|
end
|
|
|
|
# set to true for JavaScript tracking
|
|
Ahoy.api = true
|
|
|
|
# set to true for geocoding (and add the geocoder gem to your Gemfile)
|
|
# we recommend configuring local geocoding as well
|
|
# see https://github.com/ankane/ahoy#geocoding
|
|
Ahoy.geocode = false
|
|
|
|
Ahoy.visit_duration = 30.minutes
|
|
Ahoy.server_side_visits = :when_needed
|
|
RETENTION_PERIOD = 3.months
|