Email External URL tracking not working all the time

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:

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

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

Source below
Code:

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

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

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

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.

<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.

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

https://github.com/mautic/mautic/issues/879

and it’s already being fixed in

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.

Sounds good