RoadwayDocs

Connect a data source

Open Data sources

  1. In the left sidebar, under Admin, click Integrations.
  2. Click Data sources.

On Starter workspaces, this page shows ad platforms instead. See Ad platforms.

Direct connectors vs. warehouse-native

Direct connectors link a tool in a few clicks. The list in the app includes Google Analytics, PostHog, HubSpot, Stripe, Salesforce and Segment, plus the ad platforms. Roadway syncs raw data into a Roadway-managed warehouse.

Direct connectors need a Roadway-managed warehouse. Workspaces connected to your own warehouse don't show the Data sources tab.

Warehouse-native connects your own Snowflake, BigQuery or Databricks during workspace setup, not from the Data sources tab. Roadway reads your tables in place and writes results to a dataset in your warehouse. Choose this when your data is already modeled.

Warehouse data requirements

Table Contains
Page views / sessions Visits with anonymousID and userID.
Users One row per user with userID.
Revenue Payments with customerID and userID.
CRM Contacts and opportunities with contactID and anonymousID.
Ad spend Spend by platform, campaign and day.
Mobile measurement partners Installs and events (MMP data).

For column-level schemas, see Table schemas.

Connect BigQuery

  1. Click Connect to BigQuery.
  2. Copy the service account shown. Grant it BigQuery Job User on your project, and BigQuery Data Viewer on each source dataset Roadway reads.
  3. Create a dataset named roadway in the same location as your source data. Grant the service account BigQuery Data Editor on it.
  4. Enter your BigQuery project ID and the dataset name.
  5. Click Connect. Roadway detects the dataset location.

For narrower access and checks, see Connect BigQuery.

If the connection fails, check the project ID and that the service account has access.

Connect Snowflake

Snowflake connects with key-pair authentication.

  1. Choose Connect your data warehouse and click Connect to Snowflake.
  2. Open Snowflake setup instructions and run the SQL in Snowflake. It creates the Roadway schema, role, grants and a roadway_user. Replace the placeholders, such as [your_database] and [your_warehouse], first.
  3. Set the RSA public key on the user (ALTER USER roadway_user SET RSA_PUBLIC_KEY = '…').
  4. Back in Roadway, enter Account ID (in the form ORGNAME-ACCOUNTNAME), Database name and Warehouse.
  5. Optionally set Role (default roadway_role) and Schema (default roadway).
  6. Click Upload private key and choose a .p8, .key or .pem file.
  7. Click Connect.

Connect Databricks

Databricks connects with OAuth and a service principal.

  1. Click Connect to Databricks.
  2. Enter the Server hostname (without https://).
  3. Enter the HTTP path from your SQL warehouse's Connection Details.
  4. Enter the Unity Catalog catalog name (for example main, dev, prod) and the default schema.
  5. Enter the service principal's Client ID and Client secret.
  6. Click Connect.

If the connection fails, check the hostname, HTTP path and credentials.

Connect Google Analytics

You need Editor access to the GA4 property. Roadway links the property to BigQuery to receive your events.

  1. Go to Admin → Integrations → Data sources.
  2. On Google Analytics, click Connect.
  3. Sign in with the Google account you use for Google Analytics.
  4. Pick your property from the list. If it is missing, click Don't see it? Enter a Property ID and type the 9-digit number.
  5. Tick the streams to bring in.
  6. Click Connect.

Find the Property ID in GA4: Admin → Property details, top right, like 312908477. It is not the Measurement ID that starts with G-.

Connect HubSpot

You need to be a HubSpot Super Admin. If you aren't one, use Invite a HubSpot admin.

  1. Go to Data sources and click Connect on HubSpot.
  2. Click Authenticate your HubSpot account.
  3. Approve the Roadway app in HubSpot.
  4. Finish the connection.

If access is refused, connect again and approve every permission, or ask a HubSpot Super Admin to connect.

Connect PostHog

Exports run hourly via PostHog batch exports. PostHog charges per exported row after its free tier; importing history is not charged per row. Self-hosted PostHog is not supported.

  1. Go to Data sources and click Connect on PostHog.
  2. Click Sign in with PostHog and authorize.
  3. Pick your PostHog Cloud region (us.posthog.com or eu.posthog.com).
  4. Enter the Project ID: the number after /project/ in your PostHog URL.
  5. Optionally list your Signup event names, separated by commas. If you leave it empty, Roadway finds them and asks you to confirm.
  6. Choose Import history from a date.
  7. Click Connect.

Connect Salesforce

You need to be a Salesforce admin, or able to approve connected apps. If you aren't, use Invite a Salesforce admin.

  1. Go to Data sources and click Connect on Salesforce.
  2. Click Authenticate your Salesforce account.
  3. Approve the request in Salesforce.
  4. Finish the connection.

If Salesforce refuses the connection, your org may lack API access, or an admin may need to approve the Roadway app.

Connect Segment

Roadway only sees events from the moment the destination is on, so there is no history from before.

  1. Go to Data sources and click Connect on Segment.
  2. Generate a Roadway API key.
  3. In Segment, add the Roadway AI destination and connect it to your website and product sources.
  4. Paste the key into the destination and enable it.
  5. Back in Roadway, click I've completed the setup.

Connect Stripe

Roadway reads Stripe with a read-only key.

  1. Open Stripe's API keys page (Open Stripe API keys).
  2. Click Create a restricted key.
  3. Select Providing this key to another website.
  4. Enter Roadway as the name and roadwayai.com as the URL.
  5. Select Customize permissions for this key and set all resource permissions to Read only.
  6. Click Create key and copy the key that starts with rk_live_.
  7. In Roadway, Data sources → Stripe → Connect: enter your Account ID (starts with acct_) and paste the Read-only API key.
  8. Click Connect.

Use a restricted live key, not a secret key. Roadway syncs live data only. The account ID is in Stripe under Settings → Account details.

Disconnect a data source

  1. Go to Admin → Integrations → Data sources.
  2. Click Manage on the source.
  3. Click Disconnect and confirm.

Roadway can no longer read this workspace's data from it. You can connect it again at any time.