Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Added some basic analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dickey committed Sep 16, 2011
1 parent ec57c4b commit 5abb10c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -9,6 +9,8 @@ gem 'exception_notifier'

gem 'twilio-ruby'

gem 'statsmix'

gem 'haml'
gem 'jquery-rails'

Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -113,6 +113,7 @@ GEM
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
sqlite3 (1.3.4)
statsmix (0.1.10)
term-ansicolor (1.0.6)
thin (1.2.11)
daemons (>= 1.0.9)
Expand Down Expand Up @@ -146,6 +147,7 @@ DEPENDENCIES
rails3-generators
sass-rails (~> 3.1.0)
sqlite3
statsmix
thin
twilio-ruby
uglifier
1 change: 1 addition & 0 deletions app/controllers/conference_calls_controller.rb
@@ -1,6 +1,7 @@
class ConferenceCallsController < ApplicationController

def new
StatsMix.track('Page visit', 1)
@conference_call = ConferenceCall.create!
end
end
1 change: 1 addition & 0 deletions app/controllers/twilio_controller.rb
@@ -1,5 +1,6 @@
class TwilioController < ApplicationController
def call
StatsMix.track('Call made', 1, { :state => params['FromState'] })
response = Twilio::TwiML::Response.new do |r|
r.Say 'Welcome to kawlin with us. Please enter your pin number.', :voice => 'woman'
r.Gather 'numDigits' => 6, :action => twilio_call_with_code_url
Expand Down

0 comments on commit 5abb10c

Please sign in to comment.