Overview

Segment.io, a Customer Data Platform service provider, provides the capability that simplifies collecting and using data from the users of your digital properties (websites, apps, and so on). With Segment, you can collect, transform, send, and archive your first-party customer data.

Integrate Segment with CleverTap

This process involves the following two steps:

  1. Find Segment Project Details.
  2. Configure CleverTap Dashboard.

Find Segment Project Details

To find your project details:

  1. From your Segment.io workspace, navigate to Connections > Catalog.
  2. Search for CleverTap in the Sources Catalog, select CleverTap, and click Add Source.
  3. Enter a nickname for the Source and configure any other required settings. The nickname is used as a label in the Segment app. And, Segment creates a related schema name in your warehouse. Segment suggests using a nickname that reflects the source and distinguishes environments, such as CleverTap_Prod, CleverTap_Staging, or CleverTap_Dev, though it can be anything.
  4. Click Add Source to save your settings.
  5. Copy the Write key from the Segment dashboard. You will need it when configuring the CleverTap dashboard.
Find Segment.io Project Details

Find Segment.io Project Details

Configure CleverTap Dashboard

To configure the CleverTap dashboard:

  1. Log in to your CleverTap account and navigate to the Settings > Partners page.
Navigating to Partners Page

Navigating to Partners Page

  1. Hover on the Segment icon and click Integrate. The Integrate raw data partner - Segment popup displays on the right side of the screen.
Integrate Segment

Integrate Segment

  1. Enter the following details and click Integrate.
FieldDescription
Partner NicknameEnter the Nickname for your integration.
Write KeyHelps identify CleverTap as a unique data source on Segment. For more information about obtaining the key, refer to Find Segment Project Details.
Region
  • Enter the region of your Segment account.
  • The following are the two options:
    • US Region (default)
    • EU Region
  • User IDUsed as an identifier to track the user on Segment.
    Anonymous IDUsed as an identifier to track anonymous users on Segment.
    Enter Segment Project Details to Integrate

    Enter Segment Project Details to Integrate

    After successful integration, the Integrated tag displays against Segment on the Partner List page.

    Segment Integration Successful

    Segment Integration Successful

    Create New Export

    To create a new export:

    1. Navigate to Settings > Partners > Exports from the CleverTap dashboard.
    2. Click + Export and select Segment from the Partners list.
    Create Export

    Create Export

    On clicking, the Export to Segment pop-up displays on the right side of the screen.

    Enter Export Details

    Enter Export Details

    1. Configure the following settings:
      • Type: Select the type of data that you want to export from the available options. For more information, refer to Export Details.
      • Frequency: Select from one of the following options:
        • Once only: A single export for the selected export type. You can export data up to the last 60 days. You create an export for a specific day, date range, previous month, current month, and more.
        • Recurring: Set up a recurring frequency to export all the new events at regular intervals. You can export event data as frequently as every 4 hours and up to once every 24 hours.
    2. Click Export. The Segment export has initiated message displays at the top of the Exports page:
    Segment Export Initiated

    Segment Export Initiated

    CleverTap processes the export, and you can now see the newly-created export for Segment.

    New Segment Export Displays on Exports Page

    New Segment Export Displays on Exports Page

    The status for a newly-created export is displayed as Pending. The status changes to Running after the processing starts and Done when the export is complete.

    Stop Export

    You can also stop the export that you have created. To do so, click the Stop export icon for the export request you want to stop and then click Stop to confirm your action.

    Stop Segment Export

    Stop Segment Export

    You are navigated back to the Exports page, and the Segment data export stopped message displays at the top. The status for the data export now displays as Stopped.

    Segment Export Stopped

    Segment Export Stopped

    Edit an Export

    You might need to modify an export to meet specific business requirements or while waiting for the next run. This section describes editing a Live Data Streaming and Recurring export in the Running and Pending (awaiting next run) state.

    📘

    Points to Remember

    • In case of running exports, the new changes will apply to the next run.
    • You cannot edit a One-time export, regardless its status (running, pending, completed, or stopped).
    • You cannot change the export from User Profile to Event and vice-versa.
    • You cannot modify exports marked as Completed or Stopped.
    • Export changes for Live DataStreaming take 10-15 minutes to take effect.

    To edit an export:

    1. On the CleverTap dashboard, go to Partners > Exports.
    Ellipsis Icon to Edit the Export

    Ellipsis Icon to Edit the Export

    1. Click the Ellipsis icon. The Edit and the Stop buttons appear.
    Click the Edit Export Icon

    Click the Edit Export Icon

    1. Click the Edit button. The Overview section appears.
    Edit the Export

    Edit the Export

    1. Edit the export details and click Update.

    Export Details

    Select from one of the following options to export events from CleverTap to the Segment dashboard:

    All System Events

    When you select this option, the following defined system events are exported:

    CleverTap Event NameEvent Description
    Notification SentThe event is tracked when the notification is successfully sent from CleverTap to the communication channel selected for your campaign.
    Notification ViewedThis event is tracked when a user views an email, in-app notification, or web notification sent from CleverTap.
    Notification ClickedThis event is tracked only when a user clicks on a notification sent via CleverTap. It is recorded when a user clicks on a mobile push, in-app, email, web popup, or web push message sent via the CleverTap dashboard or through the campaign API.
    Push ImpressionsThis event is tracked when a Push notification sent from CleverTap is delivered to a user’s device.
    Notification RepliedThis event is recorded when a user replies to a WhatsApp message.
    Control GroupThe event is raised when a campaign is activated with a Control group.
    Channel UnsubscribedThe event is raised when a user unsubscribes from any further communication through a channel
    Push ImpressionsThis event is tracked when a push notification sent from CleverTap is delivered to a user’s device. The funnels on the Push campaign statistics page reflect the count for this event.
    Session ConcludedThis event is recorded to mark the end of a session. Session tracking must be enabled for the event to be tracked.
    State TransitionedThis is an event raised only for Lifecycle Optimizer. This event is recorded when a user transitions from one stage to another.
    AB Experiment RenderedThis event indicates that the variant has reached the device.
    AB Experiment StoppedThis event is recorded when the A/B experiment is stopped.
    AB Experiment Rolled OutThis event is recorded when the A/B experiment is started
    AB Experiment DisqualifiedThis event is raised when the device is disqualified.
    Geocluster EnteredThis event is recorded to mark when a device enters a geofence.
    Geocluster ExitedThis event is recorded to mark when a device exits a geofence.
    Reply SentThis event is recorded when an agent (CleverTap user) replies to a message from the end user.
    App Version ChangedThis event is raised when a user’s current app version is different from the user’s previous app version.
    App LaunchedThis event is recorded every time a user launches your application.
    App InstalledThe event is raised when the user launches the app for the first time.
    App UninstalledThis event is recorded when a user uninstalls your application.
    UTM VisitedThis event is tracked when a user clicks on a link from a marketing campaign that has a UTM parameter defined on it.

    For more information about these events, refer to Events.

    Selected Events

    With this option, you can select the specific system events (from those listed in the above table) that you want to export from CleverTap to the Segment dashboard.

    Engagement Events

    When you select this option, the following engagement events are exported:

    • Notification Sent
    • Notification Viewed
    • Notification Clicked
    • Push Impressions
    • Notification Replied
    • Control Group
    • Channel Unsubscribed
    • Push Impressions
    • Notification Delivered
    • AB Experiment Rendered
    • AB Experiment Stopped
    • AB Experiment Rolled Out
    • Geocluster Entered
    • Geocluster Exited
    • Reply Sent
    • App Uninstalled
    • Webhook Delivered
    • State Transitioned
    • UTM Visited

    For more information about these events, refer to Events.