Commit 4cb1fc44 authored by Alex's avatar Alex Committed by APolitsin
Browse files

GA4

parent dc2ae005
......@@ -23,7 +23,7 @@ class AjaxResult {
if ($otvet || $commands) {
$output .= '<pre>';
$output .= $otvet;
if ($commands) {
if (is_array($commands)) {
$output .= implode("\n", $commands);
}
$output .= '</pre>';
......
......@@ -93,7 +93,7 @@ class FormContactMessageFormAlter {
$google = "if (typeof dataLayer != 'undefined') {dataLayer.push({'event': '{$formId}'});}";
if (isset($goals[$formId])) {
if ($counter) {
$yandex = "yaCounter{$counter}.reachGoal('{$goals[$formId]}');";
$yandex = "ym({$counter},'reachGoal','$goals[$formId]');";
}
if ($config->get('debug')) {
$debug = "console.log('{$formId}');";
......
......@@ -3,5 +3,5 @@ description: 'Synapse-helpers'
type: module
core: 8.x
core_version_requirement: ^8 || ^9
version: 1.0
# version: 1.0
package: Synapse
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment