Google Cloud Storage

To set up a raw export pipeline to Google Cloud Storage (GCS) from Mixpanel, you must configure GCS to receive the exported data, then create a pipeline to export the data.

The following document summarizes the steps to edit GCS permissions so that it accepts the Mixpanel export, and provides an example request to create the pipeline.

Configure GCS to Accept Mixpanel Data

Create a destination bucket, or use an existing one.

"[email protected]" needs to be given a "Storage Object Admin" role on the bucket you are creating or intending to reuse for this purpose.

Use the Data Pipelines API

After permissions have been granted, use the Data Pipelines API to create the pipeline.

#Replace API-SECRET with your projects API secret
curl \
-d type="TYPE" \
-d from_date="VALUE" \
-d gcs_bucket="GCS-EXPORT" \
-d gcs_prefix="PREFIX-VALUE" \
-d gcs_region="REGION"
curl \
-d type="gcs-raw" \
-d from_date="2019-08-10" \
-d gcs_bucket="example-gcs-export" \
-d gcs_prefix="dwe" \
-d gcs_region="us-east-2"


Upon success this call will create the parquet file at this location in GCS:

Updated 3 months ago

Google Cloud Storage

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.