How to Build: Call Tracking
Use Twilio APIs to track volume and duration of calls, get insights about who called, and what was said.
Call Tracking helps you measure the effectiveness of different marketing campaigns.
Obtain Twilio phone numbers
Purchase a pool of phone numbers from the Twilio self-service portal or the Twilio Phone Number API. You can search for phone numbers within a specific country and area code.
Map Twilio phone numbers
Choose and implement your phone number allocation strategy. The most typical is a 1:1 mapping between an agent and a Twilio number. In this example, an advertiser’s number is mapped to the Twilio phone number.
Set up counter linked to the webhook that Twilio sends your app to count the number of incoming calls.
Publish Twilio numbers in your ads or web pages
You are now ready to publish the Twilio phone numbers on your ad, web page, or any other content.
Interested buyers call the listed number
When the listed number is called, Twilio receives the call and sends a webhook to your web server. The counter associated to the Twilio number will be updated.
Your web server returns the mapped phone number
Your web server looks up the advertiser’s private phone number mapped to the Twilio number and returns a TwiML <Dial> to that advertiser’s number. Twilio initiates a call between the buyer and that advertiser.
Experience a 99.95% uptime SLA made possible with automated failover and zero maintenance windows.
Operate at scale
Extend the same app you write once to new markets with configurable features for localization and compliance.
Use the same platform you know for voice, SMS, video, chat, two-factor authentication, and more.
Get to market faster with pay-as-you-go pricing, free support, and the freedom to scale up or down without contracts.