# Email External URL tracking not working all the time

**URL:** <https://forum.mautic.org/t/email-external-url-tracking-not-working-all-the-time/2419>\
**Category:** Product Support\
**Created:** [September 26, 2015, 1:04pm UTC](https://forum.mautic.org/t/email-external-url-tracking-not-working-all-the-time/2419 "2015-09-26T13:04:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davejones](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@davejones](https://forum.mautic.org/u/davejones)\
**Post date:** [September 26, 2015, 1:04pm UTC](https://forum.mautic.org/t/email-external-url-tracking-not-working-all-the-time/2419/1 "2015-09-26T13:04:45Z")

</div>

I’m getting inconsistent tracking for external links in emails. Some times it will track the user and for other users it will not. But once it doesn’t track a user it appears that it won’t ever track external links for that user.  
  
  
  
I’m using HTML emails without a template. You can see the html code for the links used in the email below.  
  
  
  
Also using a token as you can see below.

Code:

View your [Visibility Report](http://admin.desturl.com/?%7Bleadfield=visreport1%7D)

  
When I go back to edit the email it gets converted to below:  
  
View your \*\*Vis Report\*\*"\>Visibility Report  
  
Source below

Code:

View your [\*\*Vis Report\*\*"\>Visibility Report](http://admin.desturl.com/?<strong%20contenteditable=)

  
Here is the source from the actual email that was received without the tracking:

Code:

View your Visibility Report=

  
Here is the source from an actual email that was received with the tracking code correct:

Code:

View your Visibility Report

  
Both of those emails were sent part of the same campaign.

---

<div class="post-metadata">

**Author:** ![davejones](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@davejones](https://forum.mautic.org/u/davejones)\
**Post date:** [September 26, 2015, 1:04pm UTC](https://forum.mautic.org/t/email-external-url-tracking-not-working-all-the-time/2419/2 "2015-09-26T13:04:45Z")

</div>

I’m getting inconsistent tracking for external links in emails. Some times it will track the user and for other users it will not. But once it doesn’t track a user it appears that it won’t ever track external links for that user.

I’m using HTML emails without a template. You can see the html code for the links used in the email below.

Also using a token as you can see below.

```auto
<p>View your <a href="http://admin.desturl.com/?{leadfield=visreport1}">Visibility Report</a></p>
```

When I go back to edit the email it gets converted to below:

View your **Vis Report**"\>Visibility Report

Source below

`<p>View your <a false="" href="http://admin.desturl.com/?&lt;strong contenteditable="> **Vis Report** &quot;&gt;Visibility Report</a></p>
`

Here is the source from the actual email that was received without the tracking:

`<p>View your <a href=3D"http://admin.desturl.com/?page=3Dsite/clien=
ts/livereport/print&client_id=3D1326822&partner_id=3D13172&baseline_overvie=
w=3Dselected&baseline_local=3Dselected&baseline_directory=3Dselected&live_o=
verview=3Dselected&live_local=3Dselected&live_directory=3Dselected&live_key=
word=3Dselected&live_social=3Dselected&live_reputation=3Dselected&live_webs=
ite=3Dselected&public=3D686d52feb65e6b83ebe3d5298593aae4">Visibility Report=
</a></p>`

Here is the source from an actual email that was received with the tracking code correct:

`<p>View your <a href=3D"http://em.mydomain.com/r/a1508d861998cdc310a131b88?=
ct=3DYTozOntzOjY6InNvdXJjZSI7YToyOntpOjA7czo4OiJjYW1wYWlnbiI7aToxO2k6Njt9cz=
o1OiJlbWFpbCI7aTo3O3M6NDoibGVhZCI7aToxNTt9">Visibility Report</a></p>`

Both of those emails were sent part of the same campaign.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 28, 2015, 8:01am UTC](https://forum.mautic.org/t/email-external-url-tracking-not-working-all-the-time/2419/3 "2015-09-28T08:01:22Z")

</div>

The problem with tokens in a link URL was reported here:

[https://github.com/mautic/mautic/issues/879](https://github.com/mautic/mautic/issues/879)

and it’s already being fixed in

[https://github.com/mautic/mautic/pull/920](https://github.com/mautic/mautic/pull/920)

But there are still some issues with the fix. I’m sure it will be fixed in upcoming 1.2.1.

---

<div class="post-metadata">

**Author:** ![davejones](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@davejones](https://forum.mautic.org/u/davejones)\
**Post date:** [September 28, 2015, 2:05pm UTC](https://forum.mautic.org/t/email-external-url-tracking-not-working-all-the-time/2419/4 "2015-09-28T14:05:52Z")

</div>

Sounds good

---

<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:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/email-external-url-tracking-not-working-all-the-time/2419/5 "2020-02-02T22:58:10Z")

</div>


