# 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:** [Mars 9, 2017, 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:** 1

<div class="post-metadata">

**Author:** ![alonle](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alonle](https://meta.discourse.org/u/alonle)\
**Post date:** [Mars 9, 2017, 8:39 UTC](https://meta.discourse.org/t/how-to-catch-click-events-on-a-link-in-order-to-fire-a-pixel/58704/1 "2017-03-09T08:39:06Z")

</div>

Hi [@team](https://meta.discourse.org/groups/team), Is there any way to catch click event on a link and fire a pixel to google adwords.  
I want to know if user click on an amazon link on my site.

I saw this topic  
[https://meta.discourse.org/t/how-to-catch-click-events-within-topic-posting-form-with-jquery/36184](https://meta.discourse.org/t/how-to-catch-click-events-within-topic-posting-form-with-jquery/36184)

Anything similar to this code can be done with a link? (html a href)

> [@simon](#):
>
> \<script\>  
> var ComposerController = require(‘discourse/controllers/composer’).default;
> 
> ComposerController.reopen({  
> actions: {  
> save: function() {  
> // Do what you want here, for example:  
> console.log(“Creating New Topic?”, this.get(‘model.creatingTopic’);  
> // Call super to save the topic  
> this.\_super();  
> }  
> }  
> })  
> \</script\>

Thanks

---

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