S
S
SergZay2016-03-03 18:55:37
Google Analytics
SergZay, 2016-03-03 18:55:37

How to set a click event in google analytics?

Hello.
I can not understand why the event does not work when clicking on the link.
Created target:

  • Categories: button_click
  • Action: click_button_N1

I 'll add the code in the link:
onClick="ga('send', 'event', 'button_click', 'click_button_N1');"
But when checking the targets, nothing changes.
Link to the site (link in the header, next to order a call "test")
Thank you in advance for your answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Kravchenko, 2016-03-03
@SergZay

onclick="yaCounterXXXXXXXX.reachGoal('CRM4TENDERS_FORM');ga('send', 'event', 'FORM', 'CRM4TENDERS_FORM');return true;"
example of working code that validates goals in both J.M and GA

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question