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.

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

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.