• Hi there,

    Perhaps I am just misunderstanding the possibilities of the plugin, but I find it confusing that:

    • If the container is set to “Off” and debugging is set to be printed into the console: The container is not placed
    • If the container is set to “Off” and debugging should not be printed to the console, the container is placed

    Is this intended like this?

    if ( ( GTM4WP_PLACEMENT_OFF === $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) && ( ! $no_console_log ) ) {
    $output_container_code = false;

    Let me know, if you need any further information from my side.

    Thanks!

Viewing 1 replies (of 1 total)
  • Can confirm, got this same issue. Problem is that I can’t set debugging on, because it prints console log messages visible to site header. So I would also like a solution where container is “Off” and debugging is off and container is not added because consent plugin handles that, but data for data layer (enhanced ecommerce for example) is still added by this plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘GTM Placed although placement set to “Off”’ is closed to new replies.