Skip to content

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.

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:

DestinationWhat you need
Amazon S3A 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 BigQueryThe Dataset and Table, and the JSON key of a service account that can insert rows into the table.
SnowflakeYour 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.
SegmentThe Write key of a Segment source of the HTTP API kind.
  1. Go to Settings › your app › Developers › Data destinations.
  2. Under Add a destination, pick the kind, and press Add.
  3. Give it a Name: what you call it here.
  4. Fill in the details from step 1.
  5. 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.

  • 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 track call per event, for the contact’s external ID. A contact with none is sent with an anonymous ID.

Each destination shows how many events it has sent, and when it was last up to date:

StatusWhat it means
Waiting for the first syncJust added. The first copy is on its way.
Up to dateEverything so far is sent.
FailingThe last copy was refused. The reason shows under it. The next copy tries the same events again, so nothing is lost.
OffSwitched off. Nothing is sent.
  • 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.