[Skip to main content](#vessel-content)

#   EVENTO ON CLICK

##

- **[Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")**
- [![Reincidente's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12307-reincidente "View Reincidente's Profile") Topic Author
- [ Offline](/forum/user/12307-reincidente)

Less More

- Posts: 469
- Thank you received: 21
-

6 years 3 weeks ago [\#325546](#325546) by [Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")  *[EVENTO ON CLICK](/forum/32-content-creation/901134-evento-on-click#325546 "Hola!!! Necesito etiquetar algunos eventos que se producen en mi web (Ver más, descarga, dudas, etc). Con un código parecido a este: onclick=&quot;gtag('event','clic',{'event&#95;category': 'descarga','event&#95;label':'catalogo'});&quot;  ¿Cómo y dónde puedo conseguir estas etiquetas?  Un saludo.")* was created by *[Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")*

Hola!!!
Necesito etiquetar algunos eventos que se producen en mi web (Ver más, descarga, dudas, etc).
Con un código parecido a este:
onclick="gtag('event','clic',{'event_category': 'descarga','event_label':'catalogo'});"

¿Cómo y dónde puedo conseguir estas etiquetas?

Un saludo.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAxMTM0LWV2ZW50by1vbi1jbGljaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

6 years 3 weeks ago [\#325549](#325549) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[EVENTO ON CLICK](/forum/32-content-creation/901134-evento-on-click#325549 "Hola!!! Necesito etiquetar algunos eventos que se producen en mi web (Ver más, descarga, dudas, etc). Con un código parecido a este: onclick=&quot;gtag('event','clic',{'event&#95;category': 'descarga','event&#95;label':'catalogo'});&quot;  ¿Cómo y dónde puedo conseguir estas etiquetas?  Un saludo.")*

Hi,

You'll have to edit the view files of HikaShop via the menu Display&gt;Views to add that javascript code to the a tags you want to track.
Which view files to edit there and which line of code to use will depends on how your shop is configured and customized, so I can't give a precise answer.
However, I would recommend to follow the instructions here:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)
and use the "Display view files" setting of the HikaShop configuration to easily find out which view file to edit for which area where you have the button you want to track.
Once, you know which view file, you just need to search for the a tags in the PHP/HTML code there. In each view file, you should only have a handful of a tags so you should be able to find where to add your javascript even if you're not a developer.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAxMTM0LWV2ZW50by1vbi1jbGljaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.044 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
