Introduction
GrowthBook is an open-source platform to help companies make data-driven product decisions with feature flags and A/B tests.MoEngage × Growthbook
The MoEngage and Growthbook integration allows you to conduct multiple A/B experimentations using feature flags on your app or website and track their performance via MoEngage Event Tracking on Growthbook.Integration
- Ensure you have MoEngage SDK installed on your app or website.
- Ensure you have Growthbook SDK installed on your app or website.
- Ensure you have either BigQuery Exports or Redshift Exports enabled for your app.
Tracking your Growthbook experiments on MoEngage
In order to successfully run experiments and track them on MoEngage, you need to call MoEngage SDK’strack_event() function inside Growthbook SDK’s trackingCallback function:
MoEngage Tracking
Setting up MoEngage as a Data Source on Growthbook
In order for Growthbook to view your experiments’ performances, you need to export the events from MoEngage to your data warehouse. MoEngage currently supports exports to Redshift and BigQuery.MoEngage × Growthbook via BigQuery
Follow our guide on BigQuery Exports to set up the exports for your MoEngage App. On the App marketplace, make sure to selectGROWTHBOOK_EXPERIMENT_VIEWED as one of the events to export.
- Once data starts flowing into your BigQuery database, head over to Growthbook >> Metrics and Data (side menu) >> Data Sources.
- Click on ”+ Add Data Source”.
- Select “Use Custom Source” from the list of Event Sources.

| Field | Description | Value to be chosen |
|---|---|---|
| Data Source Type | Select “BigQuery” as your Data Source Type. | BigQuery |
| Display Name | Give this source an identifiable name. | MoEngage |
| Description | You can leave this blank. |
- Click “Save” once you have entered all the information.
- Select your identifier type as
user_idif you want to track registered users on MoEngage. - Under “Experiment Assignment Queries”, click on Edit option from the actions menu of “Logged-in Users”:

- From the popup, click on the “Customise SQL” button.
- Replace the SQL with the following:
<your-dataset>, <your-schema> and <your-table-name> with the actual names that you used to set up BigQuery Exports on MoEngage.
- You can test your query to see a preview of the users who were involved in your experiment.
- Once satisfied with the results, click Save to save this custom SQL query.
- Click Save again to save the Experiment Assignment Query for Logged-in Users.
MoEngage × Growthbook via Redshift
Follow our guide on Redshift Exports to set up the exports for your MoEngage App. On the App marketplace, make sure to selectGROWTHBOOK_EXPERIMENT_VIEWED as one of the events to export.
- Once data starts flowing into your Redshift database, head over to Growthbook >> Metrics and Data (side menu) >> Data Sources.
- Click on ”+ Add Data Source”.
- Select “Use Custom Source” from the list of Event Sources.

| Field | Description | Value to be chosen |
|---|---|---|
| Data Source Type | Select “Redshift” as your Data Source Type. | Redshift |
| Display Name | Give this source an identifiable name. | MoEngage |
| Description | You can leave this blank. |
- Click “Save” once you have entered all the information.
- Select your identifier type as
user_idif you want to track registered users on MoEngage. - Under “Experiment Assignment Queries”, click on Edit option from the actions menu of “Logged-in Users”:

- From the popup, click on the “Customise SQL” button.
- Replace the SQL with the following:
<your-schema> and <your-table-name> with the actual names that you used to set up Redshift Exports on MoEngage.
- You can test your query to see a preview of the users who were involved in your experiment.
- Once satisfied with the results, click Save to save this custom SQL query.
- Click Save again to save the Experiment Assignment Query for Logged-in Users.