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’,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!
Hi Designton!
You can go to Enfold theme options and add the code to Google Analytics field
Cheers!
Yigit
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.
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
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?
I’m utilizing the solution here: https://kriesi.at/support/topic/code-before-tag-head-in-child-theme/