diff --git a/docusaurus.config.js b/docusaurus.config.js index 6f810ff8..1ef3d33b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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' }, ], }; diff --git a/src/components/CarbonAd.js b/src/components/CarbonAd.js index fe728acf..f99f1d29 100644 --- a/src/components/CarbonAd.js +++ b/src/components/CarbonAd.js @@ -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 ( <>