Skip to main content

Phone Call Tracking

SendSquared provides phone call tracking capabilities that allow you to monitor and track calls from various sources such as PPC campaigns. This guide explains how to set up and use the phone flip script for call tracking.

Accessing Phone Flip Script

You can access the Phone Flip Script in the SendSquared platform by following these steps:

  1. Navigate to Global Settings
  2. Select Integration Settings
  3. Choose Phone Flip

Installing the Phone Flip Script

The phone flip script needs to be installed on your website to enable call tracking functionality. This script allows you to create campaigns and add rotating numbers in your URL to track phone calls from PPC or any other source.

Basic Installation

Copy and paste the following code into your website:

<script src="https://app-api.sendsquared.com/tracking/v1/bse-analytics-es3.js"></script>
<script src="https://app-api.sendsquared.com/phone-tracking/v1/phone-tracking.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded',async function(event){
S2CallTracking('your-uuid-here');
});
</script>

Using the Phone Flip Feature

Once installed on your website, any phone number listed in Global SettingsPhone Numbers and Campaign Settings can be used for tracking by appending a query parameter to the URL.

Security & Anti-Phishing Protection

For your protection and to prevent phishing attacks, the phone flip feature includes built-in security measures:

  • Verified Phone Numbers: Only phone numbers that are registered and verified in your SendSquared account can be displayed
  • Domain Validation: The script will only work on domains that have been pre-approved and associated with your account
  • Account Binding: Each tracking script is uniquely tied to your account UUID, preventing unauthorized use

These safeguards ensure that malicious actors cannot use your tracking infrastructure to display unauthorized phone numbers or deploy phishing campaigns using your domain reputation.

URL Parameter Format

Add the following query parameter to your URL:

?s2number=%2B16122904467

Where:

  • %2B is the URL encoding for the plus sign (+)
  • 16122904467 is the phone number in format 1 (612) 290-4467, or whichever phone number you want to display on the website

📞 Phone Tracking URL Builder

Enter a phone number and your website URL to generate a trackable link.

Format: (XXX) XXX-XXXX or +1 (XXX) XXX-XXXX

Persistence

When a visitor arrives via a URL with the phone number parameter:

  • A cookie is installed on the client's browser
  • The phone number change will persist for up to 30 days after the initial visit

Advanced Configuration

You can customize how the phone flip script works with additional settings:

Phone Flip Generator with Custom Options

<script src="https://app-api.sendsquared.com/tracking/v1/bse-analytics-es3.js"></script>
<script src="https://app-api.sendsquared.com/phone-tracking/v1/phone-tracking.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded',async function(event){
S2CallTracking('your-uuid-here', {
classRef:'s2-phone',
pattern:'1 (###) ###-####',
sourcePattern:'/(\b1[-.\s]?)?\(?(\d{3})\)?[-.\s]?(\d{3})[-.\s]?(\d{4})\b/g',
});
});
</script>

Customization Options

You can modify the following settings:

  • CSS class (classRef:'s2-phone'): This allows you to customize the class used to find phone numbers on your webpage that will be changed.

  • Pattern (pattern:'1 (###) ###-####'): This is the format used to replace the number on your webpage.

  • Read Pattern (sourcePattern:'/(\b1[-.\s]?)?\(?(\d{3})\)?[-.\s]?(\d{3})[-.\s]?(\d{4})\b/g'): This is the regular expression pattern used to read phone numbers from the inner HTML of elements on your page.

🛠️ Phone Flip Customization Playground

Configure how the phone flip script finds and formats phone numbers on your website.

Configuration Options

Elements with this class will have their phone numbers replaced
How the phone number will be formatted (# = digit)
Regular expression to find phone numbers in HTML

Example HTML Transformation

<div class="contact-info">
  <p>Call us at: <span class="s2-phone">1-800-555-1234</span></p>
  <p>Support: <span class="s2-phone">(555) 123-4567</span></p>
  <div class="s2-phone">1.888.999.0000</div>
</div>
<div class="contact-info">
  <p>Call us at: <span class="s2-phone">1 (612) 290-4467</span></p>
  <p>Support: <span class="s2-phone">1 (612) 290-4467</span></p>
  <div class="s2-phone">1 (612) 290-4467</div>
</div>
When URL has ?s2number=%2B16122904467