Answer the question
In order to leave comments, you need to log in
How to setup click event (Google Analytics) for WooCommerce buttons?
Please help with setting up events from Google Analytics for WooCommerce plugin buttons such as Add to Cart and others.
It is clear that if the button in the code is defined as a regular element of type <input type="submit" value="Add to Cart">
, then it is enough to register the event onclick="ga('send', 'event', 'click1', 'click')" and everything works fine.
I’ll explain right away that I’m not a programmer, but in WooCommerce all the buttons are written in the code not as a simple element.
I ask for help from those who have already done something similar for woocommerce or please give a link to the plugin, to similar examples, etc.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question