This preview of pull request 1639 is meant for internal use only.

Airship Destination

Airship quick info

Airship is in beta, and accepts Track, Page, Identify, and Group calls. If you reference it in the Integrations object, call it “airship", or "Airship”.

Airship gives brands the data, channels, orchestration and services they need to deliver push notifications, emails, SMS, in-app messages, and more to the right person in the right moment — building trust, boosting engagement, driving action and growing value.

Airship Cloud-mode Destination integration enables users to set Airship Tags and Custom Events through Segment Identify and Track events.

This destination is maintained by Airship. For any issues contact the Airship Support team.

Good to know: This page is about the Airship Segment destination, which receives data from Segment. There’s also a page about the Airship Segment source, which sends data to Segment!

This document is about a destination which is in beta

This means that the Airship Destination is in active development, and some functionality may change before it becomes generally available.

Getting Started

Follow these steps to configure the integration

  1. From the Segment web app, click Catalog.
  2. Search for “Airship” in the Catalog, select it, and choose which of your sources to connect the destination to.
  3. Enter the “API Key” into your Segment Settings UI.
    • Steps to create an Access Token to enable integration from Airship outlined here. Save this Access Token & API Key for the pasting into Segment Settings UI.
  4. For Identify Events, be sure to set up a Tag Group first within Airship. Steps outlined here.

Requirements

To use the Segment Destination integration, you must implement Named Users in Airship. The Segment UserID must match the Named User ID in Airship.

If your named_user_id and UserID do not match, Airship will not be able to associate Identify or Track events to the proper user in Airship. This would prevent you from effectively issuing automated messages or attaching user attributes from Segment within Airship

See Tags and Named Users or the Named Users API for more information about configuring named users.

Identify

If you haven’t had a chance to review the Segment spec, take a look tounderstand what the Identify method does. An example call would look like:

analytics.identify('jill', {
  new_customer: true,
  order_completed_last_60days: false,
});

Identify calls will be sent to Airship as an identify event. When an identify event is received, Airship will use the userId to set named users tags. To take advantage of identify features, in Airship you must set up a tag group called segment-integration and a named user must exist for the userId. The value of the property name will be true/false value.

Segment Identify Events to Airship Tags Airship Tags are used for profile enrichment, message triggering, segment building, and user analytics.

Example Use cases:

  • Identify event sets an Airship tag on a user is flagged as liking a specific product category
  • Identify event sets an Airship tag on a user registers for an account

Track

Use this Destination to send Track events to Airship for message triggering and analytics.

If you haven’t had a chance to review the Segment spec, take a look to understand what the Track method does. An example call would look like:

analytics.track('Product Clicked', {
  name: 'Air Jordans',
  brand: 'Nike ',
  price: 200,
  quantity: 1,
  variant: 'Red'
});

Track calls will be sent to Airship as a track event. When a track event is received, an Airship custom event will be created. The event’s properties will be automatically added as properties on the custom event and if revenue is present that will be set at the custom event’s value.

There is a maximum limit of 20 properties for track events. A custom event will not be created for a track event whose properties count exceeds the limit.

Segment Track Events to Airship Custom Events Airship Custom Events are used to trigger automated messages for Mobile App, Web Notifications, Email, and SMS messages.

Example Use cases:

  • Track event triggers an Airship Custom Event on a user who has abandoned cart and an Airship message is triggered for reengagement
  • Track event triggers an Airship Custom Event on a user who uninstalled the app to trigger an SMS, Email, or Web Notification

Custom Events and Tags sent from Segment are automatically populated within Airship Performance Analytics reporting dashboards.

Leveraging this data in Airship

Follow the below guides for further explaination and the different ways of leveraging this data with Airship.

Personas

You can send computed traits and audiences generated using Segment Personas to this destination as a user property. To learn more about Personas, contact us for a demo.

For user-property destinations, an identify call is sent to the destination for each user being added and removed. The property name is the snake_cased version of the audience name, with a true/false value to indicate membership. For example, when a user first completes an order in the last 30 days, Personas sends an Identify call with the property order_completed_last_30days: true. When the user no longer satisfies this condition (for example, it’s been more than 30 days since their last order), Personas sets that value to false.

When you first create an audience, Personas sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

API Key

Airship generated string identifying the Bearer token.

Airship EU Data Center

Toggle this switch ON if you are implemented in Airship’s European Data Center. If you are unsure which data center you are on please reach out to support@airship.com.

App Key

Airship generated string identifying the app setup. Used in the application bundle.

Adding Airship to the integrations object

To add Airship to the integrations JSON object (for example, to filter data from a specific source), use one of the following valid names for this integration:

  • airship

  • Airship

This page was last modified: 20 Oct 2020



Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
or
Create free account