I have a view helper: track_analytics_event(event_category, event_action)
.
Currently you might do something like this:
<%= track_analytics_event('Facebook Page Exit', 'Shared Transaction')
I want to create some sort of dictionary to avoid a complete mess of duplicated values (e.g. someone may use 'Facebook exit'
when they mean 'Facebook Page Exit'
)
How would you go about this?
Additions to the default dictionary must be allowed; this will be a library that an end user might want to add to