# Could clicking a button in email be used to generate tracking URL

**URL:** <https://forum.mautic.org/t/could-clicking-a-button-in-email-be-used-to-generate-tracking-url/21221>\
**Category:** General Discussion\
**Tags:** discussion\
**Created:** [October 11, 2021, 4:44pm UTC](https://forum.mautic.org/t/could-clicking-a-button-in-email-be-used-to-generate-tracking-url/21221 "2021-10-11T16:44:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ascholten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ascholten/32/691_2.png) [@ascholten](https://forum.mautic.org/u/ascholten)\
**Post date:** [October 11, 2021, 4:44pm UTC](https://forum.mautic.org/t/could-clicking-a-button-in-email-be-used-to-generate-tracking-url/21221/1 "2021-10-11T16:44:40Z")

</div>

Hi Guys,

Mautic uses parameteres and a trackingpixel to track email opening and link clicking  
There are many sophisticated systems in place that cut of the parametersand block the trackingpixel.  
As a result the tracking is not acurate and I miss crucial information.

Would it be possible to add a script to a button in an email to generate the tracking url or tracking-pixel.  
Maybe it could be a mouseover?

This way the url is generated after passing the sophisticated blocking systems.  
Maybe the tracking url could already be played in the script that triggers the mouseover or mouseclick?  
Something in HTML maybe like:  
On mouse over show pixel 1x1 source mautic.mydomain/?parameters

For this while sending out a campaign the receiver-specific tracking URL has to be added to that script. How could this be done?

---

<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:** [October 12, 2021, 4:30am UTC](https://forum.mautic.org/t/could-clicking-a-button-in-email-be-used-to-generate-tracking-url/21221/2 "2021-10-12T04:30:44Z")

</div>

Hi, you can do this by running javascript. The only problem is: you cannot run javascript in a stranger’s mailbox due to security reasons. At the same time we should be greatful for that, otherwise our mailboxes would be full with emails generating popups and malware.
