• Hi there,

    we need to include Google AdWords tracking code into our forms, so we are trying with these steps:

    1- Create AdWords conversion tracking codes and paste it at the bottom of form;
    2- Edit functions.php file, adding this at the bottom of your functions.php file:

    add_action( ‘wp_footer’, ‘mycustom_wp_footer’ );
    function mycustom_wp_footer() {
    ?>
    <script type=”text/javascript”>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    gtag_report_conversion();
    }, false );
    </script>
    <?php
    }

    3- No need to add anything in the advanced section of your form.

    Are these steps right?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Google AdWords tracking code’ is closed to new replies.