Skip to main content

Introduction

BigQuery is a fully managed, serverless data warehouse available on the Google Cloud Platform (GCP). It allows you to perform complex analytics on terabytes of data in real time without managing infrastructure

MoEngage <> BigQuery

The MoEngage and BigQuery integration uses MoEngage Google Cloud Storage (GCS) Data Imports and Exports to transfer user and event data to Google BigQuery for advanced analytics.

Integration

  • Ensure you have a BigQuery account with the required permissions to create/edit BigQuery instances, roles, and policies.
  • It is optional to create a new user. However, you must have access to create a new user in your BigQuery database.
  • If your system requires IP whitelisting, you must allowlist MoEngage IPs. For more information, refer here.
  • Ensure you have a BigQuery Connection in the App marketplace.
    Exports to BigQuery are part of the Streams add-on. Contact your MoEngage customer success manager (CSM) to enable this feature for your account.
  • If not done already, you must set up a MoEngage <> BigQuery integration for your account. For more information, refer to the BigQuery Integration help doc.

Export Events from MoEngage to BigQuery

Step 1: Ensure Your User’s Assigned Role Has Required Permissions

To successfully set up and execute a BigQuery export, your service account or user must have the following permissions based on the action being performed:
  • To Create a Connection: To establish a new BigQuery connection within the MoEngage App Marketplace, the user must have the BigQuery Data Viewer and BigQuery Job User roles. This allows MoEngage to validate the project and dataset details. For more information, refer here.
  • To Perform Exports: To execute the actual data transfer, your service account must be assigned the BigQuery Data Editor role. This grants MoEngage the necessary permissions to read and write data to your specific BigQuery tables.

Step 2: Add a New BigQuery Export in the MoEngage App Marketplace

  • For a full list of events and attributes, refer to the Data Exports Glossary.
  • The event\_time of exported events is always in UTC.
  • MoEngage does not currently support exporting historical data.
To add a new BigQuery export, perform the following steps:
  1. On the left navigation menu in the MoEngage UI, click App marketplace.
  2. On the App Marketplace page, search for BigQuery.
  3. Click the Google BigQuery tile.
  4. On the Google BigQuery page, go to the Integrate tab and click +Add Export.
  5. Enter the following details:
  6. Click Save export.
Now, MoEngage populates the newly created table with events every hour.

Export Process and Frequency

After you save the export, MoEngage creates a destination table in your dataset. New event data is then appended to this same table at hourly intervals: Initial action: MoEngage creates the table when the first export is triggered. Recurring action: MoEngage adds (appends) data to the same table every hour.

Sample Table Structure

If you do not specify a table name in the export configuration, MoEngage creates a single table in your dataset using the following format:
moe_events_<table_creation_timestamp>
Note: This table is created once per connection. All hourly exports and different event types configured under this connection are consolidated and appended to this specific table. The overall structure of the table remains fixed for all event types. Any new user property or event attribute that is exported will be included in the user_attributes or event_attributes column, respectively. All events are consolidated in a single table containing necessary information, such as event names and event times, for easy analysis:

Frequently Asked Questions

It typically takes up to 30 minutes for the automated data exports to be set up for your account and for you to start seeing data there.
Yes, if you need to export new events at a later time, you can always edit your configuration on the App Marketplace and get the new events added to your exports.
As of now, you cannot export historical data using Automated Data Exports. Once configured, you will start seeing data for each event from the time you enabled your exports.
If your billing plan does not cover this already and you need to get this enabled at a later time, you would need to work with your Customer Success Manager to get this included in your billing plan. Based on the amount of data that MoEngage will place in your Data warehouse/Partner/API on a monthly basis, this could lead to additional charges.
No, Data Exports is primarily built to export your Events in near real-time, and user attributes in MoEngage are updated asynchronously, so it is currently not possible to guarantee the latest values of user attributes in the exports.