Send your events to a warehouse
A data destination gets a copy of your app’s events, every few minutes. Use it to keep your events in your own warehouse or data platform. PurrCRM can send to:
- Amazon S3, or any S3-compatible storage
- Google BigQuery
- Snowflake
- Segment
Only owners and admins can add destinations. An app can have up to 10.
Events recorded before you add a destination are not sent. An erased contact’s events are never sent again. What was already sent stays where it is.
1. Get ready at the other end
Section titled “1. Get ready at the other end”For BigQuery and Snowflake, make a table first, with these columns:
event_key, app_id, source, event_id, name, guest_id, external_id, occurred_at, received_at, props, app_version, platform
props is JSON, occurred_at and received_at are timestamps, and the rest are text. The page shows the same list under The table’s columns.
A row can arrive twice. event_key is the same each time, so you can leave out the copies.
Then get the details for your kind of destination:
| Destination | What you need |
|---|---|
| Amazon S3 | A Bucket, and an access key allowed to put objects in it: its Access key ID and Secret access key. For storage that isn’t Amazon’s, also its Endpoint, such as storage.example.com. |
| Google BigQuery | The Dataset and Table, and the JSON key of a service account that can insert rows into the table. |
| Snowflake | Your Account identifier (such as myorg-myaccount), a User, the Database, Schema and Table, and that user’s unencrypted private key, in PEM. Set the key’s public half on the user with ALTER USER … SET RSA_PUBLIC_KEY. |
| Segment | The Write key of a Segment source of the HTTP API kind. |
2. Add the destination
Section titled “2. Add the destination”- Go to Settings › your app › Developers › Data destinations.
- Under Add a destination, pick the kind, and press Add.
- Give it a Name: what you call it here.
- Fill in the details from step 1.
- Press Add.
The next events go to it within a few minutes.
To check it works straight away, press Send a test. It writes one test row, named crm_test.
What arrives
Section titled “What arrives”- Amazon S3: a gzip file of events, one per line in JSON, in folders by year, month and day. Under Folder, you can choose where in the bucket they go, such as
crm/events/. - BigQuery and Snowflake: one row per event in your table.
- Segment: one
trackcall per event, for the contact’s external ID. A contact with none is sent with an anonymous ID.
Keep an eye on it
Section titled “Keep an eye on it”Each destination shows how many events it has sent, and when it was last up to date:
| Status | What it means |
|---|---|
| Waiting for the first sync | Just added. The first copy is on its way. |
| Up to date | Everything so far is sent. |
| Failing | The last copy was refused. The reason shows under it. The next copy tries the same events again, so nothing is lost. |
| Off | Switched off. Nothing is sent. |
Change, pause or delete it
Section titled “Change, pause or delete it”- Change it: press Edit. To keep a secret as it is, leave its field empty. Press Save.
- Pause it: press Edit, untick Send events to it, and press Save. Tick it again to carry on.
- Delete it: press Delete. Nothing more is sent to it, and its key is deleted.
A destination’s kind can’t change. To send somewhere else, add another destination.