module FlashAnalytics
Usage: in any view: render_analytics
Usage:
flash.add 'google/home_page_pageview', user_name: @user.name
Constants
- VERSION
Public Instance Methods
activate_for(environment:"production")
click to toggle source
# File lib/flash_analytics/configuration.rb, line 12 def activate_for(environment:"production") @environments = [*environment.to_s] end
active_environments()
click to toggle source
# File lib/flash_analytics/configuration.rb, line 8 def active_environments @environments || "production" end
configure(&block)
click to toggle source
# File lib/flash_analytics/configuration.rb, line 4 def configure(&block) instance_eval(&block) end