Answer the question
In order to leave comments, you need to log in
How to put google analytics on your event?
I don't have a specific action and event, the target should be in the function that is used in the success ajax of the form.
With the metric, everything is somehow simple, stuck reachGoal wherever you want and that's it.
Here I start to read the description - hair on end ...
I put it like this: It was ga('send','event','form','otp');
submit - it didn't work either, but it says that you can arbitrarily create an action.
In the analytics itself, it stands like this:
Target setting - Own
Type - Event
Category - form
Action - otp
But this is all garbage, as I understand it .. :) What a nafik this otp action is, and submit is also not suitable.
The question is how to stick this goal in the place I need, without these actions, I will do it myself.
Answer the question
In order to leave comments, you need to log in
You have a small problem in understanding the code.
Here's what the template for sending events to GA looks like.
send and event are system parameters by which GA determines what you want from it.
eventCategory, eventAction and eventLabel can be anything you like.
But the main condition for the goal to trigger is the coincidence of what you transfer from the site to GA with the goal setting in GA.
Try to submit the form and see in real time if events are falling in GA
. If events are falling, but the goal does not work (it is checked all the same in the "Real time" mode), then the problem is in setting the goal on the GA side.
If the events do not fall in GA, then you have some kind of error in the code
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question