Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #723093

    Hi,
    i have registered an account on google tag manager. I have the code to put into the file’s theme.
    I have one code to put in the section <head> of my site and i have another code to put in the section <body>.

    Sorry but i dont’ know very well where i can find this section.

    Please help me. Thank you bye

    #723858

    Hey!

    1- For , please add following code to Functions.php file in Appearance > Editor

    function my_custom_code(){
    ?>
    // Your code goes here
    <?php
    }
    add_action('wp_head', 'my_custom_code');

    2- Please add following code to Functions.php file as well

    function my_body_custom_code(){
    ?>
    // Your code goes here 
    <?php
    }
    add_action('wp_footer', 'my_body_custom_code');

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.