mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
36 lines
853 B
Plaintext
36 lines
853 B
Plaintext
---
|
|
import { assertSecret } from '@blitzkit/core';
|
|
---
|
|
|
|
{/* google analytics */}
|
|
<script
|
|
is:inline
|
|
async
|
|
src={`https://www.googletagmanager.com/gtag/js?id=${assertSecret(
|
|
import.meta.env.PUBLIC_GOOGLE_TAG_MANAGER_ID,
|
|
)}`}></script>
|
|
<script is:inline>
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
function gtag() {
|
|
dataLayer.push(arguments);
|
|
}
|
|
gtag('js', new Date());
|
|
gtag('config', assertSecret(import.meta.env.PUBLIC_GOOGLE_TAG_MANAGER_ID));
|
|
</script>
|
|
|
|
{/* nitro ads */}
|
|
<script is:inline data-cfasync="false">
|
|
window.nitroAds = window.nitroAds || {
|
|
createAd: function () {
|
|
return new Promise((e) => {
|
|
window.nitroAds.queue.push(['createAd', arguments, e]);
|
|
});
|
|
},
|
|
addUserToken: function () {
|
|
window.nitroAds.queue.push(['addUserToken', arguments]);
|
|
},
|
|
queue: [],
|
|
};
|
|
</script>
|