• Late last month, conversions (from form submit) have stopped appearing in Google Analytics. I expect this was due to one of several recent updates, including to my WP theme and various plugins.

    The last conversion and the last event recorded in GA were on April 21. The good news is that the form is working just fine, and the actual conversions continue in the real world. But I would like to see them again in GA for tracking purposes.

    I’ve looked in the docs and FAQ, and verified that my Analytics code is now there again in the source (it wasn’t). But I’m still not seeing the form submits in GA.

    Where should I look next?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter doctormike

    (@doctormike)

    Re-searching previous threads, I see on this about AJAX:

    JavaScript file is not loaded
    This is the cause that I’ve been seeing the most recently. This is due to your template, which is missing calling functions for queuing JavaScript. The functions required are wp_head() and wp_footer(), and they are in header.php and footer.php, respectively, in most correct themes.

    Is that the problem?

    Thread Starter doctormike

    (@doctormike)

    …but both functions are there in my theme.

    Thread Starter doctormike

    (@doctormike)

    I installed the Contact Form 7 Google Analytics Integration plugin, and now I see an event fires in GA. At least in real time reporting, still no conversion tracked. But perhaps this is progress?

    I’m having the same problem. I am not a developer and I’m not sure if I should create a new post or add it here – so sorry if this is the wrong place.

    I have customized two WordPress sites using a muffin group BE theme.
    My one site was tracking contact 7 form submissions in Google Analyticds just fine until the code was changed in Dec. related to:
    Note: on_sent_ok and on_submit have been officially removed from Contact Form 7 5.0. You can use DOM events instead of these settings.

    I am now working on another site and need to get this form tracking issues resolved. I have been trying to find a solution, for months. Maybe because the instructions are geared towards developers there may be an assumed amount of unspoken knowledge on how and where to exactly implement the code.

    Here’s what I did. Please someone help me with specific instruction on how to do this correctly.

    I added the following code to the Theme Header (header.php) in the <head> section, after my Global site tag information.
    <script>
    document.addEventListener( ‘wpcf7submit’, function( event ) {
    alert( “Fire!” );
    }, false );
    </script>

    Next, I added the following code to the bottom of my theme function.php but that didn’t work and it gave user the java code Fire, upon submit so I removed it and put it in the Additional Settings area of the Contact Form.
    Where, exactly should I place the following code:?
    add_action( ‘wp_footer’, ‘mycustom_wp_footer’ );

    function mycustom_wp_footer() {
    ?>
    <script type=”text/javascript”>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    ga( ‘send’, ‘event’, ‘Contact Form’, ‘submit’ );
    }, false );
    </script>
    <?php
    }
    My Google Analytics goal is set-up with:
    Category Equals to Contact Form
    Action Equals to submit
    Label Equal to Contact form

    Please help. Thanks you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Email works fine, but no more conversions in Google Analytics’ is closed to new replies.