# How to Set Up Click & Open Tracking for Mailgun

> Email Deliverability How to Set Up Click & Open Tracking for Mailgun Configure Mailgun webhooks and domain tracking to see accurate click and open rate…

- Source: https://docs.ghlcustomercare.com/docs/email/general-2/how-to-set-up-click-open-tracking-for-mailgun
- Section: Email / General
- Reading time: 5 min
- Images: 2, each explained below
- Modified on Mon, 15 Jun at 7:48 AM

---
Email Deliverability

How to Set Up Click & Open Tracking for Mailgun

Configure Mailgun webhooks and domain tracking to see accurate click and open rate statistics in your CRM.

What You'll Learn

This guide walks you through two configuration steps required to track email engagement from Mailgun inside your CRM: adding a webhook that forwards all email events to the platform, and enabling click & open tracking on your Mailgun domain.

Once both steps are complete, your CRM dashboards will display accurate click rates, open rates, unsubscribes, bounces, and spam complaints for all emails sent through Mailgun.

Table of Contents

[1Prerequisites](#section-1)

[2Add the Webhook in Mailgun](#section-2)

[3Enable Click & Open Tracking on the Domain](#section-3)

[4Frequently Asked Questions](#section-faq)

## 1Prerequisites

Before you begin, make sure you have the following in place:

-   An active Mailgun account with at least one verified sending domain.
-   Admin access to your Mailgun account (required to manage webhooks and domain settings).
-   Your sending domain already connected and sending through the platform.

## 2Add the Webhook in Mailgun

Mailgun webhooks push real-time email event data to the platform. You need to add a **domain-level webhook** for all event types on each sending domain you use.

Step 1

Navigate to Webhooks in Mailgun

Log in to your Mailgun account. In the left sidebar, go to **Send → Webhooks**. Then click the **Domain-level** tab and select your sending domain from the dropdown.

Step 2

Add a New Webhook

Click **Add webhook** (top-right). In the dialog that appears, fill in the following:

-   **Description** — enter a recognizable name, e.g. _CRM Event Tracking_.
-   **HTTP post URL** — paste the URL below exactly as shown.
-   **Domain** — select your sending domain from the dropdown.
    
    
![Step 3 of 3: Domain — select your sending domain from the dropdown](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155073681879/original/UppMnlqmIll4mYTmtqAzerD-asKtY3uXJw.png)

**Step 3 of 3: Domain — select your sending domain from the dropdown**

This screenshot accompanies step 3 of 3 in the "Add the Webhook in Mailgun" section of "How to Set Up Click & Open Tracking for Mailgun". At this point in the walkthrough you domain — select your sending domain from the dropdown.
- What to choose: Domain — select your sending domain from the dropdown.
- Controls: Domain, domain-level webhook, Send → Webhooks, Domain-level, Add webhook, Description, HTTP post URL, Events, Select all, Test, Save, each sending domain

Full procedure:

1. Description — enter a recognizable name, e.g. CRM Event Tracking.
2. HTTP post URL — paste the URL below exactly as shown.
3. Domain — select your sending domain from the dropdown.  <- this image

    

Webhook URL

https://services.leadconnectorhq.com/email-isv/provider/mailgun/webhook/event

Step 3

Select All Events

Under **Events**, check **Select all** to enable every event type. This ensures the platform receives data for all of the following:

Accepted Delivered Opens Clicked Permanent failure Temporary failure Spam complaints Unsubscribes

Step 4

Test and Save

Optionally click **Test** next to the URL field to confirm the endpoint is reachable. Once confirmed, click **Save**. The webhook will appear in the domain-level webhook list.

Note

Repeat this process for **each sending domain** you have in Mailgun. Webhooks are domain-scoped, so a webhook added to one domain does not automatically apply to others.

## 3Enable Click & Open Tracking on the Domain

In addition to the webhook, Mailgun must be configured to instrument your emails with tracking links and open-tracking pixels. This is done in **Domain Settings**.

Step 1

Open Domain Settings

In Mailgun, go to **Send → Domains**. Click on your sending domain, then select the **Settings** tab.

Step 2

Enable Click Tracking

Scroll to the **Tracking** section. Next to **Click tracking**, click **Edit** and toggle the setting to **On**. Save the change.

Step 3

Enable Open Tracking

Still in the **Tracking** section, click **Edit** next to **Open tracking** and toggle it to **On**. Save the change.

![Enable Click & Open Tracking on the Domain (image 2 of 2)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155073681991/original/GUKo4XHM1Oq_5o0t0MrdFBVr1hsEOdb2WA.png)

**Enable Click & Open Tracking on the Domain (image 2 of 2)**

This screenshot appears in the "Enable Click & Open Tracking on the Domain" section of "How to Set Up Click & Open Tracking for Mailgun". For context, this section explains: Email Deliverability How to Set Up Click & Open Tracking for Mailgun Configure Mailgun webhooks and domain tracking to see accurate click and open rate statistics in your CRM. What You'll Learn This guide walks you through two configuration steps required to track email engagement from Mailgun….
- Controls: domain-level webhook, Send → Webhooks, Domain-level, Add webhook, Description, HTTP post URL, Domain, Events, Select all, Test, Save, each sending domain

Full procedure:

1. An active Mailgun account with at least one verified sending domain.
2. Admin access to your Mailgun account (required to manage webhooks and domain settings).
3. Your sending domain already connected and sending through the platform.

After enabling both settings, your domain tracking configuration should look like this:

| Setting | Required Value |
| --- | --- |
| Click tracking | On |
| Open tracking | On |
| Tracking protocol | https |
| Tracking certificate | Active |

Note

For click tracking to work correctly, a **tracking CNAME record** must be added to your domain's DNS. Mailgun will show the required CNAME under **Domain Settings → DNS Records**. If the tracking certificate shows as inactive, the CNAME is either missing or hasn't propagated yet.

You're All Set

Once the webhook is saved and tracking is enabled, your CRM will start receiving click events, open events, bounces, unsubscribes, and spam complaints in real time. Email analytics dashboards will reflect accurate engagement data for all emails sent through this Mailgun domain.

## 4Frequently Asked Questions

Q: Why am I not seeing any click or open data in my CRM even after adding the webhook?

The two most common causes are: (1) click or open tracking is not enabled in **Domain Settings → Tracking**, or (2) the webhook was added at the account level instead of the domain level. Verify both, then send a test email to confirm events start appearing.

Q: Do I need to add the webhook to every domain, or just once?

You need to add the webhook to every sending domain separately. Mailgun domain-level webhooks are scoped to a single domain and are not inherited by other domains on your account.

Q: Will enabling click tracking affect my email deliverability?

Minimal impact when configured correctly. Click tracking wraps your links through a tracking subdomain (e.g. **email.yourdomain.com**). Using your own tracking CNAME (rather than Mailgun's shared one) keeps the redirects on your domain and avoids shared-reputation issues. Ensure the tracking certificate is active to avoid broken links.

Q: The Test button on the webhook returned an error. What should I check?

Confirm the webhook URL is entered exactly as **https://services.leadconnectorhq.com/email-isv/provider/mailgun/webhook/event** with no trailing slash or extra characters. Also verify your account's network access settings allow outbound calls to external endpoints. Check the **Failure logs** tab in Mailgun Webhooks for detailed error responses.

Q: I already had a domain-level webhook. Should I update it or create a new one?

If your existing webhook points to the correct URL and has all events selected, no changes are needed. If the URL differs or some events are missing, click the three-dot menu next to the webhook and select **Edit** to update it rather than creating a duplicate.

Q: Does this setup track emails sent from all campaigns, or only specific ones?

All emails sent through the configured Mailgun domain will have events forwarded. The CRM then associates each event with the corresponding contact and campaign based on metadata embedded in the email headers at send time.

Q: What happens if the tracking CNAME record is missing?

Without the CNAME, the tracking certificate will show as inactive and click-tracked links in your emails will be broken or redirect incorrectly. Open tracking pixels may also fail to load. Add the CNAME record provided under **Domain Settings → DNS Records** in Mailgun and wait for DNS propagation (up to 48 hours).

---

Documentation for GHL Customer Care. Support: support@ghlcustomercare.com