Use Twilio to track the effectiveness of your different marketing campaigns. Learn how call tracking helps organizations in these Twilio customer stories.
This project is built using Ruby on Rails Framework.
-
First clone this repository and
cd
into it.$ git clone git@github.com:TwilioDevEd/call-tracking-rails.git $ cd call-tracking-rails
-
Install the dependencies.
$ bundle install
-
Create a TwiML App.
This project is configured to use a TwiML App, which allows us to easily set the voice URLs for all Twilio phone numbers we purchase in this app.
Click here to create a new TwiML app.
You can learn more about TwiML apps here.
-
Copy the sample configuration file and edit it to match your configuration.
$ cp .env.example .env
You can find your
TWILIO_ACCOUNT_SID
andTWILIO_AUTH_TOKEN
in your Twilio Account Settings. You will also need aTWIML_APPLICATION_SID
, which you may find here.Run:
$ source .env
to export the environment variables.
-
Create database and run migrations.
Make sure you have installed PostgreSQL. If on a Mac, I recommend Postgres.app
$ bundle exec rake db:setup
-
Make sure the tests succeed.
$ bundle exec rspec
-
Start the server.
$ bundle exec rails s
-
Check it out at http://localhost:3000
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.