Sha256: 5712eb8baf37a1a2e6e4403e09635aa23d4b3638cea7d191e6707eeff19cb156
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
class Rack::Tracker::FacebookPixel < Rack::Tracker::Handler self.position = :body 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-tracker-1.5.0 | lib/rack/tracker/facebook_pixel/facebook_pixel.rb |