Configuring Google Cloud Storage as a destination

You’ll need to be a Staff or Admin in ChartMogul and an Admin in Google Cloud Platform to complete the steps outlined in this article. Read more about user roles and permissions.

Configure Google Cloud Storage as one of ChartMogul’s advanced destinations to export MRR movements, customers, custom attributes and tags. From there, you can send your data to a data warehouse and combine it with other datasets for further analysis.

Here’s what we cover in this article:

Resources and further reading:

Before you begin

Please review the following details before completing the steps we outline in this article.

Step 1 — Create a Google Cloud project

If you don’t have a Google Cloud project for your Cloud Storage bucket, create one:

  1. Within Google Cloud Platform, navigate to IAM and Admin > Create a Project.
  2. Enter a Project name.
  3. Optionally, click Browse in the Location field to select your Google Workspace organization.
  4. Click Create.

Step 2 — Create a Cloud Storage service account

Then, create a service account that will have permission to access the bucket. After creating the service account, you’ll download the account’s private key as a JSON file, which you’ll need when creating the destination in ChartMogul.

  1. Within Google Cloud Platform, use the Select a project drop-down to choose the project for your Cloud Storage bucket (the one you created in the previous step or an existing project).
  2. Navigate to IAM and Admin > Service Accounts.
  3. Click + Create Service Account.
  4. Enter a name for the service account, e.g., ChartMogul, in the Service account name field.
  5. Optionally, adjust the automatically generated Service account ID and describe what the service account will do in the Service account description field.
  6. Click Create and Continue.
  7. Skip the Grant this service account access to your project section and click Done.
  8. Once Google has created the account, find it in the Service accounts table, click the vertical ellipsis Actions icon and select Manage keys. Next, click Add Key > Create a new key.
  9. With JSON selected as the Key type, click Create. Your browser should then download the private key as a JSON file.
  10. Finally, navigate to Details and note your email, as you'll need this when setting up permissions.

Step 3 — Create a Cloud Storage bucket for ChartMogul

Next, create a new Cloud Storage bucket:

  1. Within Google Cloud Platform, navigate to Cloud Storage and click + CREATE BUCKET.
  2. Name your bucket according to Google’s bucket naming guidelines. Click Continue.
  3. Within Choose where to store your data, select a Location Type (Multi-region, Dual-region or Region) and your bucket’s geographic location from the Location drop-down menu. Click Continue.
  4. Optionally, adjust the settings within Choose a storage class for your data to control your costs for storage, retrieval and operations. Click Continue.
  5. Within Choose how to control access to objects, restrict your data from being publicly accessible by checking Enforce public access prevention for this bucket. Click Continue.
  6. If needed, configure data protection tools within Choose how to protect your data.
  7. Click Create.

Step 4 — Assign permissions to the bucket

Now, grant the service account access to the Cloud Storage bucket:

  1. Within Bucket details, navigate to Permissions.
  2. Click Grant Access.
  3. In the New principals field, enter the email address associated with the service account you created in the previous step. You’ll find the email in your service account’s Details section.
  4. Select Storage Object Admin from the Role drop-down.
  5. Click Save.

Step 5 — Add Google Cloud Storage as a destination

Finally, add your Google Cloud Storage as a destination in ChartMogul:

  1. Within ChartMogul, navigate to Settings & Data > Destinations.
  2. Click Add Destination and select Google Cloud Storage.
  3. Enter a unique name for your destination in the Name field.
  4. Choose how often you’d like ChartMogul to export data to your bucket, either:
    • Daily (9:00 UTC each day)
    • Weekly (9:00 UTC each Sunday) or
    • Monthly (9:00 UTC on the first day of each month)
  5. Choose the datasets you'd like to export: Screenshot of the Add a Destination dialog with some of Datasets selected.
  6. Choose the file type you'd like to export, either:
    • Parquet or
    • CSV
  7. Enter the name of your bucket as it appears on your Google Cloud Storage account in the Bucket Name field.
  8. Upload the service account’s private key JSON file your browser downloaded in Step 2.
  9. Click Save and Test Connection.

ChartMogul will send test data and, if successful, add your Cloud Storage bucket as a new destination. ChartMogul will send actual data to Google Cloud Storage with the next scheduled export depending on your Update Frequency setting.

Was this article helpful?

We’re sorry to hear that. Would you like to share more feedback?


Thanks for your feedback!