Answer the question
In order to leave comments, you need to log in
How to use Google analytics to track a click on a form button that works in angular?
I have a form that runs on angular (validation, submit) and I'm trying to set the button that submits the form to be tracked by google analytics. That is, with a positive response from the server (that the user passed the validation and still signed up), I need to see this in the analytics. But life is in vain.
Maybe someone faced such a problem? How did you manage to solve it?
Answer the question
In order to leave comments, you need to log in
Analytics also has methods for tracking an event: Documentation
However, there are some points that should be considered. For example, if the page is reloaded after submitting the form (I wonder why Angular is needed then), then the event may simply not have time to send. If there was a more detailed description of the problem, then we could try to understand what the problem is. And so, you have a strange description of the problem: "being is in vain." I believe that the correct answer to such a question is: a gun in a drain tank.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question