• Hi Thomas,

    As I updated the plugin for my client to the latest version, I encountered some unwanted code rendered on the frontend of the site:
    console.warn && console.warn("[GTM4WP] Google Tag Manager container code placement set to OFF !!!"); console.warn && console.warn("[GTM4WP] Data layer codes are active but GTM container must be loaded using custom coding !!!");

    Maybe this is an edge case and are some settings missing, but nevertheless, this part should not be visible ??
    I’ve found the problem in the code: it is in the gtm4wp_the_gtm_tag() method at line 727 of the public/frontend.php file. If you add 'script' => array(), to the kses array, the issue should be fixed.

    Unfortunately I can’t find a way to send you a pull request for this change, so I hope this is clear enough for you to fix the code.
    If not, just let me know ??

    • This topic was modified 2 years, 7 months ago by 5a5k1a.
  • The topic ‘Visible JS on frontend’ is closed to new replies.