Skip to main content

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 (see Digia as Your CEP). Campaigns your CEP sends don't use it.

What you can bring in​

DataExampleWhere you use it
Audiences: groups of usersA PostHog cohort "Chronic care subscribers", a GA4 audience, a CSV of user IDsTrigger → Imported audiences in a campaign: show it to an audience, or skip one
User propertiesA user's plan or cityConditions 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.

SourceHow data arrivesHow often it updatesUser propertiesGuide
PostHogDigia reads itEvery hour, or Sync nowYesImport from PostHog
Google Analytics 4 / FirebaseDigia reads itOnce a day, or Sync nowNoImport from GA4 / Firebase
MetabaseDigia runs a saved questionEvery hour, or Sync nowYes, from other columnsImport from Metabase
SegmentThe tool sends it to a Digia webhookWhen a user joins or leavesYesImport from Segment
MixpanelThe tool sends it to a Digia webhookEvery 30 minutes (Mixpanel's schedule)YesImport from Mixpanel
AmplitudeThe tool sends it to a Digia webhookHourly or every minute (Amplitude's schedule)YesImport from Amplitude
File upload (CSV)You upload a fileWhen you replace the fileYes, from extra columnsImport 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. See Step 4: Identify users.

The Data page​

Open Data in the dashboard. It has four tabs:

TabWhat it holds
ConnectorsTools you import people and their properties from.
EventsMoments in your app that a campaign can fire on, or be measured against.
AudiencesGroups of people a campaign can be aimed at.
UsersTest profiles that see Test Cohort campaigns.
Data page, Connectors tab, with the list of sources you can connect
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
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. See Step 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
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
Each audience shows its source, size, last sync and match rate.

A badge appears on an audience that needs attention:

BadgeWhat it meansWhat 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 fireThe first sync hasn't finished.Wait, or click Sync now.
Only {n}% match an app userMost 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 failedThe 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 dateThe 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.