# Customer data from Segment, in both directions

> Update your Quackback users' attributes from Segment identify calls, and send segment membership back to Segment as traits for the rest of your tools to use.

Source: https://quackback.io/integrations/segment

Identify calls from Segment keep your users' attributes current in Quackback, like plan, company and role. Turn on sending back, and Quackback adds segment membership to Segment as traits.

Included in Quackback Cloud on Business and Enterprise, and in every self-hosted install.

## Segment to Quackback

From Segment into Quackback:

- Identify calls, matched to existing users by email
- Traits saved when they match a user attribute you've defined
- Signed with a shared secret you set

## Quackback to Segment

From Quackback to Segment:

- Segment membership as user traits
- Sent when you turn it on and add a write key

## What it does

- **Attributes that stay current**: Users' plan and company update as Segment sees them change.
- **Segments you can filter by**: Group customers by their attributes, then slice feedback by segment.
- **Use them elsewhere**: Send segment membership back to Segment for your other tools.

## Set it up

1. **Define your attributes**: In Quackback, add a user attribute for each Segment trait you want to keep, such as plan.
2. **Connect Segment**: Choose Segment in Settings and set a signing secret of at least 16 characters. Add a write key to send segments back.
3. **Add a destination**: In Segment, send identify events to your workspace's Segment webhook URL, signed with the same secret.

Setup guide: https://feedback.quackback.io/hc/en/articles/51-segment

## Frequently asked questions

### How are Segment users matched to Quackback users?

By the email in the identify call's traits. Quackback updates users who already exist in your workspace; an identify call for an email it doesn't know is ignored.

### Which Segment traits does Quackback save?

Only traits that match a user attribute you've defined in Quackback. Each attribute can take its value from a trait with a different name, and values are converted to the attribute's type. Other traits are left out, so your user records stay tidy.

### Can Quackback send data back to Segment?

Yes. Add your Segment source's write key and turn on sending segment membership back. When a user joins or leaves a Quackback segment, Quackback sends an identify call with a trait named after the segment.

Start a free trial: https://app.quackback.io/signup?plan=pro&from=markdown
