CustomerGlu Developer Documentation
  • 🔧Getting started
  • 🔧Quickstart Guide for React Web Apps
  • 📱Quickstart Guide for React Native Apps
  • 📱Quickstart Guide for Flutter Apps
  • Integrating with SDKs
    • Web SDK
    • Mobile SDKs
      • How to Test Integration?
    • Cordova SDK
    • Shopify
  • Integrating with APIs
    • Register User/Device
    • Load Campaigns
    • Binding Webview to Native App Functions
    • 🔍Using __GLU_NUDGE_CLICK for Widget Visibility
    • 🎯API-based Segmentation Quickstart Guide
  • 🔌Third-Party Integrations
    • Source
      • Sending Events directly from Server
      • Segment
      • Moengage
      • Amplitude
      • Clevertap
      • Webengage
    • Destination
      • Analytics Webhook
      • Customer.io
      • Talon.One
      • Segment
      • MoEngage
      • Amplitude
      • Clevertap
      • WebEngage
      • Google Sheets
    • Cohort
      • Mixpanel
  • Miscellaneous Topics
    • Direct Campaign/Wallet URLs
    • Configuring Webhooks
      • Rewards Webhook
      • Nudge Webhook
    • Notifications
      • FCM
      • APNs
      • CustomerGlu Notification
      • Testing Nudges
    • Referral Campaigns
      • Firebase
      • Branch
    • Handling Non Logged-in Users
    • Testing Campaigns with User Logs
    • Using the Editor
      • How to edit Buttons in Campaigns
    • How to Create and Manage Segments in CustomerGlu
  • SCHEMA REPOSITORY
    • Webhook Schema
      • Reward Webhook Schema
      • Nudge Webhook Schema
      • Raw Event Webhook Schema
    • Webview Callback Schema
      • Analytics Event Schema
    • Analytics schema V4
      • Page Events
      • Track Events (UI)
      • Track Events (SDK)
      • State-Change Events
      • System Events
    • 🗝️FAQ
      • API Key
      • How to find and add Screen Names for Entrypoints
  • Demo Apps
    • Demo Apps
Powered by GitBook
On this page
  • Sending Events directly from Server
  • Sending events from server to server
  • Segment
  • Sending events from moengage
  • Moengage
  • Sending events from moengage
  • Amplitude
  • Sending Events from Amplitude
  • Set Up and Activate Your Webhook Integration
  • CleverTap
  • Sending events from clevertap
  • Webengage
  • Sending events from webengage

Was this helpful?

  1. Third-Party Integrations

Source

Various methods of sending user events to CustomerGlu for completion of activity based campaigns

Sending Events directly from Server

The following API can be used to send user events directly from your server

Sending events from server to server

POST https://events.customerglu.com/server/v4

Sending events using server side integration

Headers

Name
Type
Description

X-API-KEY*

string

<Write- Key provided by the CustomerGlu>

Content-type*

string

application/json

Request Body

Name
Type
Description

event_id*

string

Unique identifier for the event

event_properties*

object

Key-value pair of event properties (send empty object in case of no properties)

event_name*

string

Name of the event

timestamp*

string

ISO Format Timestamp for the event (UTC is recommended)

user_id*

string

UserId of the user, registered with CG, performing the activity

To guarantee quick response times, request validations are done at a later stage in the pipeline.

Please ensure that all the required fields (marked with '*') are present in the request payload. Failure to do the same might result in the events not being processed inspite of a success response.

Segment

To send events from segment, set up a webhook for your destination.

Create a new Destination of type "Webhook"

Configure Webhook (Actions)

Select the source of data to be sent to CustomerGlu

Set up a name for the webhook

Add mapping to the Webhook

Select which events to Forward to CustomerGlu

Choose only the events which are required for Segmentation and completion of Activities in CustomerGlu campaigns.

Add test event

Load test event from source

Configure the webhook request mapping

  • Add the webhook endpoint

  • Select batch size as 1

  • Add your API Key in the headers with the key name "X-API-KEY"

  • Save the webhook

Sending events from moengage

POST https://events.customerglu.com/segment/v4

Headers

Name
Type
Description

X-API-KEY*

String

WriteKey provided by customerGlu

Moengage

Sending events from moengage

POST https://stream.customerglu.com/v3/moengage

Headers

Name
Type
Description

X-API-KEY*

String

WriteKey provided by customerGlu

Amplitude

You can set up a webhook on Amplitude to forward specific user events to CustomerGlu.

Sending Events from Amplitude

Headers

Name
Type
Description

X-API-KEY*

String

WriteKey provided by customerGlu

Set Up and Activate Your Webhook Integration

  1. Login to your Amplitude account and navigate to Data.

  1. Navigate to Destinations and click on Add Destination

  1. Search for Webhook and click on Webhook.

  1. Please provide a relevant Sync Name.

  1. Log in to CustomerGlu, click on the Dev Console.

  1. Click on Amplitude Integration.

  1. Here you will find your Webhook URL and headers.

  1. Enter your Webhook URL and headers, then click on Test Connection.

  1. Click on Send Test Events and you will see a confirmation message. Then click on Finish and save your destination.

CleverTap

You can set up a webhook on CleverTap to forward specific user events to CustomerGlu.

Configure CustomerGlu Endpoint as a Webhook on Clevertap

Sending events from clevertap

POST https://events.customerglu.com/clevertap/v4

Headers

Name
Type
Description

X-API-KEY*

String

WriteKey provided by customerGlu

Create and Launch a Webhook Campaign

  1. Create a new Webhook Campaign

  1. Select "Live Behavior" as the qualification Criteria

  1. Select the already configured CustomerGlu Webhook Endpoint

  1. Select the events that need to be passed to CustomerGlu

Note: Please make sure that the resultant payload can be parsed as a valid JSON.

Webengage

Configure CustomerGlu Endpoint as a Webhook on Webengage

Webengage allows setting up a webhook url, and forwards all the events to the same. The following url can be set up as the Webhook endpoint on your Webengage Dashboard.

Sending events from webengage

POST https://events.customerglu.com/webengage/v4

In order to enable webhooks from Webengage, the following inputs from your WebEngage Dashboard need to be added in the Integrations Page of CustomerGlu dashboard:

Name

Description

licenseCode

Your WebEngage account license code

Secret

MD5 Hex of the combination of your WebEngage license code and the Webhook Secret Key separated by :

PreviousThird-Party IntegrationsNextDestination

Last updated 8 months ago

Was this helpful?

In order to start sending events from MoEngage to CustomerGlu, MoEngage streams can be used.

Configure the event names and properties that CustomerGlu will receive and expect for any segmentation/campaign related settings. can be used for configuring the values.

MD5 Hex of <Your_Webengage_License_Code>:<Your_Webhook_Secret_Key> can be generated

🔌
MoEngage documentation
Check out docs
Check out docs
Check out Docs
Liquid Tags
Check out Docs
Check out docs for getting the required credentials
here