Latenode

How to incorporate Mixpanel analytics into your email communication by integrating it with Mailgun

This template starts when Mixpanel posts an event as JSON to a Latenode webhook. JavaScript maps email, name, and campaign. Mailgun sends the message.

Mixpanel then records that the email went out. Connect Mailgun and Mixpanel. Put the Mailgun API key on the Mailgun connection. Put the Mixpanel token on the Mixpanel connection. Paste the webhook URL into Mixpanel as the event destination.

Updated Sep 16, 2026Est. run: 5sEst. cost: $0.0003
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns Mixpanel events into Mailgun emails as they arrive
  • Starts from a Mixpanel JSON POST to a Latenode webhook
  • Keeps the Mailgun API key on the Mailgun connection
  • Records the send back on the Mixpanel profile

How it works

1
Trigger

Receive the Mixpanel event

A webhook starts the scenario when Mixpanel posts an event as JSON.

2
Logic

Map the recipient

JavaScript reads email, name, and campaign from the Mixpanel payload.

3
Action

Send with Mailgun

Mailgun sends the email from the domain you connect.

4
Action

Track the send in Mixpanel

Mixpanel records an event so the email send sits on the same profile.

Setup guide

1

Add a webhook trigger

Add a webhook trigger and copy its URL. In Mixpanel, point the outbound event at that URL as a JSON POST.

2

Connect Mailgun

Add a Mailgun connection and paste your Mailgun API key there. Choose the sending domain and from address.

3

Connect Mixpanel

Add a Mixpanel connection and paste your Mixpanel project token there.

4

Map, send, and track

Read email and campaign in JavaScript, send with Mailgun, then track the send in Mixpanel. Fire a test event from Mixpanel and confirm the inbox and the Mixpanel event.

Requirements

A Mixpanel project that can POST events to a webhook URL
A Mailgun domain and API key stored on the Mailgun connection
A Mixpanel project token stored on the Mixpanel connection
An email on the Mixpanel payload so Mailgun has a recipient

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →

123FormBuilder to Insightly: Create leads from form submissions

Manually copying form responses into your CRM wastes time and risks errors. This integration captures each New Submission event from 123FormBuilder and uses it to Create a Lead in Insightly, mapping the respondent's name, email, and custom fields directly into a new lead record. Marketing managers and sales teams can eliminate data entry and get leads into Insightly instantly for follow-up. By connecting 123FormBuilder's form capture with Insightly's CRM, you keep your sales pipeline fed without manual work.

8s~$0.002

Create a Pipeline deal from a new Discord channel message

Sales teams often miss leads buried in Discord conversations. This scenario captures every new message in a chosen Discord channel and creates a corresponding deal in Pipeline, using the message text as the deal description and the author's username as part of the deal name. Sales managers and business development reps can log inbound signals from team discussions directly into Pipeline CRM without manual data entry. The connection turns Discord into a lead source, so no opportunity slips through the cracks.

8s~$0.002

Create a Pipeline deal when a new HubSpot deal is added

Manually copying deal data from HubSpot to Pipeline wastes time and risks errors. This automation triggers on the New Deal event in HubSpot and then runs the Create Deal action in Pipeline, mapping the deal name, amount, and associated contact email and name. Sales operations teams and CRM administrators who use both HubSpot and Pipeline can eliminate duplicate data entry. HubSpot captures the initial deal, and Pipeline receives a matching record immediately, so both systems stay aligned without manual work.

8s~$0.002