<a href=”https:/www.somesite.com/lorem_ipsum.html”>Lorem Ipsum</a>
<a href=”[[weblink-to-external-page]]” rel=”https:/www.somesite.com/lorem_ipsum.html”>Lorem Ipsum</a>
This question has been answered by wintertribe. See the first response.
<img src="url/of/image" onClick="handle_click([[*image_id]])" />
In the JS function, you'd use Ajax to call a MODX processor that records the click in the DB (not as difficult as it sounds).
Quote from: BobRay at Jan 12, 2018, 05:29 PM
In the JS function, you'd use Ajax to call a MODX processor that records the click in the DB (not as difficult as it sounds).
Do you have some example how to implement this? I remember i have struggled with MODX processors sometimes before