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    

Google Analytics

The Google Analytics integration is managed at the Group level. When enabled, all calls made to Number and NumberPools will be uploaded to Google Analytics as 'Phone Call' and 'SMS' events.

To configure AdWords for your Group, you will need to configure your Group to use Google Analytics

1. Configuring Google Analytics Integration

Your Google Analytics configuration is associated with a Group. Below are the fields used when configuring this integration:

FieldDescriptionRequiredPossible Values
typeThe type of Integration you want to createYesGoogleAnalytics
configuration -> google_analyitics_UA_idGoogle Analytics IDYesAn existing Google Analytics Id (ex. UA-XXXXXX)
configuration -> sms_conversion_valueMonetary value of an SMS conversionNoMonetary value of conversion
configuration -> currencyCurrency code that conversions should be uploaded asNo (default: USD)For more details visit:
Google AdWords Currency Codes

Below is an example of how to configure a Google Analytics integration using the criteria outlined above:
POST https://api.telmetrics.com/v3/api/groups/{group_id}/integrations

Remember when configuring an Integration it must be assigned to a group.

{  
  "type": "GoogleAnalytics",
  "configuration": {
    "google_analyitics_UA_id" : "UA-234252-6"
  }
}

This request will result in a response similar to the following:

{
    "type": "GoogleAnalytics",
    "integration_id": "d889faef-b6cb-4daa-afab-f767673057b1",
    "group_id": 11623348,
    "created_datetime": "2018-05-14T17:05:09.7261789Z",
    "modified_datetime": "2018-05-14T17:05:09.7261789Z",
    "configuration": {
      "google_analyitics_UA_id" : "UA-234252-6"
    }
}

Note that the 'integration_id' returned by this request must be used for any subsequent updates.

2. Updating AdWords Integration

In the event that you need to update your Google Analytics Integration, you will need to submit your request to the following end-point:

POST {{webserviceurl}}/v3/api/groups/integrations/{integration_id}

{  
  "integration_auth_id": "6932dfd8-4efb-492e-97e3-48daba7b8ed5",
    "configuration": {
      "google_analyitics_UA_id" : "UA-234252-6"
    }
}

This request will result in a response similar to the following:

{
    "type": "GoogleAnalytics",
    "integration_id": "d889faef-b6cb-4daa-afab-f767673057b1",
      "integration_auth_id": "6932dfd8-4efb-492e-97e3-48daba7b8ed5",
    "group_id": 11623348,
    "created_datetime": "2018-05-14T17:05:09.727",
    "modified_datetime": "2018-05-14T17:19:43.9688953Z",
    "configuration": {
      "google_analyitics_UA_id" : "UA-234252-6"
    }
}

Updated 8 months ago

Google Analytics


Suggested Edits are limited on API Reference Pages

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