Question Variations
Can the Invoca tag detect the U.S. number with or without the country code?
When numbers swap, will it retain the original formatting?
Applies To
Invoca Tag
Answer
Invoca employs a phone number normalization process to ensure uniformity and accurate handling of phone numbers within the platform. The primary locales supported are the US and the UK.
In the US locale, valid North American Numbering Plan (NANP) phone numbers, denoted by the country code "1," will consistently appear as 10 digits, beginning with the area code. Additionally, Invoca can handle 11-digit US numbers with the country code "1".
Examples of valid US phone number formats are as follows:
- +1-XXX-XXX-XXXX
- 1-XXX-XXX-XXXX
- 1XXX-XXX-XXXX
- XXX-XXX-XXXX
- (XXX)-XXX-XXXX
However, any format that deviates from these valid examples, such as "1+XXX-XXX-XXX," is considered invalid since the Invoca tag will find the DOM elements but still search for valid numbers.
For phone numbers originating from countries with different country codes, Invoca applies a standardized format. These valid numbers will always appear with a plus sign (+) followed by the country code, and then the city/area code, which may include a "(0)" if that country sometimes places a "0" in front of their city/area codes. For instance, a valid French phone number format would be: "+33 (0)2334444."
Additional Information
When Invoca replaces the original number with an Invoca number, it retains the original formatting, preserving the appearance of the phone number as it was initially provided.
Invoca also has the capability to support vanity numbers for swapping, but it requires
custom configuration in the Tag Wizard.