mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Update Party3.astro
This commit is contained in:
1 parent
36588b11e6
commit
a4cdf16fcd
1 file changed
+3
-30
@@ -1,46 +1,19 @@
|
|||||||
---
|
---
|
||||||
import { assertSecret } from '@blitzkit/core';
|
import { assertSecret } from '@blitzkit/core';
|
||||||
|
|
||||||
const PUBLIC_GOOGLE_TAG_MANAGER_ID = assertSecret(
|
|
||||||
import.meta.env.PUBLIC_GOOGLE_TAG_MANAGER_ID,
|
|
||||||
);
|
|
||||||
---
|
---
|
||||||
|
|
||||||
{/* google analytics */}
|
{/* google analytics */}
|
||||||
<script
|
<script
|
||||||
is:inline
|
is:inline
|
||||||
async
|
async
|
||||||
src={`https://www.googletagmanager.com/gtag/js?id=${PUBLIC_GOOGLE_TAG_MANAGER_ID}`}
|
src="https://www.googletagmanager.com/gtag/js?id=G-GL2JVHCGPQ"
|
||||||
></script>
|
></script>
|
||||||
<script
|
<script is:inline>
|
||||||
is:inline
|
|
||||||
define:vars={{ PUBLIC_GOOGLE_TAG_MANAGER_ID }}
|
|
||||||
type="text/partytown"
|
|
||||||
>
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
|
||||||
function gtag() {
|
function gtag() {
|
||||||
dataLayer.push(arguments);
|
dataLayer.push(arguments);
|
||||||
}
|
}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
gtag('config', PUBLIC_GOOGLE_TAG_MANAGER_ID);
|
gtag('config', 'G-GL2JVHCGPQ');
|
||||||
</script>
|
</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>
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user