feat: some ads basework

This commit is contained in:
TrèsAbhi committed 2024-10-09 22:35:10 -05:00
1 parent e52063c12d
commit 9923efe8ab
4 files changed
+64 -73

No files matched your search

@@ -1,3 +1,4 @@
{/* google analytics */}
<script
is:inline
async
@@ -11,3 +12,24 @@
gtag('js', new Date());
gtag('config', 'G-GL2JVHCGPQ');
</script>
{/* nitro ads */}
<script data-cfasync="false" is:inline>
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>
<script
is:inline
data-cfasync="false"
async
src={`https://s.nitropay.com/ads-${import.meta.env.PUBLIC_NITROPAY_ID}.js`}
></script>