telmetricsV3

Marchex Marketing Edge API Developer Documentation

Welcome to the Marchex Marketing Edge developer hub. You'll find comprehensive guides and documentation to help you start working with our API as quickly as possible.

Get Started    

Adding DNI to a Website

1. Retrieving Telmetrics JavaScript snippet

In order to have DNI perform number replacement you need to ensure that the Telmetrics JavaScript snippet is deployed to your website.

When creating your Number Group, a JavaScript snippet will be automatically generated.

Example: GET https://webservice.telmetrics.com/v3/api/groups/{group_id}

Response:

{
    "id": 11623346,
    "name": "ABC Company",
    "time_zone_id": "Central",
    "dni_type": "SessionBased",
    "billing_group_id": 4455,
    "tracking_javascript": "<script type=\"text/javascript\" src=\"#{dni-api-url}/sdk?identifier=9bc2e20d-dad4-48f7-a630-83622bbfe3bb\" async></script>",
    "status": "active",
    "created_datetime": "2018-05-11T18:19:20.7946016Z",
    "modified_datetime": "2018-05-11T18:19:20.7946016Z"
}

You will need to extract the JavaScript from the tracking_javascript portion of the response, and insert it within the tag of the website where you want number replacement to occur.

2. Installing DNI

The Telmetrics JavaScript snippet must execute on all pages were you want DNI to occur.

For best results, ensure that the JavaScript snippet is deploy within the tag of your website.

3. Tag Managers

Telmetrics JavaScript snippet has been tested to work with Tag Managers. Be aware that number replacement occurs when the Telmetrics JavaScript loads; any additional load time introduced by the tag manager will result in a corresponding delay in number replacement.

Updated 8 months ago

Adding DNI to a Website


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.