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

    In the past I used plugins such as “Insert Headers and Footers” to activate Google Analytics, but I see that currently the theme already has a place for “Google Analytics Tracking Code” (Enfold Child Theme Options > Google Services > Google Analytics Tracking Code)

    However, it says nothing about GTM or Pixel. Is there a best practice way to include these three?

    Thanks int advance!

    #1240833

    Hey GabrielSenn,

    I’m not sure exactly where those scripts should go on your site, but you can try them in the Analytics box to see if they work. If not then you can use a function in your functions.php file:

    function gabriel_senn_header_scripts(){
    ?>
    //Your scripts go here
    <?php
    }
    add_action('wp_head', 'gabriel_senn_header_scripts');

    Best regards,
    Rikard

    #1240950

    I guess this is one of those we will have to post to feature wish list ;)

    Cheers

    #1241415

    Hi,

    Thanks for the update. If the scripts in question should go into the header, then the analytics box should work. If it doesn’t then please try the function I posted above.

    Best regards,
    Rikard

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