Amplitude
Amplitude as a data destination
Send events from Dopt to Amplitude for analysis.
Setup
- In the Amplitude Analytics web app, click Settings in the lower left navigation. Click Projects, then find your target project. On the General tab, copy your API key and secret key. Here’s how to find your API key.
- In Dopt, navigate to Settings > Integrations.
- Click “Create Integration” and select Amplitude, select the Dopt environment you wish to send events from, paste in the Amplitude API key, and click Create.
When configuring Amplitude, you can also send a test event to check if the integration is set up correctly.
If you do, Dopt will send a dopt_amplitude_test
track event.
Events
Dopt sends 3 events downstream as track
calls.
flow_state_change
This event is fired whenever the state of a flow changes.
Example event
{
user_id: $userId,
event_type: 'flow_state_change',
event_properties: {
environment: 'development',
flow_id: 'getting-started',
flow_name: 'Getting started',
flow_version: 1,
flow_state: 'started', //started, stopped, finished, or reset
workspace: 'acme.com'
},
}
block_state_change
This event is fired whenever the state of a block changes.
Example event
{
user_id: $userId,
event_type: 'block_state_change',
event_properties: {
block_id: 'example-app-tutorial',
block_name: 'example app tutorial',
block_state: 'EXITED', //ENTERED or EXITED
block_type: '' // start, webhook, etc
environment: 'development',
flow_id: 'getting-started',
flow_name: 'Getting started',
flow_version: 1,
workspace: 'acme.com'
},
}
path_transition
This event is fired whenever a path is transitioned.
Example event
{
user_id: $userId,
event_type: 'path_transition',
event_properties: {
path_transition: 'default',
block_id: '00015', //block the path originates from
block_name: 'Start',
block_type: 'entry'
environment: 'development',
flow_id: 'getting-started',
flow_name: 'Getting started',
flow_version: 1,
workspace: 'acme.com'
},
}