Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #420055

    Hi!

    I need to add this script between <head> </head> -tags, but how do I do it? It is some kind of chat add on for websites.

    The script is:

    <!– giosg tag –>
    <script>
    (function(w, t, f) {
    var s=’script’,o=’_giosg’,h=’https://service.giosg.com&#8217;,e,n;e=t.createElement(s);e.async=1;e.src=h+’/live/’;
    w[o]=w[o]||function(){(w[o]._e=w[o]._e||[]).push(arguments)};w[o]._c=f;w[o]._h=h;n=t.getElementsByTagName(s)[0];n.parentNode.insertBefore(e,n);
    })(window,document,1385);
    </script>
    <!– giosg tag –>

    Thanks!

    • This topic was modified 9 years ago by Designton.
    #420665

    Hi Designton!

    You can go to Enfold theme options and add the code to Google Analytics field

    Cheers!
    Yigit

    #458161

    Hi, is there a way to place a script between the <head></head> tags on a specific page? I need to add some code to a thank you page which is where the visitor gets redirected to after filling in a form.

    #458211

    Hey!

    To do that, you would need to use a conditional if stament, which would allow you to show things, only on one page, into your header.php.

    https://codex.wordpress.org/Function_Reference/is_page

    Here is the link to the codex, you just need to add a CSS style, only for one page.

    Example of code:

                 <?php
    
    	if ( is_page( 'web-content' ) ) { ?> 
    
        	<style>
    
            </style>
    
    <?php } else { ?> 

    Regards,
    Basilis

    #514591

    The Google Analytics field places the script at the bottom of the body tag. Is there a similar way to get it placed at the bottom of the </head> tag?

    #514637
    #514947

    Hi @Dax,

    So I’m guessing you got your problem fixed?

    Best regards,
    Rikard

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