Added Rspec and API method to track an event