Module: Gamco::Helper
- Defined in:
- lib/gamco/helper.rb
Instance Method Summary collapse
- #ga_javascript_tags(tag_id: Configuration.tag_id, **options) ⇒ Object
- #ga_secure(value) ⇒ Object
- #ga_tag(type, event, options = {}) ⇒ Object
Instance Method Details
#ga_javascript_tags(tag_id: Configuration.tag_id, **options) ⇒ Object
5 6 7 8 9 |
# File 'lib/gamco/helper.rb', line 5 def (tag_id: Configuration.tag_id, **) return unless Configuration.active raise Errors::NoTagId unless tag_id.present? ga_builder.(tag_id, ) end |
#ga_secure(value) ⇒ Object
16 17 18 19 |
# File 'lib/gamco/helper.rb', line 16 def ga_secure(value) return unless value.present? Configuration.secure.call(value) end |
#ga_tag(type, event, options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/gamco/helper.rb', line 11 def ga_tag(type, event, = {}) return unless Configuration.active ga_builder.tag(type, event, ) end |