Title: Plugin replaces with
Last modified: November 8, 2022

---

# Plugin replaces with

 *  [plcexchange](https://wordpress.org/support/users/plcexchange/)
 * (@plcexchange)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-replaces-with/)
 * 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 [](https://wordpress.org/support/topic/plugin-replaces-with/xxx?output_format=md)
   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](https://wordpress.org/support/users/plcexchange/)
 * (@plcexchange)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-replaces-with/#post-16182379)
 * 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](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-replaces-with/#post-16295863)
 * 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.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dFactory](https://wordpress.org/support/users/dfactory/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-replaces-with/#post-16295863)
 * Status: not resolved