Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Survicate (Actions) Destination


Destination Info
  • Accepts Page, Alias, Group, Identify and Track calls.
  • Refer to it as Survicate (Actions) in the Integrations object
  • This destination is not compatible with Destination Insert Functions.
  • This integration is partner owned. Please reach out to the partner's support for any issues.

Survicate(link takes you to an external page) is a complete toolkit for customer feedback.

This destination is maintained by Survicate. For any issues with the destination, contact the Survicate Support team.


Getting started

getting-started page anchor
  1. From the Segment web app, click Destinations.
  2. Search for "Survicate (Actions)" in the Catalog, select it, and choose which of your sources to connect the destination to.
  3. Enter the "Workspace Key" into your Segment Settings UI which you can find from your Survicate Workspace Settings(link takes you to an external page).

Property nameTypeRequiredDescription
Workspace Keystring
required

The workspace key for your Survicate account.


Survicate (Actions) has the following presets

Preset NameTriggerDefault Action
Identify GroupEvent type = "group"Identify Group
Track EventEvent type = "track"Track Event
Identify UserEvent type = "identify"Identify User

Build your own Mappings. Combine supported triggers with the following Survicate-supported actions:

(information)

Mapping limits per destination

Individual destination instances have support a maximum of 50 mappings.

Track Event

track-event page anchor

Invoke survey with Segment Track event

Track Event is a Web action. The default Trigger is type = "track"

Property nameTypeRequiredDescription
Event nameSTRING
required

The event name


Event PropertiesOBJECT

Optional

Object containing the properties of the event

Send group traits to Survicate

Identify Group is a Web action. The default Trigger is type = "group"

Property nameTypeRequiredDescription
Group IDSTRING
required

The Segment groupId to be forwarded to Survicate


TraitsOBJECT
required

The Segment traits to be forwarded to Survicate

Set visitor traits with Segment Identify event

Identify User is a Web action. The default Trigger is type = "identify"

Property nameTypeRequiredDescription
TraitsOBJECT
required

The Segment traits to be forwarded to Survicate


If you're not familiar with the Segment Specs, take a look to understand what the Identify method does. An example call would look like:

1
analytics.identify('userId123', {
2
email: 'john.doe@example.com',
3
jobTitle: 'CEO',
4
companySize: '50'
5
});

When you call Identify, we pass Segment traits as respondents' attributes to Survicate. They can be used to trigger web surveys or filter survey results.

All traits passed in Identify calls will be available in Survicate - once you view a respondent profile or export survey data.

All camelCase attribute keys are translated to snake_case.

All object attributes will be flattened to attributes prefixed by object key. All array attributes will be omitted.

1
analytics.identify('1234', {
2
address: {
3
street: '6th St',
4
city: 'San Francisco',
5
state: 'CA',
6
postalCode: '94103',
7
country: 'USA'
8
},
9
categories: ['startup','SaaS']
10
});

The above described call creates following respondent's traits in Survicate:

keyvalue
id1234
address_street6th St
address_citySan Francisco
address_stateCA
address_postal_code94103
address_countryUSA

Categories attribute is omitted as it is an array attribute.


If you're not familiar with the Segment Specs, take a look to understand what the Group method does. An example call would look like:

1
analytics.group('group123', {
2
name: 'Company Inc.'
3
});

All Group traits will be passed to respondent attributes with group_ prefix. All camelCase attribute keys are translated to snake_case. All object attributes will be flattened to attributes prefixed by object key. All array attributes will be omitted.

1
analytics.group('group123', {
2
name: 'Company Inc.',
3
address: {
4
street: '6th St',
5
city: 'San Francisco',
6
state: 'CA',
7
postalCode: '94103',
8
country: 'USA'
9
},
10
categories: ['startup','SaaS']
11
});

The above described call creates the following respondent's traits in Survicate:

keyvalue
group_idgroup123
group_nameCompany Inc.
group_address_street6th St
group_address_citySan Francisco
group_address_stateCA
group_address_postal_code94103
group_address_countryUSA

Categories attribute is omitted as it is an array attribute.


A Segment track call, f.ex:

1
analytics.track('plan_purchased', {
2
plan: 'Pro Annual',
3
accountType : 'Facebook'
4
});

will trigger a Survicate call that sends the event name and properties to Survicate.

If you want to trigger your survey on a Segment event, you are able to do that by setting that condition in the panel in the targeting tab in the section: "When a user triggers an event" under "Where would you like to show the survey".

When the Segment event fires and other targeting conditions you've set in the panel are met - your survey will show.

Event properties are optional.

Sending survey answers to Segment

sending-survey-answers-to-segment page anchor

Once the Segment integration is enabled in Survicate Integrations tab, it starts sending track events from your client-side source. Here's a sample call that will be triggered when a survey is answered.

1
analytics.track('survicate_survey_answered', {
2
answer: 'Great suppport!',
3
answer_type: 'text',
4
question: 'What makes us stand out from the competition?',
5
survey: 'Advantages Over Competition Research',
6
});

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

Property nameTypeRequiredDescription
Workspace Keystring
required

The workspace key for your Survicate account.