# כיצד אוכל להוסיף סקריפט אנליטיקס לכותרת הקהילה שלי?

**URL:** https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393
**Category:** Data & reporting
**Tags:** analytics
**Created:** [14 במאי,‏ 2021,‏ 9:22am UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393 "2021-05-14T09:22:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![andrew](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew/32/227623_2.png) [@andrew](https://meta.discourse.org/u/andrew)
#### Post date: [14 במאי,‏ 2021,‏ 9:22am UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393/1 "2021-05-14T09:22:17Z")

</div>

Hi,

I am trying to add analytics script to the header.

Forum is installed without any additional themes. On themes tab it shows “No Items”, on Components tab it shows “Default”.

I tried in “Default” components edit “CSS/HTML” and add script to “head” section, but it does not reflect that code on the forum…

Any thoughts?

---

<div class="post-metadata">

### Author: ![andrew](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew/32/227623_2.png) [@andrew](https://meta.discourse.org/u/andrew)
#### Post date: [14 במאי,‏ 2021,‏ 9:53am UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393/2 "2021-05-14T09:53:45Z")

</div>

Is it possible that under the Themes tab it shows No Items … so how can I edit default template ? 😕

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/5/2507b57a1d6188c5d4fc4e37d34481c16b189012.png)

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [14 במאי,‏ 2021,‏ 12:13pm UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393/3 "2021-05-14T12:13:47Z")

</div>

Hello Andrew! Welcome here 😃 👋🏾

Are you trying to add Google Analytics or Plausible? If it is a different Analytics provider, you can use a theme component to include the Analytics code in the `head` part of your theme.

For info on theme components and how to create them, see here: [Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) as a primer.

If you are looking to add GA or Plausible, we have some topics on those already, see here: [Setup Google Tag Manager for Analytics - howto / admins - Discourse Meta](https://meta.discourse.org/t/setup-google-tag-manager-for-analytics/47335) and [Push custom events to Google Tag Manager and Analytics - howto / admins - Discourse Meta](https://meta.discourse.org/t/push-custom-events-to-google-tag-manager-and-analytics/181552) and [Add Plausible Analytics or Fathom tracking to Discourse](https://meta.discourse.org/t/add-plausible-analytics-tracking-to-discourse/173310).

---

<div class="post-metadata">

### Author: ![AndreasZhou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andreaszhou/32/212049_2.png) [@AndreasZhou](https://meta.discourse.org/u/AndreasZhou)
#### Post date: [16 ביוני,‏ 2021,‏ 3:31am UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393/4 "2021-06-16T03:31:12Z")

</div>

I have the same issue. Under Themes it shows “No Items” so I cannot add any components to a theme because I dont seem to have one. I read the Beginners guide to using Discourse Themes, however there seem to be themes installed already. I dont have any.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/2/9231e7c47df6dd490f48e6f136b0351c72c41383.png)

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [21 ביוני,‏ 2021,‏ 9:10am UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393/5 "2021-06-21T09:10:07Z")

</div>

To start off with a theme, you need to `install` it, have you tried doing that? Check out [Installing a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) for info on how to do that.

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [21 ביוני,‏ 2021,‏ 9:10am UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393/6 "2021-06-21T09:10:20Z")

</div>


