Skip to main content
This feature is part of the Streams paid add-on. To check what’s available for your plan, refer to Plans and Pricing. To enable it for your account, contact your MoEngage Customer Success Manager (CSM) or the Support team.

Overview

Google Cloud Storage is an enterprise public cloud storage platform that can house large unstructured data sets.

How Does MoEngage Work with GCS?

The MoEngage and GCS integration exports Campaign Interaction Events to your Google Cloud Storage buckets. You can then import these files into BigQuery for further processing and analysis.

Integration

Prerequisites

  • Ensure you have a Google Cloud Platform account with permission to create a new bucket and a service account.
  • If your system requires IP whitelisting, you must whitelist MoEngage IPs. For more information, refer here.
  • Ensure you have a GCS Connection on the App marketplace.

Set Up Your Export

  • For the full list of events and attributes, refer to the Data Export Glossary.
  • The event_time of the exported events is always in UTC.

Add a New GCS Export on the MoEngage App Marketplace

  1. On your MoEngage dashboard, go to the App Marketplace.
  2. Search for Google Cloud Storage.
  3. Go to the Integrate tab, and click + Add Integration. Add Integration option on the Google Cloud Storage Integrate tab
  4. Give your connection an identifiable name.
  5. Enter your bucket name.
  6. Optionally, select your bucket region. You can find this on your Bucket Details page.
  7. Upload the service account credential JSON file that you downloaded earlier. You can verify your Client ID and Client Email upon upload.
  8. Select which events you want to export. By default, each event is exported with standard attributes. Configuring the GCS integration on the MoEngage App Marketplace
  9. Optionally, you can test the connection. MoEngage attempts to verify whether the details you entered are correct. If there is an issue, an error is displayed that you can rectify.

Verify You Are Receiving Data Correctly

MoEngage uploads files using the following path structure:
Go to your bucket and verify that the files are present: Verifying that exported files are present in the GCS bucket

Export Process and Frequency

MoEngage dumps the data at hourly intervals.

Sample File

The exported files are in the .json.gz format. Download a sample file to inspect the structure. The exact contents will differ based on the events and attributes you opt to export.
JSON
For a list of supported events and attributes, refer to our Data Export Glossary.

Export Failure Policy

MoEngage pauses an export that keeps failing. While it is paused, MoEngage collects the events the export would have delivered, and you replay them after you fix the problem.

When MoEngage Pauses an Export

Exports to Google Cloud Storage run hourly. MoEngage will retry an export multiple times before marking it as failed. The export will be paused after 3 consecutive scheduled export failures. When MoEngage pauses an export, it alerts you and shows the export as Paused on the App Marketplace.

What Happens While an Export Is Paused

A paused Google Cloud Storage export on the Integrate tab, with Export status turned off and the Paused label beside it MoEngage collects the events the export would have delivered and keeps only the most recent 7 days. If the export stays paused for longer than a week, MoEngage drops the oldest days as newer ones come in. If an export pauses more than once before you replay, MoEngage combines the data from all those pauses, provided it falls within the 7-day window.

Resume an Export

Find the Failure Reason

On the App Marketplace, click the Integrate tab, and then hover over the Paused label on the export. MoEngage names the reason for the failure, such as a missing write permission on the destination bucket, and tells you how to fix it. The Paused label hover on the Integrate tab, showing the failure reason and what you need to do

Enable the Export

Fix the cause at your end, and then turn on Export status for the export. Do this as soon as you can, because the 7-day window keeps moving while the export stays paused. When you enable the export, MoEngage stops collecting and sets aside what it has: the last 7 days of paused data, or all of it if the pause was shorter. This is the data you can replay. It stays fixed from then on, and does not reduce further even if you wait to replay it.

Replay Paused Data

Request a Replay

MoEngage saves the data it collected while the export was paused. An export with data waiting shows a Replay available label on the Integrate tab. To replay, perform the following steps:
  1. Hover over the Replay available label, or open the kebab menu on the export.
  2. Click Replay paused data. GCS export with a Replay available label on the Integrate tab and the Replay paused data option
  3. In the Replay paused data dialog box, click Confirm. Replay paused data dialog box asking you to confirm, with the Confirm button
A replay sends everything MoEngage collected while the export was paused. MoEngage backfills the data into the date folders it would have written to at the time, rather than writing it to a new location. You can replay at any time until 30 days from the date the oldest paused data was collected. After that, the data is no longer available.
Replay before the export pauses again. If it pauses a second time before you replay, MoEngage adds the new paused data to the data still waiting from the first pause. The combined data is then trimmed back to the most recent 7 days, so if the two pauses are more than 7 days apart, the older data is lost.For example, your export pauses on day 1. You enable it but do not replay. It pauses again on day 20. Since that is 19 days later, the day 1 data falls outside the 7 day window and is gone, even though its 30 day replay window had not expired. If the second pause had happened within 7 days of the first, the day 1 data would still be included.

Replay Results

When the replay finishes, MoEngage emails the user who requested it with one of the following results: You can run only one replay per export at a time.

Avoid Duplicate Data

Every replay sends the whole collection again, because MoEngage does not deduplicate. If you replay more than once, deduplicate at your end on the event_uuid field, which is unique for each event. For the fields in the export, refer to the Data Export Glossary.

Export Paused Alerts

MoEngage alerts you when it pauses an export, so you can fix the issue and replay the data collected while the export was paused. MoEngage subscribes workspace admins to the Data Exports system alert by default, and adds the user who creates or updates an export. To subscribe or unsubscribe anyone else, go to the Alert Management page. Subscribing or unsubscribing changes notifications only for that person, and does not affect anyone else’s subscription.

Frequently Asked Questions

MoEngage is holding data it collected while the export was paused. Hover over the label or open the kebab menu, and then click Replay paused data.
MoEngage keeps only the most recent 7 days of paused data, so a three-week pause leaves only the last 7 days to replay.
MoEngage delivered some of the data and not the rest, usually because the destination rejected part of it. Fix the cause and replay again. The next replay sends the whole collection, not only the part that failed.
No. You can run only one replay per export at a time. Wait for the result email before you request another.
Every replay sends the whole collection again, because MoEngage does not deduplicate. Deduplicate at your end on the event_uuid field, which is unique for each event.
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.