This commit is contained in:
Alicia Sykes 2024-01-08 10:09:51 +00:00
parent 796f11e960
commit 8eba317ff6
2 changed files with 0 additions and 10 deletions

View File

@ -146,7 +146,5 @@ module.exports = {
scripts: [
// Plausible Analytics (no tracking, just hit counter, using self-hosted Plausible)
{src: 'https://no-track.as93.net/js/script.js', defer: true, 'data-domain': 'dashy.to'},
// Carbon Ads
{ src: '//cdn.carbonads.com/carbon.js?serve=CWYIC53L&placement=dashyto', async: true, id: '_carbonads_js' },
],
};

View File

@ -1,14 +1,6 @@
import React, { useEffect } from 'react';
const CarbonAds = () => {
useEffect(() => {
const script = document.createElement('script');
script.src = '//cdn.carbonads.com/carbon.js?serve=CWYIC53L&placement=dashyto';
script.id = '_carbonads_js';
script.async = true;
document.body.appendChild(script);
}, []);
return (
<>
<div id="carbonads"></div>