Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1377164

    Dear support,

    google tag manager code is a other thing as the google analytics code.

    what is the best and really working way to include the gtm code in enfold?

    The way over “google services” in enfold options is not the right way….

    What is the right way to inside teh gtm code?

    Show GTM Code:
    Copy and paste the code below on every page of your website. Paste this code as close to the top of the page as possible.
    <!– Google Tag Manager –>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’: …..

    Also, add this code right after the opening tag: <!– Google Tag Manager (noscript) –>
    <noscript><iframe src=”https://www.googletagmanager.com/ns.html? ….

    Please give me the right, good script for functions.php or other files.

    So many thanks!

    #1377209

    Hey,

    Thanks for contacting us!

    You can refer to this post – https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-head-section and add your code to functions.php file of your child theme :)

    Best regards,
    Yigit

    #1377232

    Yigit ….

    how do I combine the two entries <head> and after open <bod> in this script??

    #1377238

    Hey,

    You can use following code to add scripts after opening Body tag

    
    add_action('ava_after_body_opening_tag','new_ava_after_body_opening_tag');
    function new_ava_after_body_opening_tag(){ 
    	?>
    <script>
    
    // Your script here
    
    </script>
    <?php
    }
    

    Regards,
    Yigit

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