Kiss Metrics Ruby API

10 views
Skip to first unread message

Zach Bruhnke

unread,
Aug 21, 2011, 10:25:01 AM8/21/11
to rubyonra...@googlegroups.com
hey there I have a question about the ruby API for an event I would like
to add that is happening in a user dashboard of ours.

Our whole site is tracked using the javascript API but there is a
particular state 'done' that has to be completed by different user
logging into a dashboard and clicking a checkbox which then triggers
this "done" state. There has been a hook has been set up in a model for
callback when the state changes so now i need to use the Ruby API to
send this info to KISS

so in the model I need to walk through the object relationships and find
the user to identify when the event is reported

can it be done like this:

when :booked
KM.init("Our API KEY")
KM.identify('auction.business.user.email')
KM.record('done')

or do I need to find the user's email with another method before
initiating the API key?

--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages