<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>writeAs &amp;mdash; Build stuff; Break stuff; Have fun!</title>
    <link>https://barfooz.xyz/tag:writeAs</link>
    <description>barfooz.xyz</description>
    <pubDate>Mon, 01 Jun 2026 15:33:16 +0000</pubDate>
    <image>
      <url>https://i.snap.as/btoNrLSF.png</url>
      <title>writeAs &amp;mdash; Build stuff; Break stuff; Have fun!</title>
      <link>https://barfooz.xyz/tag:writeAs</link>
    </image>
    <item>
      <title>Add pirsch.io tracking to write.as</title>
      <link>https://barfooz.xyz/add-pirsch-io-tracking-to-write-as?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Write.as has the option to add custom CSS and JS to the site. Write.as has also basic tracking for the posts and how they are performing. But it is just basic tracking and only for the last 30 days. So I wanted a bit more. For private projects, I use prisch.io. Which is privacy-friendly and hosted in Germany. I will try this out. If it is not working as expected, I will remove the script.&#xA;&#xA;How can you implement such a script?&#xA;&#xA;First, go to your pirsch.io Dashboard and click the + Icon on the top-right.&#xA;&#xA;Add a new website to your pirsch.io Dashboard&#xA;&#xA;You will be asked between Client or Server implementation. Go to Client implementation and copy the script tag.&#xA;&#xA;&lt;script defer src=&#34;https://api.pirsch.io/pa.js&#34;&#xA;    id=&#34;pianjs&#34;&#xA;    data-code=&#34;YOURSITECODE&#34;  /script&#xA;Now, transfer this HTML into JavaScript. Here we create a new element and add it to the document head /.&#xA;&#xA;// Add prisch tracking --- START&#xA;const script = document.createElement(&#39;script&#39;);&#xA;script.setAttribute(&#39;id&#39;, &#39;pianjs&#39;);&#xA;script.setAttribute(&#39;defer&#39;, true);&#xA;script.setAttribute(&#39;src&#39;, &#39;https://api.pirsch.io/pa.js&#39;);&#xA;script.setAttribute(&#39;data-code&#39;, &#39;YOURSITECODE&#39;);&#xA;document.head.appendChild(script);&#xA;// Add prisch tracking --- END&#xA;This snipped can be added to your write.as blog. Go to your write.as Dashboard and select the Customize Button. Here is an area where you can add custom JavaScript.&#xA;&#xA;Add custom JavaScript to Write.as&#xA;&#xA;Hit “Save changes” and reload your blog. The script should now be added. :)&#xA;&#xA;I hope this will help someone.&#xA;&#xA;---&#xA;&#xA;25/100 of #100DaysToOffload&#xA;&#xA;#log #writeAs&#xA;&#xA;a href=&#34;https://remark.as/p/barfooz.xyz/add-pirsch-io-tracking-to-write-as&#34;Discuss.../a]]&gt;</description>
      <content:encoded><![CDATA[<p>Write.as has the option to add custom CSS and JS to the site. Write.as has also basic tracking for the posts and how they are performing. But it is just basic tracking and only for the last 30 days. So I wanted a bit more. For private projects, I use prisch.io. Which is privacy-friendly and hosted in Germany. I will try this out. If it is not working as expected, I will remove the script.</p>

<h2 id="how-can-you-implement-such-a-script" id="how-can-you-implement-such-a-script">How can you implement such a script?</h2>

<p>First, go to your <a href="https://dashboard.pirsch.io/">pirsch.io Dashboard</a> and click the <code>+</code> Icon on the top-right.</p>

<p><img src="https://i.snap.as/gQEhSsjC.jpg" alt="Add a new website to your pirsch.io Dashboard"/></p>

<p>You will be asked between Client or Server implementation. Go to Client implementation and copy the script tag.</p>

<pre><code>&lt;script defer src=&#34;https://api.pirsch.io/pa.js&#34;
    id=&#34;pianjs&#34;
    data-code=&#34;YOUR_SITE_CODE&#34;&gt;&lt;/script&gt;
</code></pre>

<p>Now, transfer this HTML into JavaScript. Here we create a new element and add it to the document <code>&lt;head /&gt;</code>.</p>

<pre><code>// Add prisch tracking --- START
const script = document.createElement(&#39;script&#39;);
script.setAttribute(&#39;id&#39;, &#39;pianjs&#39;);
script.setAttribute(&#39;defer&#39;, true);
script.setAttribute(&#39;src&#39;, &#39;https://api.pirsch.io/pa.js&#39;);
script.setAttribute(&#39;data-code&#39;, &#39;YOUR_SITE_CODE&#39;);
document.head.appendChild(script);
// Add prisch tracking --- END
</code></pre>

<p>This snipped can be added to your write.as blog. Go to your <a href="https://write.as/me/c/">write.as Dashboard</a> and select the Customize Button. Here is an area where you can add custom JavaScript.</p>

<p><img src="https://i.snap.as/0lyrGglt.jpg" alt="Add custom JavaScript to Write.as"/></p>

<p>Hit “Save changes” and reload your blog. The script should now be added. :)</p>

<p>I hope this will help someone.</p>

<hr/>

<p>25/100 of <a href="https://barfooz.xyz/tag:100DaysToOffload" class="hashtag"><span>#</span><span class="p-category">100DaysToOffload</span></a></p>

<p><a href="https://barfooz.xyz/tag:log" class="hashtag"><span>#</span><span class="p-category">log</span></a> <a href="https://barfooz.xyz/tag:writeAs" class="hashtag"><span>#</span><span class="p-category">writeAs</span></a></p>

<p><a href="https://remark.as/p/barfooz.xyz/add-pirsch-io-tracking-to-write-as">Discuss...</a></p>
]]></content:encoded>
      <guid>https://barfooz.xyz/add-pirsch-io-tracking-to-write-as</guid>
      <pubDate>Wed, 08 May 2024 15:16:53 +0000</pubDate>
    </item>
  </channel>
</rss>