Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140071

Event Gravity Forms

$
0
0

I'm trying to send a target to Yandex.Metric on successful submission of Gravity Forms form.

For Contact Form 7, the code for such a target submission looks like this (and it works correctly):

<script type="text/javascript">document.addEventListener( 'wpcf7mailsent', function( event ) {yaCounterXXXXX.reachGoal('form');}, false );</script>

I have tried so, but the goals do not come:

<script type="text/javascript">
jQuery(document).on('gform_confirmation_loaded', function(event){
    yaCounterXXXXX.reachGoal('form');
});
</script>

I would be grateful for any help. Thanks in advance.


Viewing all articles
Browse latest Browse all 140071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>