Answer the question
In order to leave comments, you need to log in
How to make the form event work for metrics and Analytics?
There is a site on Joomla. The module implements a callback form on it. You need to track the purpose of sending a message. There is no transition to another page.
I used this code to work in analytics from Google and Yandex. Does not work. What could be wrong?
<form id="ext_callback_id_2" class="blocks" action="" method="post" onsubmit="ga('send', 'event', 'form', 'sendform); yaCounterxxxxxxxx.reachGoal('visnabform1'); return, true;">
Answer the question
In order to leave comments, you need to log in
decompose
through debugging achieve
1) work with GA
2) work YM
3) connect, check
I would recommend setting it up through the Tag Manager, then you don’t need to write extra code in the buttons.
Do this:
1. Install the Tag Manager counter on the site
2. Install Analytics and Yandex Metrics in it (delete them from the site)
3. Add the Click ID variable in the Tag Manager
4. Add a trigger for Click ID = ext_callback_id_2
5. Add the Metrics goal yaCounterxxxxxxxx.reachGoal('visnabform1') and set the trigger condition. Well, in the metric, do not forget to create a goal for the visnabform1 event
6. Add the Analytics goal as in the picture, similarly set the condition for the trigger to fire.
Well, in analytics, you also set the goal with such parameters.
All.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question