• Hi,

    I am using the latest version of the plugins. I turned off the container code since I am already using Sitekit for code insertion. When I checked my front end, I noticed that there were two GTM codes on my website. After disabling GTM4WP, the duplicate was removed. Is this a known bug?

    Thanks.

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

    (@idhamsy)

    I just found the issue. The issue come because of this setting Do not use console.log() messages on frontend,

    When i checked this, the GTM container is loaded with OFF setting.

    Also experiencing this. It has to do with the variable $output_container_code on line 1102 in frontend.php remaining true. The below change temporarily resolves the issue and can likely involve a few other changes to the following IF statements.

        $output_container_code = GTM4WP_PLACEMENT_OFF === $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ? false : true;
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Container Code Off but still injecting Code’ is closed to new replies.