# How to catch click events on a link in order to fire a pixel

**URL:** <https://meta.discourse.org/t/how-to-catch-click-events-on-a-link-in-order-to-fire-a-pixel/58704>\
**Category:** Product Support\
**Created:** [2017 年 3 月 9 日午前 8:39 UTC](https://meta.discourse.org/t/how-to-catch-click-events-on-a-link-in-order-to-fire-a-pixel/58704 "2017-03-09T08:39:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2017 年 3 月 13 日午後 3:38 UTC](https://meta.discourse.org/t/how-to-catch-click-events-on-a-link-in-order-to-fire-a-pixel/58704/4 "2017-03-13T15:38:14Z")

</div>

I should warn you that `setTimeout` is unreliable for knowing when things are rendered. It might work in your testing but there could be times when the timeout fires before things have been rendered.

---

_[View the full topic](https://meta.discourse.org/t/how-to-catch-click-events-on-a-link-in-order-to-fire-a-pixel/58704)._
