• Hi everyone

    would someone please give me the code needed to put in my child theme’s function.php so i can get the custom implementation of this plugin?

    I know it needs to be added with an enqueue function or something, but i’m not sure exactly how this is done.

    <?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?>

    Thank you in advance

    https://ww.wp.xz.cn/plugins/duracelltomi-google-tag-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You put the code in the child theme….header.php
    after <body>

    That’s what he said in one of the support comments.

    <?php if ( function_exists( ‘gtm4wp_the_gtm_tag’ ) ) { gtm4wp_the_gtm_tag(); } ?>

    Plugin Author Thomas Geiger

    (@duracelltomi)

    That is right, you only need to edit your header.php as alexisyfido said.

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

The topic ‘Adding tag manager PHP to child theme’ is closed to new replies.