Introduction

In this article you will learn how you can update Marketo when a CustomerGauge survey gets completed using our Outgoing Webhooks functionality.


In order to leverage this Outgoing Webhooks you do need to be a customer of both Marketo and CustomerGauge.



Business use case

Enable activating your Promoters to be utilised in Referral Campaigns, or send response data to Marketo to have all your data in the same place.




Preparations

Requirements

In order to set up an Outgoing Webhook to Marketo, you'll need the following:

  • Admin access in CustomerGauge;
  • Admin access in Marketo.



Authentication

Connecting to Marketo will require a valid authentication. To connect CustomerGauge with Marketo, you should use the Client ID and Client Secret obtained from Marketo.


OAuth2 - Client Credentials

  1. In Marketo, obtain your OAuth2 Client Credentials details.
  2. In CustomerGauge, head to Data → Integrations → Webhooks → Authentications.
  3. Create a New Authentication:
    1. System: Select "Other".
    2. Name: Give your Authentication a name that you'll recognize in the future.
    3. Grant Type: Select "Client Credentials".
    4. Access Token URL: Add the Access Token URL obtained from Marketo.
    5. Client ID: Copy/Paste the Client ID obtained from Marketo.
    6. Client Secret: Copy/Paste the "Secret" obtained from Marketo.
    7. Scope: You can ignore this option for Marketo.
  4. Press the Save button, and you should be ready to set up your Outgoing Webhook!




Send data to Marketo


How to set-up

  1. In CustomerGauge, in the Outgoing Webhooks page, click the New Webhook button, followed by the Outgoing option.

  2. In the Filters step you can add a combination of fields and their value that a survey response needs to match in order to trigger the Webhook.
    Survey Responses that have Touchpoint "Support", and Area being either "British Isles" or "Benelux" qualify to trigger this Webhook.

  3. In the Authentication step, select your Authentication from the drop-down.

  4. In the API Setup step you'll need to set up your API request. We'll walk you through each of the fields that you'd need to fill in.
    1. Method: POST
    2. API URL: Add the Marketo API endpoint that you'd like to call.
    3. Custom Headers:Add the following header to the Custom Header section:
      HeaderValue
      Content-Typeapplication/json
    4. Request Body: The Request Body is used to send your Survey Response data to Marketo. This is your mapping between CustomerGauge and Marketo. See the list of Available Data Fields to find out what data is available from CustomerGauge to be sent over. Marketo's capabilities are described in their API documentation.
  5. In the Details step, the last step, give a name to your Webhook, and decide to Activate the Webhook immediately or not. Once you've done that, click the Save button, and you're all done! You can see whether your Webhook being (de-)activated in the Status column in the overview of Webhooks. If you'd like to activate or deactivate your Webhook at a later time you can always Edit your Webhook and navigate to the Details step to activate or deactivate it.