Skip to main content

Import from Amplitude

Sync Amplitude behavioral cohorts to Digia Engage through a cohort webhook, with optional user properties.

This guide syncs your Amplitude cohorts to Digia Engage. Digia gives you a webhook URL, and you add it in Amplitude as a cohort webhook. Amplitude then sends who joined and left each cohort, and Digia keeps the matching audience up to date.

By the end, you should have:

  • Amplitude connected under Data → Connectors, with its webhook URL
  • an Amplitude cohort webhook syncing your cohorts
  • one Digia audience per cohort, created automatically on the first sync

Before you start​

Make sure you have:

  • Audiences enabled for your Digia Engage project (see Before you start).
  • An Amplitude project with permission to add destinations, and at least one cohort.
  • The user ID your app passes to Digia's setUserId. Usually this is Amplitude's user_id. See Match your users.
  • To import properties: user verification turned on.

Step 1: Generate the webhook in Digia​

  1. Open Data → Connectors.
  2. On the Amplitude card, click + Connect.
  3. Click Generate Inbound Webhook.
Amplitude Inbound Webhook Required dialog
Generate a webhook URL dedicated to this project.

Step 2: Copy the URL and choose the match field​

Click Copy URL next to the Inbound Webhook URL.

warning

Treat this URL like a password. Anyone who has it can send audience data to your project.

Under Match users by, the default tries user_id, then id. Keep it if your app passes Amplitude's user_id to setUserId. Otherwise pick device_id or type a property name, and click Save.

Connect Amplitude screen with Inbound Webhook URL, Match users by and setup instructions
Copy the webhook URL and confirm which field matches your app's user ID.

Step 3: Add the cohort webhook in Amplitude​

  1. In Amplitude, go to Data → Destinations → Cohort Webhooks.
  2. Paste the URL you copied.
  3. Leave the payload template empty. Digia reads Amplitude's default payload.
  4. To use properties in campaign text, select them as user properties to send.
  5. Set the sync frequency (Hourly, or every minute for cohorts under 1M users) and save.
Screenshot coming soon

Amplitude: the cohort webhook with the URL, user properties and sync frequency. Until then, see Amplitude's Webhook destination docs.

Then sync your cohorts to this destination. Digia creates an audience on the first sync of each cohort, named after it.

Back in Digia, click Done.

Step 4: Check the audience​

Open Data → Audiences. Until Amplitude sends its first sync, the source shows Waiting for first batch from Amplitude. Then the audience appears with its size and match rate.

Amplitude audience expanded on the Audiences tab, showing its source, delivery and webhook URL
The audience appears after Amplitude\'s first batch. Delivery shows when the last batch arrived.

Webhook audiences have no Sync now button; they update on Amplitude's schedule.

If membership drifts

If a sync from Amplitude is missed, Digia can't recover it on its own. If an audience looks out of step with Amplitude, re-run the cohort sync in Amplitude.

Now use the audience in a campaign.

Import properties​

Once data has arrived, open Data → Connectors and click Settings on the Amplitude row. Pick the properties to import and name each one, then click Save variables. Only user properties you chose to send in Amplitude are available.

Amplitude sends a person when they join or leave, not when a property changes. Values are as of when they joined, so prefer properties that rarely change, such as city or plan.

Troubleshooting​

SymptomWhat to do
Waiting for first batch from Amplitude for a long timeCheck the cohort is syncing to the webhook and the URL is exactly the one Digia showed.
Amplitude shows 400 Invalid amplitude payloadA custom payload template is set. Clear it so Amplitude sends its default payload.
A property you expected isn't listedSelect it as a user property to send in Amplitude, then wait for the next sync.
Only {n}% match an app userCheck Match users by against what your app passes to setUserId.