Sha256: 48bc64144bbe9c5d1f2f200713e936a0b3593462ca4602b3ade71ea4ccdb2475
Contents?: true
Size: 519 Bytes
Versions: 11
Compression:
Stored size: 519 Bytes
Contents
class Rack::Tracker::FacebookPixel < Rack::Tracker::Handler self.position = :body self.allowed_tracker_options = [:id] class Event < OpenStruct def write options.present? ? type_to_json << options_to_json : type_to_json end private def type_to_json type.to_json end def options_to_json ", #{options.to_json}" end end class Track < Event def name 'track' end end class TrackCustom < Event def name 'trackCustom' end end end
Version data entries
11 entries across 11 versions & 1 rubygems