How-to build a link forwarder with tracking in IPFS

in #ipfs8 months ago (edited)

And this is all 100% privacy friendly!

I built a little forwarder yesterday to's ETH token swap, here's how I did it.



You need to create a .html file via notepad, here's my example

<title>Decentralized Ethereum Swaps on IPFS</title>

<script type="text/javascript">
  var _paq = window._paq || [];
  (function() {
    var u="//";
    _paq.push(['setTrackerUrl', u+'api/track']);
    _paq.push(['setSiteId', '']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'js/nfogix.min.js'; s.parentNode.insertBefore(g,s);



This part has the URL to forward to in it. Just copy and change URL= to the URL you want to forward to.

script type="text/javascript">

This part is the tracking code. You find your tracking code in your dashboard

Save the file as name.html


Now it's super easy. Go to pinata and upload your html file.

After upload is done, head to and there is the IPFS hash + Weblink to your forwarder.

Link: QmcztYTfoWs4viwGetKBMJCc9yejrTJTx3bisbHGAUYv82

So every time someone clicks your link, they open the IPFS .html, which has your nfogix tracking code. After 2 seconds, the website forwards to your set URL.

Example tracking

Cool to know

If you own a .ENS (Ethereum Domain) or a .CRYPTO (Unstoppabledomain) you can use the IPFS hash and link it to your domain!

Here's mine for dexcited.crypto


IPFS Based Forwarding: Click Here || Alternative: dexcited.crypto