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

    Hi,

    I would like to use functions.php to insert this code into the head section of my website.

    <script src="//load.sumome.com/" data-sumo-site-id="xxxxxxxxxxxxxxxxxxx" async="async"></script>

    I tried using this code from the support pages and altered it with various options but didn’t manage.

    add_action('wp_head','ava_google_analytics');
    
    function ava_google_analytics() {
         $output = "GOOGLE ANALYTICS CODE HERE";
         echo $output;
    }

    Thank you,

    #448491

    Hey Ewoud!

    Try adding this to the bottom of your functions.php file.

    add_action( 'wp_head', 'enfold_customization_header_scripts' );
    function enfold_customization_header_scripts() {
    ?>
    <script src="//load.sumome.com/" data-sumo-site-id="xxxxxxxxxxxxxxxxxxx" async="async"></script>
    <?php
    }

    Cheers!
    Elliott

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