# How to Add event to the button's click handler (Quora Ads)

**URL:** <https://community.piwik.pro/t/how-to-add-event-to-the-buttons-click-handler-quora-ads/3591>\
**Category:** Data collection and tags\
**Created:** [February 5, 2024, 12:22pm UTC](https://community.piwik.pro/t/how-to-add-event-to-the-buttons-click-handler-quora-ads/3591 "2024-02-05T12:22:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elena\_Benito\_Ruiz](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/elena_benito_ruiz/32/1823_2.png) [@Elena\_Benito\_Ruiz](https://community.piwik.pro/u/Elena_Benito_Ruiz)\
**Post date:** [February 5, 2024, 12:22pm UTC](https://community.piwik.pro/t/how-to-add-event-to-the-buttons-click-handler-quora-ads/3591/1 "2024-02-05T12:22:33Z")

</div>

Hi  
We have installed Quora base pixel, which triggers on all page views trigger.  
Now we’d like to specifically track given actions on given buttons (signup and demo CTAs) on both our website (WS) and blog. The code provided by Quora is the following:

```auto
<!-- Add event to the button's click handler -->
<script type="text/javascript">
qp('track', 'GenerateLead'); // Call this function when inline action happens
</script>

```

We already have 2 tags and their triggers enabled (Click Element) to track clicks on signup CTAs and demo CTAs, but right now I am bit lost and I don’t remember how to add external conversion button handlers on our CTAs via Piwik Tag Manager, so whenever someone clicks on demo or signup, the quora conversion is activated if visitor is coming from Quora.

 ![Captura de pantalla 2024-02-05 a las 13.19.14](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/f/f65ab82a9424699952914e5655c2803270cdf0b1.png)  
 ![Captura de pantalla 2024-02-05 a las 13.19.36](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/7/7e25bc468be95b93f8123ee76bd8f8e6a0564c4e.png)  
 ![Captura de pantalla 2024-02-05 a las 13.19.07](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/5/5d1acf23fc649c5da967b09d1c0fa0b2f97c7f34.png)

I’d appreciate an explanation that’s simple to understand 😃  
Thanks a lot as always

---

<div class="post-metadata">

**Author:** ![kamilb](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kamilb/32/309_2.png) [@kamilb](https://community.piwik.pro/u/kamilb)\
**Post date:** [February 5, 2024, 2:18pm UTC](https://community.piwik.pro/t/how-to-add-event-to-the-buttons-click-handler-quora-ads/3591/2 "2024-02-05T14:18:28Z")

</div>

Hi @Elena_Benito_Ruiz,

You would need to create seperate custom code tag/s -  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/8/8be5123b570ec930360a52fb6944d774e13f4f39.png)

Insert the code provided by Quora -

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/8/872b2a631addcd3691d8f4bd5ef77349d30f8dde.png)  
and if I understood correctly you already have the triggers ready so you can just attach the existing trigger/s  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/2/29dc77cf3cf346f0a0f5d1df0d32fe4517755161.png)

Now, if the same code should be triggered for both buttons you can just create 1 tag and attach 2 different triggers. Otherwise, 2 tags would be the way to go. (if you just want to track signup and demo CTA)

Please let me know if you have any questions.

Have a great day! 🙂

---

<div class="post-metadata">

**Author:** ![Elena\_Benito\_Ruiz](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/elena_benito_ruiz/32/1823_2.png) [@Elena\_Benito\_Ruiz](https://community.piwik.pro/u/Elena_Benito_Ruiz)\
**Post date:** [February 6, 2024, 3:48pm UTC](https://community.piwik.pro/t/how-to-add-event-to-the-buttons-click-handler-quora-ads/3591/3 "2024-02-06T15:48:19Z")

</div>

thanks a lot @kamilb !
