# How to insert Google Admobe code to \<head\> tag

**URL:** https://meta.discourse.org/t/how-to-insert-google-admobe-code-to-head-tag/155691
**Category:** Support
**Created:** [June 23, 2020, 2:18pm UTC](https://meta.discourse.org/t/how-to-insert-google-admobe-code-to-head-tag/155691 "2020-06-23T14:18:31Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![sharkdeng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sharkdeng/32/184854_2.png) [@sharkdeng](https://meta.discourse.org/u/sharkdeng)
#### Post date: [June 23, 2020, 2:47pm UTC](https://meta.discourse.org/t/how-to-insert-google-admobe-code-to-head-tag/155691/3 "2020-06-23T14:47:13Z")

</div>

Hello, after looking for ‘ + discourse’, I found this post is really helpful!!

> [@Custom javascript in \<head\> disappear](https://meta.discourse.org/t/custom-javascript-in-head-disappear/144356/3):
>
> It does not “disappear” it’s still there. What happens is that we pull all inline scripts and put them in one file for your theme. [discourse/app/models/theme\_field.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/app/models/theme_field.rb#L73-L128) So, if you search the page-source for theme-javascript you should see something like this [theme javascript file] This file will contain all of your inline scripts. Also, Discourse has native support for Google Analytics, so why not use that? Search the settings for Analytics

It also explains why script in would disappear and discourse support Google Analytics.

---

_[View the full topic](https://meta.discourse.org/t/how-to-insert-google-admobe-code-to-head-tag/155691)._
