Sha256: fd9e761918ea6a49c78a646990f8aaa5f2ea29991091595ce0f31f56933136fa
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
class Rack::Tracker::FacebookPixel < Rack::Tracker::Handler 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 self.position = :body def self.track(name, *event) { name.to_s => [event.last.merge('class_name' => 'Event')] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-tracker-1.4.0 | lib/rack/tracker/facebook_pixel/facebook_pixel.rb |