# Connect Your Data

URL: https://www.digia.tech/docs/user/connect-your-data

Bring audiences and user properties into Digia Engage from PostHog, Segment, Mixpanel, Amplitude, GA4, Metabase or a CSV for Digia-decided campaigns.

Bring the user data you already have in other tools into Digia Engage, then use it to decide who sees a campaign and to personalize its text.

This works for campaigns that **Digia decides** (seeDigia as Your CEP ). Campaigns your CEP sends don't use it.

## What you can bring in

| Data | Example | Where you use it | **Audiences** : groups of users | A PostHog cohort "Chronic care subscribers", a GA4 audience, a CSV of user IDs | **Trigger → Imported audiences** in a campaign: show it to an audience, or skip one | **User properties** | A user's `plan` or `city` | Conditions in **Who sees it** , and personalized text such as `Hi {{first_name}}` 

## Supported sources

Each source sends data to Digia in one of three ways. The way it works decides how often an audience updates and what you can do with it.

| Source | How data arrives | How often it updates | User properties | Guide | **PostHog** | Digia reads it | Every hour, or **Sync now** | Yes | Import from PostHog | **Google Analytics 4 / Firebase** | Digia reads it | Once a day, or **Sync now** | No | Import from GA4 / Firebase | **Metabase** | Digia runs a saved question | Every hour, or **Sync now** | Yes, from other columns | Import from Metabase | **Segment** | The tool sends it to a Digia webhook | When a user joins or leaves | Yes | Import from Segment | **Mixpanel** | The tool sends it to a Digia webhook | Every 30 minutes (Mixpanel's schedule) | Yes | Import from Mixpanel | **Amplitude** | The tool sends it to a Digia webhook | Hourly or every minute (Amplitude's schedule) | Yes | Import from Amplitude | **File upload (CSV)** | You upload a file | When you replace the file | Yes, from extra columns | Import a CSV file 

CleverTap, MoEngage, WebEngage, Braze, Iterable, Klaviyo, OneSignal, Airship and mParticle are listed as **Coming soon** . Tell us which one you need.

## Before you start

- **Audiences must be enabled for your project.** It is in early access. Without it, the **Data** page shows *Audiences are in early access* with a **Request access** button. Admins and maintainers can click it, and we turn it on for the project.
- **Your app must identify users.** Digia matches imported people to app users through the user ID your app passes to `setUserId` . SeeStep 4: Identify users .

## The Data page

Open **Data** in the dashboard. It has four tabs:

| Tab | What it holds | **Connectors** | Tools you import people and their properties from. | **Events** | Moments in your app that a campaign can fire on, or be measured against. | **Audiences** | Groups of people a campaign can be aimed at. | **Users** | Test profiles that see Test Cohort campaigns. 

![Data page, Connectors tab, with the list of sources you can connect](/docs/img/engage/user-guides/data/connectors-empty.webp) Connect a tool once on the Connectors tab. Every audience you import from it reuses the same connection.Each tool can be connected once per project. Once a source is connected, its card moves to the top with a **Connected** badge, the number of audiences and properties it feeds, and **Settings** and **Remove** buttons. Webhook sources also have **Copy URL** .

![Connectors tab with Amplitude, CSV Upload, Mixpanel and Segment connected](/docs/img/engage/user-guides/data/connectors-connected.webp) Connected sources sit at the top with their audience and property counts.
## Match your users

This is the step that most often goes wrong, so it is worth understanding before you connect anything.

When Digia imports a person, it needs to know which value in your tool is the **same user ID your app passes to `setUserId`** . If the two don't match, nobody in the audience is recognized in the app, and the campaign reaches no one.

Most sources let you choose this field under **Match users by** :

- **Default** uses the field Digia expects for that tool, for example `userId` for Segment.
- **Suggested** fields are common choices for that tool.
- Fields marked **{n}% have it** were seen in data already received.
- You can also type any field name.
People without a value in the field you choose are left out of the audience, and the count of people left out is shown on the audience. You can change the field later under **Settings** on the source. Digia then rebuilds its audiences.

GA4 / Firebase always matches on its **User-ID** . A CSV file and a Metabase question match on the column you choose.

tip
Not sure which field your app uses? Ask your developers what they pass to `setUserId` , then pick the field in your tool that holds the same value.

## Import user properties

Besides membership, you can import properties such as `plan` or `city` and use them in campaigns. You pick each property and give it a name. **The name you give is what you type in campaign text** , for example `{{plan}}` , not what the source calls it.

- Names can't contain `.` or start with `$` . Digia suggests a clean name for you.
- Property choices apply to every audience from that source.
- Properties are optional. An audience imports either way.
- For webhook sources (Segment, Mixpanel, Amplitude), a property's value is as it was when the person joined the audience. These tools don't send property changes on their own, so prefer properties that rarely change, such as city or plan.
- If your app also sets an attribute with the same name, the app's value wins.

### Turn on user verification

Imported properties are private, so Digia only sends them to an app that proves who the user is. Until verification is on, the property picker shows *Variables need user verification* instead. Audiences work without it.

1. Open **Project Settings → User verification** and click **Set up** .
2. Give the secret to your developers. Your server signs each user ID with it, and the app passes that signature (the **user hash** ) to the SDK. SeeStep 4: Identify users . Never ship the secret in the app.
3. The status changes to **Working** once the first verified call arrives.
![Project Settings, User verification section](/docs/img/engage/user-guides/data/user-verification.webp) Turn on user verification so imported properties can reach your app.note
Flutter, Android, iOS and React Native apps can all send this proof, on a recent enough SDK: Flutter 2.1.0, Android 3.4.0, iOS 4.4.0 or React Native 3.5.0. On an older SDK, audiences import and target as usual, but imported properties stay locked.

## Check an audience

Open **Data → Audiences** to see every imported audience. Each row shows its size, when it last synced, and how many of its people match an app user. Click a row to see details: imported properties, people left out, the source, and its schedule.

![Audiences tab listing imported audiences with size, sync time and match rate](/docs/img/engage/user-guides/data/audiences-list.webp) Each audience shows its source, size, last sync and match rate.A badge appears on an audience that needs attention:

| Badge | What it means | What to do | **Waiting for first batch from {tool}** | A webhook source hasn't sent anything yet. | Check the destination in the tool, then trigger a sync there. | **Never synced, so campaigns using it cannot fire** | The first sync hasn't finished. | Wait, or click **Sync now** . | **Only {n}% match an app user** | Most imported IDs don't belong to anyone who has opened the app. | Check **Match users by** . Users who haven't opened the app yet can't be reached until they do. | **No users matched (check User-ID)** | GA4 sent IDs that match no app user. | Make sure GA4's User-ID is the same ID your app passes to `setUserId` . | **Last sync failed** | The last sync hit an error. The message is shown. | See the troubleshooting section of the source's guide. The previous members stay in place. | **Out of date** | The audience hasn't synced for 48 hours. | Click **Sync now** , or check the tool is still sending. 

To delete an audience, click its trash icon. Remove it from any live campaigns first. To remove a source, delete the audiences it feeds first.

## Use your data in a campaign

In the campaign editor's **Trigger** step, open **Imported audiences** :

1. Click **+ Add an audience…** and pick one.
2. Choose **Show to** (only people in the audience see the campaign) or **Skip** (people in it never do).
Good to know:

- If you add several **Show to** audiences, a person in any of them qualifies.
- A **Skip** always wins, even if the person is also in an audience you show it to.
- The app refreshes membership about every 15 minutes, so a new import can take that long to apply.
- A campaign can't be activated while it targets an audience that has never synced.
- Imported properties of the audiences you target appear under **Insert variable** in campaign text.
