# Mailgun + BigQuery

> Integrate Mailgun campaigns, automations, and leads into BigQuery with Erathos. Centralized, up-to-date marketing data ready for analysis. Free 14-day trial.

Source: https://www.erathos.com/en/pipelines/mailgun-bigquery
Em português: https://www.erathos.com/pipelines/mailgun-bigquery

Mailgun is an email delivery service that provides a reliable and scalable infrastructure to send, receive, and track emails at scale. Databricks, on the other hand, is a serverless Big Data solution that delivers robust storage and large-scale data analytics capabilities.

With Erathos, your Mailgun data lands in BigQuery in minutes, ready to be joined with other business sources in ad hoc queries, without your team having to manage ingestion infrastructure.

### What Mailgun data does Erathos sync with Databricks?

The integration automatically syncs Mailgun's main objects:

- **Contact lists** segments, tags, and inclusion criteria
- **Campaigns** status, delivery metrics, and performance per campaign
- **Automations** workflows, steps, and results of each automation
- **Engagement events** opens, clicks, conversions, and unsubscribes
- **Email metrics** open rate, CTR, bounce, and deliverability
- **Custom fields** personalized properties and tags

### Why sync Mailgun with BigQuery?

In BigQuery, you can join Mailgun data with other business sources, running ad hoc queries in seconds on high volumes without managing infrastructure.

### How it works

Erathos connects to Mailgun via their official API and syncs your data incrementally: only new or updated records are processed in each run, keeping pipelines fast and BigQuery costs predictable. You choose the sync frequency (from 5 minutes to daily), the objects to sync, and the destination dataset. Every run is tracked with full observability: runtime, rows processed, contextualized errors, and instant alerts via Slack or email if anything goes wrong.

## Data in your data warehouse in minutes

### Mailgun connector ready to use

Connect Mailgun to BigQuery in minutes. Lists, campaigns, automations, and events sync automatically—with full engagement tracking and no manual scripts.

### Total control over your Mailgun pipelines

Configure schedule, frequency, and sync type at the table level. Incremental synchronization processes only new or modified records—keeping BigQuery costs low and your analyses always up to date.

### End-to-end observability

No more finding out about Mailgun failures when the business team complains. Every run is logged with runtime, rows processed, and error context. Automatic alerts via Slack, Discord, or email as soon as something goes off script — your marketing data stays fresh for your next campaign analyses.

## Centralizing Mailgun data in BigQuery has never been easier

Erathos is a data ingestion platform for teams that need to centralize marketing data reliably. With the Mailgun connector, you can automatically move lists, campaigns, automations, and engagement events to BigQuery — with complete logs, smart alerts, and zero maintenance.

## FAQ

### What is Erathos and how can it help my company?

Erathos is a data ingestion platform built for reliability, transparency, and control. We help data teams connect tools like Mailgun to their data warehouse—with full observability into every run, zero maintenance, and none of the black-box opacity of traditional market tools.

### Which Mailgun data does Erathos sync to BigQuery?

Erathos syncs Contact Lists, Campaigns, Automations, engagement events (opens, clicks, conversions), and email metrics from Mailgun to BigQuery. Segmentation data, tags, and custom fields are also exported.

### How often does Erathos synchronize data from Mailgun to BigQuery?

You can configure synchronization frequency at the table level, from every 5 minutes up to daily. Erathos uses incremental sync—only new or updated records are processed in each run—keeping the Mailgun pipeline efficient and BigQuery costs predictable.

### What happens if a Mailgun sync fails?

Erathos automatically detects failures and sends alerts to your email, Slack, or Discord with full context—not just "job failed." Smart retries handle transient errors, and every execution is logged with run time, processed rows, and error context so your team can debug in minutes, not hours.

### Is there a free trial period for the Mailgun connector?

Yes. Every Erathos connector includes a 14-day free trial. Connect Mailgun to BigQuery and start syncing immediately—no credit card required.
