Stape
Search
Try for free

How to send Twilio SMS using server Google Tag Manager

Updated
Jul 22, 2024
Published
Mar 18, 2022

There's no better way than SMS when you need to reach someone quickly and consistently. It has been proven that 98% of all email messages are opened within minutes. 

Twilio is one of the leading SMS providers. That is why stape created a Twillio tag for the server Google Tag Manager that helps to send SMS using sGTM. In this blog post, I will show how to use it. 

How to set up Twilio tag for sever Google Tag Manager

1. First, create a new Twilio account if you do not have one yet. We will need Twilio Account SID and Auth Token. You should also set up a Twilio phone number with SMS functionality.

twilio sms tag

3. Send data to the server GTM container. The two most popular sending data to sGTM are Google Analytics 4 and Data Tag/Data Client.

4. Download Twilio SMS tag from GitHub or add it from sGTM template Gallery -> Open templates sections in the server Google Tag Manager container -> Click New.

5. Click three dots in the top right corner -> Click Import -> Select Twilio tag template you’ve recently downloaded from GitHub -> Click save.

twilio sms tag google tag manager

6. Create Twilio SMS tag in the server GTM -> Add Account SID and Auth Token (you can find these values in Twilio Console) -> Add Your Twilio phone number with SMS functionality to the field From -> Add a phone number to which you want to send an SMS to the field “To”. You can use either static numbers or variables. -> Add SMS text -> Set trigger. 

set up twilio sms tag google tag manager

7. Once done, open sGTM preview mode and test the Twilo SMS tag. Make sure that the Twilio SMS tag is Fired in the sGTM debugger. 

test twilio sms tag google tag manager

8. You can also check Twilio logs to ensure that the Twilio SMS tag worked or simply send SMS to your phone number.

twilio sms logs

Conclusion:

With Twilio SMS tag for server Google Tag Manager, you can send SMS notifications about user actions on your site any activity in the CRM. Basically, you can use any request that is sent to sGTM. This is way easier and cheaper than using tools like Zapier or asking your developers to create this type of integration. 

If you need help setting up server-side tracking on your site or implementing the Twilio SMS tag, don’t hesitate to contact us. Our team of experts will be more than happy to assist you in getting set up and started with server-side tagging. Thanks for reading!

Host your GTM server at Staperight now!