EVENTO ON CLICK

  • Posts: 311
  • Thank you received: 8
  • Hikashop Business
4 years 2 weeks ago #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="gtag('event','clic',{'event_category': 'descarga','event_label':'catalogo'});"

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

Un saludo.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 weeks ago #325549

Hi,

You'll have to edit the view files of HikaShop via the menu Display>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
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 or Create an account to join the conversation.

Time to create page: 0.050 seconds
Powered by Kunena Forum