SVG

How to load data from Delighted to Google BigQuery

Access your data on Delighted

The first step in loading your Delighted data to any kind of data warehouse solution, is to access your data and start extracting it.

Using the REST API that Delighted offers you can programmatically interact with your account in order to gain access to your NPS Survey Data. By doing so you can:

  1. Retrieve and list all survey responses
  2. Check new submissions and any updates to existing surveys.
  3. List subscribed and unsubscribed people
  4. List people whose emails have bounced

You can also retrieve some basic aggregated metrics for any user-defined time period such as the average score of all your surveys or of a specific trend or client.

In addition to the above, the things that you have to keep in mind when dealing with the Delighted API, are:

  1. Rate limits. In order to guarantee a high quality of service to all users of the API, Delighted may rate limit requests in certain usage scenarios. However, with normal API usage, it is unlikely to experience rate limits.
  2. Authentication. You can authenticate to Delighted using a private API key that is linked to your account. All API requests must be made over HTTPS and are authenticated via HTTP Basic Auth.
  3. Pagination. API endpoints that return a collection of items are always paginated.

Transform and prepare your Delighted data for Google BigQuery

After you have accessed your data on Delighted, you will have to transform it based on two main factors,

  1. The limitations of the database that the data will be loaded onto
  2. The type of analysis that you plan to perform

Each system has specific limitations on the data types and data structures that it supports. If for example, you want to push data into Google BigQuery, then you can send nested data like JSON directly.

Also, you have to choose the right data types. Again, depending on the system that you will send the data to and the data types that the API exposes to you, you will have to make the right choices. These choices are important because they can limit the expressivity of your queries and limit your analysts on what they can do directly out of the database.

Also, you have to consider that the reports you’ll get from Delighted are like CSV files in terms of their structure and you need to somehow identify what and how to map to a table into your database.

Load data from Delighted to Google BigQuery

If you want to load Delighted data to Google BigQuery, you have to use one of the following supported data sources.

  1. Google Cloud Storage
  2. Sent data directly to BigQuery with a POST request
  3. Google Cloud Datastore Backup
  4. Streaming insert
  5. App Engine log files
  6. Cloud Storage logs

From the above list of sources, 5 and 6 are not applicable in our case.

For Google Cloud Storage, you first have to load your data into it, there are a few options on how to do this, for example, you can use the console directly as it is described here and do not forget to follow the best practices.

Another option is to post your data through the JSON API, as we see again APIs play an important role in both the extraction but also the loading of data into our data warehouse. In its simplest case, it’s just a matter of one HTTP POST request using a tool like CURL or Postman.

After you have loaded your data into Google Cloud Storage, you have to create a Load Job for BigQuery to actually load the data into it, this Job should point to the source data in Cloud Storage that have to be imported, this happens by providing source URIs that point to the appropriate objects.

The best way to load data from Delighted to Google BigQuery and possible alternatives

So far we just scraped the surface of what can be done with Google BigQuery and how to load data into it. The way to proceed relies heavily on the data you want to load, from which service they are coming from, and the requirements of your use case.

Things can get even more complicated if you want to integrate data coming from different sources. A possible alternative, instead of writing, hosting, and maintaining a flexible data infrastructure, is to use a product like RudderStack that can handle this kind of problem automatically for you.

RudderStack integrates with multiple sources or services like databases, CRM, email campaigns, analytics, and more. Quickly and safely move all your data from Delighted into Google BigQuery and start generating insights from your data.

Sign Up For Free And Start Sending Data
Test out our event stream, ELT, and reverse-ETL pipelines. Use our HTTP source to send data in less than 5 minutes, or install one of our 12 SDKs in your website or app.
Don't want to go through the pain of direct integration? RudderStack's Delighted integration makes it easy to send data from Delighted to Google BigQuery.