ihucos / counter.dev

Web Analytics made simple
https://counter.dev
GNU Affero General Public License v3.0
902 stars 39 forks source link

Private user names #53

Closed ihucos closed 1 year ago

ihucos commented 2 years ago

Quote

Hello,

I like your product, but I do feel like having your email displayed openly in the code of the website for this to work is.. questionable. Enough so that I might stop using it, or at the least setup a dummy email for the account.

Thank you!

woodcox commented 2 years ago

I agree the username should be private. But also note your username does not need to be your email address

ihucos commented 1 year ago

Implemented, deployed and testing: https://github.com/ihucos/counter.dev/commit/355a9fcde215097334e18fc89559a7e77147ab72

Let's see

ihucos commented 1 year ago

It's done, example:

<script >
    if (!sessionStorage.getItem("_swa") && document.referrer.indexOf(location.protocol + "//" + location.host) !== 0) {
        fetch("https://counter.dev/track?" + new URLSearchParams({
            referrer: document.referrer,
            screen: screen.width + "x" + screen.height,
            id: "33671ad4-a966-4a52-b48f-56c92d10a678",
            utcoffset: "1"
        }))
    };
sessionStorage.setItem("_swa", "1"); 
< /script>

Thanks for the ticket!