# How to embed the \<script src=html \>\</script\> code?

**URL:** https://meta.discourse.org/t/how-to-embed-the-script-src-html-script-code/140299
**Category:** Development
**Created:** [January 31, 2020, 1:41pm UTC](https://meta.discourse.org/t/how-to-embed-the-script-src-html-script-code/140299 "2020-01-31T13:41:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![shaco](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shaco](https://meta.discourse.org/u/shaco)
#### Post date: [January 31, 2020, 1:41pm UTC](https://meta.discourse.org/t/how-to-embed-the-script-src-html-script-code/140299/1 "2020-01-31T13:41:30Z")

</div>

I tried to put in the template files either header or body but it doesn’t work. Also it doesn’t work with Versatile banner plugin. Am I doing something wrong?

i mean this:

```plaintext
<script type="text/javascript" url=https://url-script-here >...</script> 

```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 31, 2020, 1:57pm UTC](https://meta.discourse.org/t/how-to-embed-the-script-src-html-script-code/140299/2 "2020-01-31T13:57:51Z")

</div>

Is the script located on a domain other than your forum? If so, You will have to add that domain to CSP sources in admin for the script to work.

---

<div class="post-metadata">

### Author: ![shaco](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shaco](https://meta.discourse.org/u/shaco)
#### Post date: [January 31, 2020, 1:58pm UTC](https://meta.discourse.org/t/how-to-embed-the-script-src-html-script-code/140299/3 "2020-01-31T13:58:59Z")

</div>

I have to add a root domain or an exact address ? is it a difference whether it’s https or not ?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 31, 2020, 2:00pm UTC](https://meta.discourse.org/t/how-to-embed-the-script-src-html-script-code/140299/4 "2020-01-31T14:00:11Z")

</div>

It has to be the (sub)domain. I don’t think it’ll be possible to embed http link on a https forum but your mileage may vary.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 21, 2023, 8:54pm UTC](https://meta.discourse.org/t/how-to-embed-the-script-src-html-script-code/140299/5 "2023-12-21T20:54:16Z")

</div>


