Home Forums WoodMart support forum Insret GTM on woodMart

Insret GTM on woodMart

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

    AlessioDevelop
    Participant

    Hi, we have problems integrating the Tag Manager on WoodMart.
    We generally integrate Analitycs and Manager.
    The Analitycs tag inserted in the theme header works; The TagManager instead is composed of 2 snippets, one to put in the header and one in the body. When the second snippet is inserted in the body, the site shows a blank page.
    We then tried to integrate it into the body via plug-in https://it.wordpress.org/plugins/insert-headers-and-footers/
    but we got the same result.
    We tried to integrate the snippet through the function.php in the following way:
    function custom_code_body () {
    ?>
    YOUR CODE GOES HERE (replace this text)
    <? php
    }
    add_action (‘woodmart_after_body_open’, ‘custom_code_body’, 1);

    but we keep getting blank page once the function is saved.

    #287980

    Hello,

    The Issue seems to be with the code you are trying to add not our theme because our theme doesn’t influence it.

    Please read the following article for further help:
    https://www.wpbeginner.com/beginners-guide/how-to-install-and-setup-google-tag-manager-in-wordpress/

    Regards.
    Xtemos Studios

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