Ninetailed
Search…
Segment
This guide describes the steps you need to follow to integrate Ninetailed as a destination in Segment.

What is Segment?

Segment is a Customer Data Platform (CDP), which means that they provide a service that simplifies collecting and using data from the users of your digital properties (websites, apps, etc). With Segment, you can collect, transform, send, and archive first-party customer data.
By integrating with Segment, you can easily and accurately track conversions and integrate 1st party data for personalization with Ninetailed.
You can use the data collected with Segment to define audiences in the Audience Builder or personalize components via the API.

Data Destination

Getting Started

To set up Ninetailed to receive Segment data:
  1. 1.
    From the Destinations catalog page in the Segment App, click Add Destination.
  2. 2.
    Search for "Ninetailed" in the Destinations Catalog, and select the "Ninetailed" destination.
  3. 3.
    Choose which Source should send data to the "Ninetailed" destination.
  4. 4.
    Go to the Ninetailed dashboard or your CMS App Dashboard, find and copy the "API key".
  5. 5.
    Enter the "API Key" in the "Ninetailed" destination settings in Segment.

Identify

If you aren't familiar with the Segment Spec, take a look at the Identify method documentation to learn about what it does. An example call would look like:
1
analytics.identify('userId123', {
3
});
Copied!
Segment sends Identify calls to Ninetailed as an identify event. This call is used in order to associate traits with an individual, which can be targeted for personalization in outbound email campaigns or website components.

Track

If you aren't familiar with the Segment Spec, take a look at the Track method documentation to learn about what it does. An example call would look like:
1
analytics.track('Login Button Clicked')
Copied!
Segment sends Track calls to Ninetailed as a track event.

Data Source

To set up Ninetailed to send Segment data you need to install the @analytics/segment package.

Getting Started

Install module via npm

1
npm install @analytics/segment
Copied!

Install module via yarn

1
yarn add @analytics/segment
Copied!

How to use

To use, install the package, include in your project and initialize the plugin with AnalyticsProvider
1
import { AnalyticsProvider } from '@ninetailed/experience-sdk-react';
2
import segmentPlugin from '@analytics/segment'
3
4
<AnalyticsProvider plugins={[segmentPlugin({writeKey: '12123'})]}>
Copied!
Last modified 1mo ago