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,
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