Module: Glib::JsonUi::AnalyticsHelper

Defined in:
app/helpers/glib/json_ui/analytics_helper.rb

Instance Method Summary collapse

Instance Method Details

#__json_ui_analytics(json) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/glib/json_ui/analytics_helper.rb', line 4

def __json_ui_analytics(json)
  if try(:glib_analytics_included?)
    json.analytics do
      json.feature do
        json.group controller_name
        json.action action_name
        json.segment glib_analytics_feature_segment
      end
    end
  end
end