Tracking code

p.zondervan
1 Posts
p.zondervan posted this 07 July 2023
Ask a Question

Hello,

I use webtracking code like this:

var _Hasync= _Hasync|| [];
_Hasync.push();
_Hasync.push();
_Hasync.push();
(function() {
var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
hs.src = ('//s10.histats.com/js15_as.js');
(document.getElementsByTagName('head') || document.getElementsByTagName('body')).appendChild(hs);
})();

or, like this:

Is it possible to place this code anywhere where it is alowed?

With regards,
Peter Zondervan

Hello, I use webtracking code like this: var _Hasync= _Hasync|| []; _Hasync.push(); _Hasync.push(); _Hasync.push(); (function() { var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true; hs.src = ('//s10.histats.com/js15_as.js'); (document.getElementsByTagName('head') || document.getElementsByTagName('body')).appendChild(hs); })(); or, like this: Is it possible to place this code anywhere where it is alowed? With regards, Peter Zondervan
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 07 July 2023

Hi, Peter,

Thanks for being our customer!

Yes, you can wrap this code inside the script HTML tag and insert it to Site Settings ==> HTML ==> Additional Head HTML. The code should be like that:

<script>    
var _Hasync= _Hasync|| [];
    _Hasync.push();
    _Hasync.push();
    _Hasync.push();
    (function() {
    var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
    hs.src = ('//s10.histats.com/js15_as.js');
    (document.getElementsByTagName('head') || document.getElementsByTagName('body')).appendChild(hs);
    })();
</script>

Try to add it to Nicepage and let us know about the result.
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Peter, Thanks for being our customer! Yes, you can wrap this code inside the *script* HTML tag and insert it to *Site Settings ==> HTML ==> Additional Head HTML*. The code should be like that: <script> var _Hasync= _Hasync|| []; _Hasync.push(); _Hasync.push(); _Hasync.push(); (function() { var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true; hs.src = ('//s10.histats.com/js15_as.js'); (document.getElementsByTagName('head') || document.getElementsByTagName('body')).appendChild(hs); })(); </script> Try to add it to Nicepage and let us know about the result. ................................................... Sincerely, Paul C. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments