Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • mvseer2018

    (@mvseer2018)

    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

    Forum: Fixing WordPress
    In reply to: HTTP Error 500
    mvseer2018

    (@mvseer2018)

    my IT company that handles hosting told me that I have the following error:

    The error logs on the backend of your website show this:
    [18-May-2018 16:12:13 UTC] PHP Fatal error: Can’t use function return value in write context in /home/mvseer/public_html/wp-content/plugins/inbound-pro/classes/admin/report-templates/report.email-stats.php on line 303

    Forum: Fixing WordPress
    In reply to: HTTP Error 500
    mvseer2018

    (@mvseer2018)

    Unable to access my WordPress admin site.
    I get the following message.

    This page isn’t working
    mvseer.com is currently unable to handle this request.
    HTTP ERROR 500

Viewing 3 replies - 1 through 3 (of 3 total)