Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    I get a javascript error:

    Failed to set referrer

    This error is probably causing the CF7 ajax function not to trigger.

    Maybe related to W3 total cache? https://www.ads-software.com/support/topic/failed-to-set-referrer-policy-error/

    Thread Starter mcoom

    (@mcoom)

    Hi Jules,

    Thanks for the quick reply! I disabled JS Minifying in W3 total Cache but the problem still occurred. I disabled W3 Cache completely, still no luck.

    I tested the working GTM contact form, by including ‘Conditional Fields’ functionality. And indeed, no problems there. So I’m happy to confirm that the reloading is not a result of using this plugin.

    I dug a little deeper and apparently the CF7 scripts needed to be loaded with the specific .php theme files of the page. Including this code above the header fixed the issue:

    if ( function_exists( ‘wpcf7_enqueue_scripts’ ) ) {
    wpcf7_enqueue_scripts();
    wpcf7_enqueue_styles();
    }

    So problem solved!

    Thanks for pushing me in right direction ??

    Plugin Author Jules Colle

    (@jules-colle)

    you’re welcome! glad you solved it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘GTM tag not firing’ is closed to new replies.