Connect To Twilio

You can connect Twilio to Mixpanel to engage with users by sending SMS messages.

Mixpanel will cover the costs of sending SMS messages for the first 1,000 SMS sent each month. Beyond 1,000 SMS/month limit, you can continue to send SMS messages by connecting your Twilio account to Mixpanel.

To connect Mixpanel and Twilio, you’ll need to purchase a phone number or short code from Twilio.

Learn more about phone number and short code options with Twilio.

To send SMS messages using your Twilio account, you will need to input your Twilio Account SID, Auth Token, and Messaging Service SID to your Mixpanel project.

Twilio Account SID and Auth Token

  1. Sign in to your Twilio account. This will redirect to the Dashboard page. The project can be selected from the upper left dropdown. No changes must be made if the current project is the project intended to be connected with Mixpanel.
  2. From Dashboard, click Project Settings. The Account SID and Auth Token can be obtained from this menu. The Account SID starts with AC, and note that there are both live credentials and Test Credentials.


Messaging Service SID

To find your Messaging Service SID:

  1. From your Twilio account, click Programmable SMS on the left menu.
  2. Select Messaging Services from the resulting left menu. 
  3. If you already have a Messaging Service, collect the Service SID of that service.
  4. If you don’t already have a Messaging Service, click Create a Messaging Service. Once created, collect the SID of that service. 


Add Twilio Details to Mixpanel

To send SMS messages using your Twilio account, you will need to input your Twilio Account SID, Auth Token, and Messaging Service SID in your Mixpanel project:

  1. Open the Mixpanel project you want to connect with Twilio, click your name in the upper righthand corner, and select Project settings from the dropdown.
  2. Click Messages, and you’ll see a section called Twilio Information.
  3. Click CHANGE, and fill in your Twilio Account SID, Auth Token, and Messaging Service SID.
  4. Click Save changes. Mixpanel will validate these account details after you save them.

Customize Phone Number

Twilio receives your users’ phone numbers from Mixpanel and sends your messages to the numbers provided, regardless of what country those phone numbers are from.

The first 1,000 SMS/month messages come from a U.S. phone number.

To send all of your SMS messages (including the first 1,000) through your Twilio account, email and ask for 100% of SMS messages to be sent through Twilio.

Once this flag is enabled, you can customize the sending phone number and the unsubscribe options within Twilio's settings.

Opt-Out Keywords

If a user replies with any Twilio supported opt-out keywords they will not receive future SMS messages.

However, they will still appear to be eligible for SMS targeting in Mixpanel and will not show as unsubscribed in your project. This is because Stop Filtering from Twilio will not sync back with Mixpanel.

Is this article helpful?
3 out of 3 found this helpful



Article is closed for comments.