C
C
chusika2016-02-11 15:56:07
Google Analytics
chusika, 2016-02-11 15:56:07

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

1 answer(s)
C
chusika, 2016-02-12
@chusika

In general, I found the answer.
We use the service: https://tagmanager.google.com
Information on setting up the service is here: prometriki.ru/kak-nastroit-proslushivanie-klikov-v...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question