Yandex Metrika
-
Hello! I have problem. I want adding targets Yandex Metrika for Caldera Forms, into all forms.
I make plugin and add actoins:
add_action( ‘metrika_target_virt’, ‘metrika_target_virt’ );
function metrika_target_virt( $event ) {
?>
<script type=”text/javascript”>
jQuery( document ).on(‘caldera_forms_submit_complete’, function (event) {
if(data.formId==”fld_1378219″) {
yaCounterXXXXXXXX.reachGoal(‘id_name’);
/*XXXXXXXX – id counter Yandex Metrika, for example: 12345678. “id_name” it’s target name Yandex Metrika, allowed for can use any name, set in the counter. */
}
}, false );
</script>
<?php
}
I don’t know the Caldera hooks and php. My level is very weak.The page I need help with: [log in to see the link]
- The topic ‘Yandex Metrika’ is closed to new replies.