Would be nice if Ahoy::EventsController would allow to customize extra data.
Scenario: A controller that inherits fromAhoy::EventsController, could add extra data to the event based on subdomain, etc.
Proposal: Refactor the method create and split the method into smaller methods, so that it would be possible to inherit and call ahoy.track with extra params.
A workaround is possible by customizing the Ahoy::Store, and performing if statements to check subdomain.
Hi @ankane,
Would be nice if
Ahoy::EventsController
would allow to customize extra data.Scenario: A controller that inherits from
Ahoy::EventsController
, could add extra data to the event based on subdomain, etc.Proposal: Refactor the method
create
and split the method into smaller methods, so that it would be possible to inherit and call ahoy.track with extra params.A workaround is possible by customizing the Ahoy::Store, and performing if statements to check subdomain.