I asked this allready once, and you said code (neccesary for one signal, and google ads) can be positioned in head.php. Code what should be places in HEAD section. After I copy that to head. it simply does not work. If I copy that at the beginning site is under error condition.
So where I should put if I want it considered as it is in HEAD?? Precise please.
<!--google adsense kod>
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
window.OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
});
});
</script>