Segment

Receive events from Segment

Introduction

Segment is a popular choice for event instrumentation. If you are using Segment, you can share your event data with Kubit in a couple of ways:

  1. By configuring a Segment destination to a Kubit Snowflake account.
  2. If you are already storing the Segment event tables in Snowflake/BigQuery/Redshift/Databricks you can also share them with Kubit following the corresponding Secure Data Sharing guide.

Snowflake Destination integration steps

  1. Kubit will provide you with the Snowflake credentials for the destination.
  2. Follow the Connect Snowflake to Segment steps to add the destination.
  3. Segment will start syncing the last 30 days' worth of data for each shared table.

📘

Data sync

Once you configure the Snowflake destination, the initial sync can take up to 48h. If you are on their Business tier you can also configure the sync schedule.

Handling historical data

Optionally, to also share historical data you can use a Segment feature called Replay.

Share already persisted tables using Secure Data Sharing

There is one caveat in this case and it is that Segment tends to create 1 table for each event type, sometimes resulting in hundreds of tables containing events. Here's a couple of solutions to consider:

  1. Perhaps not all events are needed for analytics? If that's the case you can only share the tables which contain the events you actually need with Kubit.
  2. An easy way to share all events is to share the aggregate event tables - SCREENS, PAGES and TRACKS instead of the individual event tables.