Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    yes, you can do the same thing, but instead of ga function, use fbq one, with CompleteRegistration event tracking. So it will be:

    <script type="text/javascript">
    mc4wp.forms.on('subscribed', function(form) {
        fbq && fbq('track', 'CompleteRegistration');
    });
    </script>

    That’s it ??

    Thread Starter goti

    (@gibarra)

    @antoscarface thank you for your help! Exactly what I was looking for.

    Can you recommend what is best place for that code?

    Plugin Author Antonino Scarfì

    (@antoscarface)

    You can choose one of these three ways:

    • if you are using a custom theme, search for a “custom JS” option that gives you ability to add some custom code for javascript. So, use this option to add the previous code
    • add this PHP code at the end of the functions.php file of your theme:
      add_action( 'wp_footer', function(){
          ?>
          <script type="text/javascript">
              mc4wp.forms.on('subscribed', function(form) {
                  fbq && fbq('track', 'CompleteRegistration');
              });
          </script>
          <?php
      });
    • Use a plugin such as this one that help you to add scripts into your WordPress site.

    I hope it can helps ??

    Thread Starter goti

    (@gibarra)

    Perfect! Thank you @antoscarface

    I went with the 2nd option above and this works!!

    Plugin Author Antonino Scarfì

    (@antoscarface)

    That’s great! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mailchimp sign-up as a Conversion’ is closed to new replies.