• Resolved yk11

    (@yk11)


    I am looking to track Google AdWords conversions through the contact form.

    I added the necessary code in the Advanced Form Settings to the Success Page Additional HTML section.

    The problem I am running into is that the closing CDATA code /* ]]> */ shows with the right bracket converted to html code, e.g. /* ]]& gt; */ (space added between & and gt; to prevent code conversion here), which prevents the code from being executed properly. The opening bracket is ok.

    I would appreciate any ideas you may have, or even directing me to where this code resides so I can investigate myself.

    https://wordpress.org/plugins/si-contact-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi I just carried out a test by adding the following;

    /* ]]> */

    and it does not convert in my testing environment. Can you disable all your other plugins except this one and carry out another test.

    Thank you

    Thread Starter yk11

    (@yk11)

    Thanks for looking into it.

    I disabled all plugins and still got the problem.

    After some more research, it turns out to be a known WordPress issue where it has code to explicitly convert ‘]]>’ to ‘]]& gt;’ (space intentionally added) in wp-includes/post-template.php.

    Commenting out the offending line resolved the issue.

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

The topic ‘Google conversion code’ is closed to new replies.