# Use plausible for my writeas blog

**URL:** <https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873>\
**Category:** Customization\
**Created:** [October 4, 2020, 9:39pm UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873 "2020-10-04T21:39:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeko](https://discuss.write.as/user_avatar/discuss.write.as/jeko/32/625_2.png) [@jeko](https://discuss.write.as/u/jeko)\
**Post date:** [October 4, 2020, 9:39pm UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873/1 "2020-10-04T21:39:16Z")

</div>

Dears,

I like the stats provided by writeas but I want to go further and I would like to know if it is possible to use Plausible with it.

All I need to do is to paste this snippet in the `<head>` of the blog :

`<script async defer data-domain="rednosehacker.com" src="https://plausible.io/js/plausible.js"></script>`

Is it possible ?

Cheers

---

<div class="post-metadata">

**Author:** ![arg](https://discuss.write.as/user_avatar/discuss.write.as/arg/32/670_2.png) [@arg](https://discuss.write.as/u/arg)\
**Post date:** [October 6, 2020, 6:31pm UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873/2 "2020-10-06T18:31:19Z")

</div>

Hi @jeko, this should be possible with the _Custom Javascript_ support on Write.as. However, you would need to upgrade to a Pro account to use this feature.

In the Customize page for the Blog, there is a _Custom Javascript_ section with a box where you can paste this line and it should be available on the pages of the blog after saving it.

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [October 6, 2020, 8:08pm UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873/3 "2020-10-06T20:08:37Z")

</div>

I think this has actually come up before (maybe in the fediverse), but unfortunately it isn’t possible to add in Plausible Analytics right now. You could technically include the JS [as mentioned here](https://discuss.write.as/t/extended-js-support/210/2), but the problem is the `data-domain="rednosehacker.com"` attribute – we don’t support that extra data right now.

Maybe this is a discussion you or we could start with the Plausible folks. Some possibilities could be fully integrating with them, or just supporting the JS attribute they need.

---

<div class="post-metadata">

**Author:** ![jeko](https://discuss.write.as/user_avatar/discuss.write.as/jeko/32/625_2.png) [@jeko](https://discuss.write.as/u/jeko)\
**Post date:** [February 8, 2021, 10:06am UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873/4 "2021-02-08T10:06:16Z")

</div>

Sorry, I did not come back here haha.

It’s not mandatory to me. I was just curious !

Thank you @matt

---

<div class="post-metadata">

**Author:** ![narak](https://discuss.write.as/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@narak](https://discuss.write.as/u/narak)\
**Post date:** [February 12, 2021, 6:00pm UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873/5 "2021-02-12T18:00:46Z")

</div>

I know I would love the ability to add plausible analytics. They’re a great ethical choice for site analytics.

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [February 12, 2021, 7:37pm UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873/6 "2021-02-12T19:37:07Z")

</div>

Actually, thanks to this walkthrough from @vivgui, here’s how you could add Plausible Analytics to your blog!

> [@How to add analytics code to your site](https://discuss.write.as/t/how-to-add-analytics-code-to-your-site/2264):
>
> Hello folks! Pretty new in this community but loving it so far. I found Write.as is the easiest way I found to set up a blog that also has code syntax highlighting which is huge for me since I like writing coding tutorials. To give thanks I have a small contribution. I wanted to add analytics to my blog, I use Fathom Analytics and they only give you a code snippet with a script tag like this: \<!-- Fathom - beautiful, simple website analytics --\> \<script src="https://cdn.usefathom.com/script.j…

---

<div class="post-metadata">

**Author:** ![DougDontCode](https://discuss.write.as/user_avatar/discuss.write.as/dougdontcode/32/924_2.png) [@DougDontCode](https://discuss.write.as/u/DougDontCode)\
**Post date:** [May 28, 2021, 3:06pm UTC](https://discuss.write.as/t/use-plausible-for-my-writeas-blog/1873/7 "2021-05-28T15:06:50Z")

</div>

@matt I actually have been messing around with several scripts and managed to get Plausible working this way, along with Commento, a Google search for my site, and Hypothes.is working all together.

I stumbled on it as I’m not anywhere near a coder.

But thought I’d share my custom JavaScript entry in case someone else comes across this:

```
// src: https://cdn.commento.io/js/commento.js

// src: https://hypothes.is/embed.js

// src: https://visits.muttering.me/js/plausible.js

const font = document.createElement('link');
font.setAttribute('rel', 'stylesheet');
font.setAttribute('href', 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;1,400&display=swap');
document.head.appendChild(font);

script.setAttribute('src', 'https://cse.google.com/cse.js?cx=9e698900778c6b93e');
document.head.appendChild(script);

script.setAttribute('data-domain', 'significantbullet.co'); *Plausible Domain Snippet*

var topP = document.createElement("p");
topP.innerHTML = '<div id="commento"></div>';
var cont = document.getElementById("wrapper");
cont = document.getElementById("post-body");
cont.appendChild(topP);
```
