• Team,

    When I put the necessary GA code in the header option for the cookie plugin (to load after user hits accept) I place the “standard” code from google. Apon acceptance and testing, the plugin changes all calls for <script async=”xxx”></script> to and places text at the top of my website.

    why does the plugin do this and how do I fix it?

    THanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter plcexchange

    (@plcexchange)

    sorry, just realized that the html code is being truncated; here is what is happening:

    <script async="xxx"></script> is being replaced with <a href="xxx">xxx</a>

    Plugin Author dFactory

    (@dfactory)

    As I understand you are using plain Cookie Notice, without Cookie Compliance integration.

    Both BODY and HEAD sections of the settings are handled with “wp_kses_allowed_html” and “wp_kses” WordPress functions filtered with “get_allowed_html” method of the plugin. This allows for different additional tags like script, iframe, noscript and style. That means the “script” tag should not be truncated.

    Most probably there is a different plugin (maybe a “security” related) that you have that overrides “wp_kses_allowed_html” or “wp_kses” functions responsible for the BODY/HEAD output.

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

The topic ‘Plugin replaces with’ is closed to new replies.