Known problems
Below is a non-exhaustive list of known issues preventing the replacement of the target phone number by the Allo-Media script.
Ad blockers
Currently, Allomedia's script is not blocked by the various ad blockers, but if you load it using tools such as Google Tag Manager, Tag Commander, AB Tasty, ... these tools are likely to be blocked themselves, and Allo-Media's script in turn will not be able to be loaded.
Privacy Settings
You may not have accepted cookies and data collection on your first visit to the site, try changing these settings, deleting your cookies, or switching to private browsing so that the site asks you to set them.
Cookies
You may have disabled cookies, and forgotten to enable them later. Remember to check your browser settings.
JavaScript
Directly in your browser, or through a plugin, you may have disabled JavaScript in your browser. To easily find out if JavaScript is disabled, and how to enable it again, you can visit the following site: https://www.enable-javascript.com/.
Quotas
It is possible that you have exceeded the call quota defined in your campaign for a certain period of time (for the current hour for example). You can check this in several ways:
It is possible that you have exceeded the call quota defined in your campaign for a certain period of time (for the current hour for example). You can check this in several ways:
- Wait until the beginning of the next hour and reload your page, the time quota should be reset, and the number should be replaced.
- Use the "devtools" of your browser. In the "network" tab, look for a query to https://hermes.allo-media.net/replacenumbers.js and inspect the response headers. If the quotas are exceeded, you should see a header like:
X-AM-Error-Msg: Exceeded quota
. - Finally, you can use Allo-Media's JavaScript API:
am('set', 'onError', function(err) {
console.err(err);
// Display: {code: 'THE_CODE', msg: 'A message'}
});
Asynchronous loading
The phone number to be replaced must be present in the HTML code of the page when calling the am('start')
function. If it is injected later, the Allo-Media script will not be aware of it and will not be able to replace it.
Example of a problematic chronology :
- Loading the HTML page
- Loading the Allo-Media script
- The Allo-Media script scans the page looking for the number to replace (and does not find it).
- The visitor clicks on a button "show number".
- The number is retrieved via an ajax call and injected into the page.
- The visitor sees the real number, and not the Allo-Media number.
Fortunately, it is most of the time possible to modify the snippet provided by Allo-Media to trigger the scanning of the page once the phone number is injected.
It is sometimes necessary for us to contact your team in charge of script integration to agree on the best method to inject the Allo-Media script at the right time.
Phone number in image format
The Allo-Media script does not allow replacing phone numbers present in the page as images, whatever the format. The phone number to be replaced must be in text format.