# Allow \<script\> tags in House ads

**URL:** https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580
**Category:** Feature
**Tags:** advertising
**Created:** [October 20, 2022, 5:40pm UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580 "2022-10-20T17:40:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [October 20, 2022, 5:40pm UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580/1 "2022-10-20T17:40:07Z")

</div>

> [@House Ads in the official Ad Plugin](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/53):
>
> Yeah, I don’t think `<script>` tags are going to work in House Ad. You should only put “bare” html

Could anybody confirm if `<script>` tags are allowed in a House Ad?

---

<div class="post-metadata">

### Author: ![kinetiksoft](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kinetiksoft/32/229578_2.png) [@kinetiksoft](https://meta.discourse.org/u/kinetiksoft)
#### Post date: [January 23, 2023, 5:39pm UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580/2 "2023-01-23T17:39:57Z")

</div>

> [@rahim123](#):
>
> Could anybody confirm if `<script>` tags are allowed in a House Ad?

They still seem to be not allowed. It’s a pity, since there is no other plugin which has capability to show custom stuff for custom groups.

---

<div class="post-metadata">

### Author: ![Evren\_Yilmaz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/evren_yilmaz/32/300937_2.png) [@Evren\_Yilmaz](https://meta.discourse.org/u/Evren_Yilmaz)
#### Post date: [April 3, 2023, 4:23am UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580/3 "2023-04-03T04:23:53Z")

</div>

Feature Request, possibility to enable script inside House Ad. I understand, for security reasons not be able put JS in Posts, but for Plugins → I mean the config can only modify admin, so its safe.

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [August 19, 2023, 12:12am UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580/4 "2023-08-19T00:12:38Z")

</div>

I second this one! That way we could track House Ads impressions easier in GA or any other Analytics tool.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [August 19, 2023, 4:38am UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580/5 "2023-08-19T04:38:44Z")

</div>

> [@jrgong](#):
>
> That way we could track House Ads impressions easier in GA or any other Analytics tool.

Are you wanting to monetize house ads - find some way to get paid per view or click?

It’s possible to push click events on CSS elements to GA or other analytics tools. There’s an example of how to do that here: [Push custom events to Google Tag Manager and Analytics - #7](https://meta.discourse.org/t/push-custom-events-to-google-tag-manager-and-analytics/181552/7). I suspect that tracking views is what would be really useful.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [August 19, 2023, 6:38am UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580/6 "2023-08-19T06:38:41Z")

</div>

We add script tags in to our site header, would this work for your use case?

 ![IMG_1947](https://global.discourse-cdn.com/meta/original/4X/5/2/a/52ab01f7b22dfa92e35fd9459c52128ae62a4e8d.jpeg)

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [August 19, 2023, 3:25pm UTC](https://meta.discourse.org/t/allow-script-tags-in-house-ads/266580/7 "2023-08-19T15:25:46Z")

</div>

> [@Richie](#):
>
> We add script tags in to our site header, would this work for your use case?

Currently, we are using Plausible Analytics which required exactly that at the moment. But we just realized that it might be easier to switch to Matomo

It has built in content tracking via data-\* parameters, see: [How do I markup content for content tracking? FAQ - Analytics Platform - Matomo](https://matomo.org/faq/how-to/how-do-i-markup-content-for-content-tracking/)  
That way, Matomo apparently eliminates the need to set up JS scripts for each goal/event you want to track. And costs about the same.

I will report later here
