# Click tracking not working

**URL:** <https://forum.mautic.org/t/click-tracking-not-working/11770>\
**Category:** Product Support\
**Created:** [November 25, 2019, 12:33pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770 "2019-11-25T12:33:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [November 25, 2019, 12:33pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/1 "2019-11-25T12:33:48Z")

</div>

**Your software**  
My Mautic version is: 2.15.3  
My PHP version is: 7.2.6

**Your problem**  
I’m trying to setup click tracking on my email for subscribers to double opt-in, however the click tracking is not working what so ever. It is not detecting any visits on the link. I have tried both on a Mautic contact form and on Wordpress with the Mautic plugin. The tracking pixel was on both pages.

My campaign setup is the following:

 ![campaign](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5bc7708edfca440948a72636c2a5f0383ac2e0fb.png)

The campaign does track if the email is opened, but not if the link is clicked. The links are identical in the email contents as in the url trigger.

Tracking script is present on target page:  
 ![tracking](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cd3c5c828344b14cb7ec990cd2e7e3d01a2e6a7d.png)

These errors are showing in the log:  
Errors related to SSL, nothing to do with the issue at hand.

Steps I have tried to fix the problem:  
Using a Mautic Landing page.  
Using a Wordpress page with the plugin.  
Using a blank html page with just the tracking pixel.  
Creating a new campaign.  
We have tried clicking the link on numerous devices, from different mail providers with the same result.

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [November 28, 2019, 1:48pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/2 "2019-11-28T13:48:05Z")

</div>

Bumping this as I still haven’t solved the issue. Any help would be greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [November 28, 2019, 6:03pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/3 "2019-11-28T18:03:13Z")

</div>

Are you testing this locally, or on a live server? Localhosts don’t track clicks unless you are using dev mode, as far as I am aware.

How are you inserting the links? Are you using the insert link button on the editor? If you insert directly without using the editor I think they are not tracked, from memory!

Ruth

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [November 28, 2019, 7:09pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/4 "2019-11-28T19:09:04Z")

</div>

Thank you for your reply! It is hosted on a live server. The link was embedded as a hyperlink, using the email builder.

Best,  
Serty

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [December 3, 2019, 8:28am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/5 "2019-12-03T08:28:54Z")

</div>

Bumping this once more. Still no solution found unfortunately.

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [December 3, 2019, 9:08am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/6 "2019-12-03T09:08:41Z")

</div>

@serty Which email provider are you using?

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [December 3, 2019, 9:27am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/7 "2019-12-03T09:27:05Z")

</div>

@Yosu_Cadilla We’re using locally hosted mail servers. We tried receiving the emails on several providers and they’re being received but there’s no luck with click tracking. The emails from the campaign are working just fine. Test emails are working,form-signup emails are working and so on. The issue arises only when click tracking is being used.

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [December 8, 2019, 9:37am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/8 "2019-12-08T09:37:49Z")

</div>

Bumping once again. Issue is still unresolved.

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [December 8, 2019, 11:22am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/9 "2019-12-08T11:22:21Z")

</div>

You’re using local email server for receiving or for sending or both?

---

<div class="post-metadata">

**Author:** ![Omer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omer/32/661_2.png) [@Omer](https://forum.mautic.org/u/Omer)\
**Post date:** [December 11, 2019, 9:05am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/10 "2019-12-11T09:05:00Z")

</div>

Hi there everyone, we have the same issue.  
Running a live instance on mautic 2.15.3 and php 7.2.24

Links in emails are getting re-written but actions are not being tracked.

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [December 11, 2019, 8:22pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/11 "2019-12-11T20:22:14Z")

</div>

We’ve tried both local and remote for receiving. Local for sending.

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [December 11, 2019, 8:22pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/12 "2019-12-11T20:22:36Z")

</div>

Sorry to hear you’re experiencing this too. If you find a solution, please let me know!

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [December 13, 2019, 10:24am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/13 "2019-12-13T10:24:44Z")

</div>

@serty @Omer Is any of you guys running Mautic behind a proxy (or cloudflare or other similar services)?

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [December 17, 2019, 2:06pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/14 "2019-12-17T14:06:19Z")

</div>

No, nothing like that. Issue is unfortunately still unresolved.

---

<div class="post-metadata">

**Author:** ![alban](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alban/32/1959_2.png) [@alban](https://forum.mautic.org/u/alban)\
**Post date:** [December 17, 2019, 5:53pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/15 "2019-12-17T17:53:17Z")

</div>

When hovering a link in your email, do you see your Mautic domain, or the final URL you are attempting to send people to?

---

<div class="post-metadata">

**Author:** ![serty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/serty/32/733_2.png) [@serty](https://forum.mautic.org/u/serty)\
**Post date:** [December 22, 2019, 11:30am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/16 "2019-12-22T11:30:26Z")

</div>

I see my own domain with a click tracking attached to it: [https://xxx.xxx.dk/r/1dfffd3af216dd2f4a9d89a74?ct=YTo1OntzOjY6InNvdXJjZSI7YToyOntpOjA7czoxNDoiY2FtcGFpZ24uZXZlbnQiO2k6MTtpOjI7fXM6NToiZW1haWwiO2k6NDtzOjQ6InN0YXQiO3M6MjI6IjVkZDY5Y2Q3OTBlOTYzNTE5NDgwODUiO3M6NDoibGVhZCI7aToyODtzOjc6ImNoYW5uZWwiO2E6MTp7czo1OiJlbWFpbCI7aTo0O319&](https://xxx.xxx.dk/r/1dfffd3af216dd2f4a9d89a74?ct=YTo1OntzOjY6InNvdXJjZSI7YToyOntpOjA7czoxNDoiY2FtcGFpZ24uZXZlbnQiO2k6MTtpOjI7fXM6NToiZW1haWwiO2k6NDtzOjQ6InN0YXQiO3M6MjI6IjVkZDY5Y2Q3OTBlOTYzNTE5NDgwODUiO3M6NDoibGVhZCI7aToyODtzOjc6ImNoYW5uZWwiO2E6MTp7czo1OiJlbWFpbCI7aTo0O319&)

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [January 28, 2020, 12:38am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/17 "2020-01-28T00:38:52Z")

</div>

@serty @alban

Did you guys solve the issue?  
In my case, it was related to heathers and proxies, solved a while ago and been working like a charm since.  
Please think twice before discarding proxies as a possible cause, proxies are everywhere nowadays.

Oh! and triple check your mtc.js is working as it is supposed to…

---

<div class="post-metadata">

**Author:** ![assimerq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/assimerq/32/691_2.png) [@assimerq](https://forum.mautic.org/u/assimerq)\
**Post date:** [September 17, 2020, 11:15am UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/18 "2020-09-17T11:15:06Z")

</div>

Hi,  
I have the same issue.  
could you please explain better which was the issue?  
My installation is behind a firewall that NATs the ip address

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [September 17, 2020, 12:04pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/19 "2020-09-17T12:04:52Z")

</div>

The issue is that Mautic needs to know the original IP from the visitor.  
To confirm you have the same issue, tail your HTTP server logs and check if the real IPs are shown there or not.

There are a few ways to force passing that IP through proxies via heathers, I would suggest that you dig into the proxy protocol. Most services have implemented it (including AWS services) and it seems like the way to go, but there’s not much basic documentation around yet.

You need to implement it in all the layers your tracking data goes through, for example your bastion, LB, http server, etc.

In my case, there was a hidden (to me) proxy in LXC/LXD that I was unaware of.

---

<div class="post-metadata">

**Author:** ![Warren](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/warren/32/4292_2.png) [@Warren](https://forum.mautic.org/u/Warren)\
**Post date:** [January 18, 2021, 1:41pm UTC](https://forum.mautic.org/t/click-tracking-not-working/11770/20 "2021-01-18T13:41:39Z")

</div>

@Yosu_Cadilla

If using the free Cloudflare service (thus no access to the PROXY protocol), must I disable the “proxied” functionality of Cloudflare for the A record of the subdomain which points to the mautic install (on a VPS server) (e.g. [MAUTIC.mainsite.org](http://MAUTIC.mainsite.org))? And/or must I ALSO disable the “proxied” functionality of Cloudflare for the DNS A record of the MAIN site as well? (To have all click / tracking functionality working?) (e.g. [mautic.MAINSITE.org](http://mautic.MAINSITE.org) ) … which means basically I lose all Cloudflare functionality without upgrading to their pro plan (to enable the PROXY protocol)?

I’m setting up Mautic for the first time now and just want to make sure everything is configured correctly.

[Next page](https://forum.mautic.org/t/click-tracking-not-working/11770.md?page=2)
