# Adding Adsense to header/footer as custom html

**URL:** <https://meta.discourse.org/t/adding-adsense-to-header-footer-as-custom-html/57334>\
**Category:** Support\
**Created:** [2017年二月14日 00:48 UTC](https://meta.discourse.org/t/adding-adsense-to-header-footer-as-custom-html/57334 "2017-02-14T00:48:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lt100](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lt100/32/67668_2.png) [@lt100](https://meta.discourse.org/u/lt100)\
**Post date:** [2017年二月14日 00:48 UTC](https://meta.discourse.org/t/adding-adsense-to-header-footer-as-custom-html/57334/1 "2017-02-14T00:48:31Z")

</div>

I’m trying to add Adsense code to both the header and the footer in Admin panel - CSS/HTML, but ads won’t show, and I have no idea why (the code works by itself when not embedded).

Maybe it has something to do with the scripts which are probably unsupported in header/footer? Can I circumvent this limitation, if it is indeed the case? I’m not sure if I want to use the plugin.

Thank you.

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2017年二月14日 20:01 UTC](https://meta.discourse.org/t/adding-adsense-to-header-footer-as-custom-html/57334/2 "2017-02-14T20:01:29Z")

</div>

You can’t add Adsense this way to Discourse because it’s a Javascript application. Instead you should use the [adsense plugin](https://github.com/discourse/discourse-adplugin).

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2017年二月15日 14:59 UTC](https://meta.discourse.org/t/adding-adsense-to-header-footer-as-custom-html/57334/3 "2017-02-15T14:59:12Z")

</div>


