# Email click Tracking not working 3.01

**URL:** <https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [July 24, 2020, 8:43am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357 "2020-07-24T08:43:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganesanv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ganesanv/32/838_2.png) [@ganesanv](https://forum.mautic.org/u/ganesanv)\
**Post date:** [July 24, 2020, 8:43am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/1 "2020-07-24T08:43:25Z")

</div>

**Your software**  
_My PHP version is_ : 7.2.32  
_My MySQL/MariaDB version is_ (delete as applicable): MariaDB version 10.2.32

**Your problem**  
I have installed muatic 3.01 and it working perfectly, we have hosted in public. we are able o send email. i also installed mautic plugin in my word press website.

_My problem is_ :  
when i send email with links. the system does not show the click counts. can any one help me where i am wrong. and how to troubleshoot.

_Steps I have tried to fix the problem_ :  
Installed tacking code in website.  
also installed muatic plugin in the wordpress website.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 24, 2020, 9:25am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/2 "2020-07-24T09:25:43Z")

</div>

Who are you sending emails through ?  
Mautic should track clicks by itself, however it is also possible to configure the web hook on esp side to send back this information to Mautic

---

<div class="post-metadata">

**Author:** ![ganesanv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ganesanv/32/838_2.png) [@ganesanv](https://forum.mautic.org/u/ganesanv)\
**Post date:** [July 24, 2020, 11:23am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/3 "2020-07-24T11:23:14Z")

</div>

HI, I am sending email to segments. i have coded email. do i need to add tracking code to email html body.  
Thanks in advance  
Ganesan

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 24, 2020, 12:12pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/4 "2020-07-24T12:12:28Z")

</div>

Hi @ganesanv - what email service provider are you using to deliver your emails ? Sendgrid/Sparkpost/…

---

<div class="post-metadata">

**Author:** ![ganesanv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ganesanv/32/838_2.png) [@ganesanv](https://forum.mautic.org/u/ganesanv)\
**Post date:** [July 24, 2020, 12:22pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/5 "2020-07-24T12:22:11Z")

</div>

we are using Amazon SES, for delivery

---

<div class="post-metadata">

**Author:** ![ganesanv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ganesanv/32/838_2.png) [@ganesanv](https://forum.mautic.org/u/ganesanv)\
**Post date:** [August 4, 2020, 1:31pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/6 "2020-08-04T13:31:26Z")

</div>

Any help on the above subject

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [June 22, 2021, 1:28pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/7 "2021-06-22T13:28:38Z")

</div>

Hi,

Did any one find a solution for this. Some of my 3.3.3. installations are having this issue where as some with the same version don’t.

Any ideas as to a possible solution or a way to further investigate it?

Thanks

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 22, 2021, 1:59pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/8 "2021-06-22T13:59:49Z")

</div>

This feature works properly with M3, so the issue might be somewhere else.  
Can you plz check if you didn’t disable click tracking in Config - Email - Disable Trackable URLs should be set as know if you want to enable tracking.

Thx,  
Joey

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [June 25, 2021, 3:41pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/9 "2021-06-25T15:41:44Z")

</div>

Hi Joey,

Thanks for your reply.  
I’ve have tracking settings set correctly.  
It’s just weird and I can’t find a the reason why one of my installations is tracking perfectly and an other isn’t.

I’ve tried with a clean MJML theme, an edited MJML theme and sometimes it’s tracking and sometimes it isn’t.

Is there anything else I could research?

Thanks again!

Al

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 27, 2021, 6:01am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/10 "2021-06-27T06:01:58Z")

</div>

Often what happens is, that you log in as admin to Mautic, and then test clicks in emails. Won’t work.  
As admin your clicks are not tracked. You need to open a new browser, where you haven’t logged in before or cleared the cookies.

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [June 28, 2021, 7:51am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/11 "2021-06-28T07:51:53Z")

</div>

Thanks Joey,

I really appreciate your taking the time to help out here.  
The issue isn’t so much with the tracking of trackable urls. If they are available, [https://mautic-url.com/r/xxxxxx](https://mautic-url.com/r/xxxxxx)

But the issue is more with the fact that some urls are not re-written to this Mautic tracking url.  
I think it might have to do with the MJML code. For example if I use a standard theme with some links in it. The links are re-written, but after editing the email template and adding extra url’s in the mail, the re-writing of the url’s disappears and the hyperlinks are not trackable. Except for the url’s that are unchanged in the original theme.

Maybe this gives some extra insight.

Thanks again,

Al

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 29, 2021, 11:03am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/12 "2021-06-29T11:03:54Z")

</div>

I would update my system in your case.

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [June 29, 2021, 11:24am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/13 "2021-06-29T11:24:59Z")

</div>

Thanks again.  
To what version would you suggest. Because I am running version 3.3.3.

Regards,  
Al

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 29, 2021, 11:40am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/14 "2021-06-29T11:40:03Z")

</div>

Oh sorry, I saw above you have 3.0.1. Now I realised it’s not you 🙂  
Are you saying the link is the original link you had not overwritten by Mautic?

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [June 29, 2021, 12:30pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/15 "2021-06-29T12:30:45Z")

</div>

Hi Joey,

That’s correct. The original link is not overwritten and thus not trackable.  
When I use an original MJML template I noticed that although most links are overwritten, in some cases not all the links are overwritten with the Mautic trackable URL.

But so yes, that is the case.

Thanks again for taking the time.

Rgrds,  
Al

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 29, 2021, 12:32pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/16 "2021-06-29T12:32:23Z")

</div>

And the ‘not overwritten’ links work? I mean they are functioning links?

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [June 29, 2021, 12:43pm UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/17 "2021-06-29T12:43:45Z")

</div>

Yep, the links work

I’ve double checked that.

Thanks

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [July 1, 2021, 10:11am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/18 "2021-07-01T10:11:16Z")

</div>

Hi Joey,

I have solved the issue of the email links not being replaced by the trackable Mautic links.  
It had to do with the MJML template/theme.

For some reason the code at the top of the theme was incorrect.   
…  
Although there was nog indication that the code was incorrect it did not correctly process the published email.

Thanks for all your help.

Al

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 3, 2021, 6:14am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/19 "2021-07-03T06:14:53Z")

</div>

Hi, is it a built-in theme?  
Thx, joey

---

<div class="post-metadata">

**Author:** ![MackAl1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mackal1/32/580_2.png) [@MackAl1](https://forum.mautic.org/u/MackAl1)\
**Post date:** [July 5, 2021, 8:49am UTC](https://forum.mautic.org/t/email-click-tracking-not-working-3-01/15357/20 "2021-07-05T08:49:27Z")

</div>

Hi Joey,  
It’s was one of the edited built-in MJML theme.  
But it wasn’t specific to any theme.  
It had to do with the code. I think that there was something wrong with the (mjml), (head) and (body) tag’s. I may be that the mjml open tag was on the wrong position. (after the head tag)  
I’ve replaced the \< with ( in this comment because it could be replaced by this forum editor.

(mjml)  
(mj-head)  
(mj-font name=“Ubuntu” href=“[https://fonts.googleapis.com/css?family=Ubuntu:400,500,600,700](https://fonts.googleapis.com/css?family=Ubuntu:400,500,600,700)”/)  
(mj-attributes)  
(mj-all font-family=“Ubuntu, Lato,Helvetica, Arial, sans-serif”)  
(/mj-all)  
(mj-style)  
a[x-apple-data-detectors] {  
color: inherit !important;  
text-decoration: none !important;  
font-size: inherit !important;  
font-family: inherit !important;  
font-weight: inherit !important;  
line-height: inherit !important;  
}  
(/mj-style)  
(mj-class name=“description”)  
(/mj-class)  
(mj-class name=“preheader” color="#000000" font-size=“11px” padding-left=“25px” padding-right=“25px”)  
(/mj-class)  
(mj-class name=“button” background-color="#fcc245" color="#000000" font-size=“18px” border-radius=“3px”)  
(/mj-class)  
(/mj-attributes)  
(mj-style inline=“inline”\>a { text-decoration: none!important; }  
(/mj-style)  
(/mj-head)  
(mj-body background-color="#ffffff")

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