ihucos / counter.dev Goto Github PK
View Code? Open in Web Editor NEWWeb Analytics made simple
Home Page: https://counter.dev
License: GNU Affero General Public License v3.0
Web Analytics made simple
Home Page: https://counter.dev
License: GNU Affero General Public License v3.0
It would be nice if the tracking was counting more the one visit, it's not very useful if you want to know if someone would open main website and click on for instance documentation page.
If think it's good idea to send tracking code once for first visit and send smaller ajax requests on each visited page. If the tracking is per sessionStorage it will give single session on the website what pages he visited.
Hi,
I'm trying to run counter.dev
on Windows using this simulated Linux environment called Cygwin (little uncommon to succeed on big projects), So It is very likely not to work at all, but let's try.
So what's Plash ?
I couldn't spot any reference on the net to what it is actually.
When clicking it a new tab opens with the URL "about:blank" and that's it.
I'm using Brave. Lowered the shields but problem persists.
Hello!
Love this tool! Really useful to see how my site is doing.
When looking through the client tracker script, this line seemed weird to me: utcoffset: "x"
The number seems to be referring to the dashboard owner's timezone, but then it just seems redundant, as the server already has access to that.
I would guess (but cannot confirm) that it instead would be used to get the client's timezone for use in the "Time" module.
If so, the script to use would need to be something like: utcoffset: (-(new Date()).getTimezoneOffset()/60)
(https://stackoverflow.com/a/9149604)
If that is correct, then I can open a pull request and plop it in.
If not, feel free to close this issue.
The standard javascript you need to copy-paste has a hardcoded account name that makes your data public. It might be nicer to automatically fill in the users own username, or include some text to say that you should substitute your own username instead of the pre-filled value.
Also, the script preview is blocked by my ad blocker. I don't really mind not tracking users with add blockers, though I would prefer if the admin screen settings page worked.
They leak into the script include, it would look nicer if they are shorter. Collisions, maintaining counter in redis as state yadda yadda yadda
<script src="https://cdn.counter.dev/script.js" data-id="33671ad4-a966-4a52-b48f-56c92d10a678" data-utcoffset="1"></script>
When I visit https://counter.dev/setup.html the email address isn't wrapped properly if it's a very long address.
Hi, thanks before for this awesome tool.
I just curious, is there an option to share our dashboard to guest but only specific URL?
Currently guest link will share all URL/Domain in our dashboard, so if it possible.
Thanks
*.translate.goog
*.netlify.app
I am very fond of the self-hosting philosophy, and I have my own VPS where I would love to self-host my Counter instance. Nevertheless, I definitely lack the technical skills to do so without proper instructions.
Furthermore, my server runs with YunoHost, and it would be awesome if Counter could be wrapped into a YunoHost package.
Lastly, self hosting could bypass the problem of counter.dev
being blocked by ad-blockers, as reported in #6.
I have counter.dev analytics on neofetch-js
, and I saw @webdev03 's phone loading a site from their computer in counter.dev . I think analytics requests from .lan
, .local
, 10.*.*.*
, and 192.168.*.*
, and domain names without a .
(and maybe others) need to be discarded and hidden from users by default, because I should not see their computer's hostname or the port their web server was running on. Please fix this.
I would really like to be able to track outbound links. Are there any plans on adding such a feature?
Or is it possible to do it somehow with the current code?
They are currently just an offset from UTC, not a timezone. My Europe/Berlin changes the offset depending on summer or winter time.
My entries right after 0:00 am (you know, 24:00 - midnight) get collected into "yesterday" and not "today" now in the summer. I believe because something is relative to the browsers timezone.
If the local memory cache as done with the uuid turns out feasable the timezone can be a setting and not a GET parameter from the tracking code.
Nobody complained about this yet
This is just a FYI issue to notify that you were added to the curated awesome-humane-tech in the 'Analytics' category, and - if you like that - are now entitled to wear our badge:
By adding this to the README:
[![Awesome Humane Tech](https://raw.githubusercontent.com/humanetech-community/awesome-humane-tech/main/humane-tech-badge.svg?sanitize=true)](https://github.com/humanetech-community/awesome-humane-tech)
https://github.com/humanetech-community/awesome-humane-tech
(If you were already notified or aware of the badge program before, then I humbly pardon for the disturbance)
It seems like there isn't a lot of analysis regarding individual users, which makes a GDPR cookie banner obsolete?
Would be great to have an official statement somewhere in the documentation or on the website.
only allow user given domains to be added.
A very common feature request.
Would it be possible to support aliasing under own domain, so one can fetch tracking script from analytics.owndomain.com
which would be CNAMEd to counter.dev
?
Would help against adblockers.
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!
Cloudflare is not supporting it anymore blaming Chromium for removing it's support. I need to find another way to serve many small component js files.
Hello people, thanks a lot for the app. I was wondering if you could help me here, I have a static website and I've added the tracking code, the thing is the "Entry pages" section is always showing the /
. Any idea what might be the issue?
Here's the dashboard: https://counter.dev/dashboard.html?user=Woile&token=uDRZvvv2oM7q8Rga
And here's my blog:
https://github.com/Woile/woile.github.io/blob/cc3787c410415c0f728daba0d90f4dc9a546585b/conf.py#L1239-L1243
I've checked the network tab and there's a call being made from the blog posts, like this: https://woile.dev/posts/helm-3-crafting-a-chart/
Thanks!
Rather than developing direct migration from Google Analytics, Plausible, or other counter.dev alternatives, I believe that in order to allow users to move to counter.dev it is very, very important to provide them the possibility of importing data from other analytics services via CSV.
I was not able to figure out how to use counter.dev locally. I assume a domain name with a live website is needed in order to use counter.dev to view the dashboard stats? Just pasting in the javascript into the head tag is easy enough but what do you do afterwards?
Hello,
Counter.dev is not available when you're accessing the website while connected to (Mullvad)VPN.
Also CORS issue occurs on tracking link when you're on VPN.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://counter.dev/
Any idea why?
If you require any details, just ask :-)
Best regards,
spectral369
Would be handy if it also shows the device used as icon (e.G. phone, maybe also a browser and os symbol). Also have that internal data as json.
I pasted the script into the html head and went to brave to test if I implemented the script correctly. But even after 30min the page view didn't show up on the dashboard. So I tried it on Safari which also didn't work. In the end I opened the page on chrome and the page view showed up in the same second on the dashboard.
Why isn't it working for safari and brave?
Hi!
I tested it with the lighthouse and it seems that there is no bots recognition implemented. Every test made with this tool increments the visits counter. Would it be possible to ignore bots' track requests?
Does your service support projects? I was looking at the tracking code and it looks that it's not. I would be good idea to add projects with Id, where users can set different projects with different IDs and show statistics for different projects.
It support domains but I would like to have same project for different domains? For instance I would be able to track the usage of bookmarklet for my Open source project.
Straight from twitter: https://twitter.com/notifications
@DevCounter
Here's a thought -- some of the sources in my sources list are broken down in funny ways. Like... http://google.com, http://google.nl, http://google.de... Is there any way to group like sources together? At least subdomains?
As far as I can tell this isn't possible and no issue has been opened for it, so here goes nothing: it should be possible to change the email address associated with your Counter account. Currently you'd have to delete it and make a new one, which means you'd lose everything. This isn't ideal.
On double click or sth
I'm trying to run a counter.dev instance using Replit. Unfortunately, the Redis library doesn't support using files for the database, so it won't work.
I just wanted to donate and the paypal button don't work. Looks like error in PayPal you should report this.
This is the error in console
assertion.js:64 Uncaught TypeError: Parameter `currency.value` must be a number or a string representing a canonical number (e.g, `"9999.99"`), not string `"20,00"`
at u (assertion.js:64)
at c (assertion.js:118)
at assertCanonicalNumberType (numberHelpers.js:34)
at h.value [as formatCurrency] (number.js:238)
at y (formator.js:114)
at Object../utility/getTemplateData.js (getTemplateData.js:71)
at n (bootstrap:19)
at Module../routes/member.js (member.js:4177)
at n (bootstrap:19)
at bootstrap:83
which is stupid because you can't type 20.00 only 20,00 that is not valid according to assertion.js. Maybe the issue with localization some countries use ,
(like Poland) some .
(USA).
A user complained about this error on his browser.
(index):173 GET https://simple-web-analytics.com/track?referrer=&site=XXXXXX&utcoffset=0 net::ERR_BLOCKED_BY_ADBLOCKER
(anonymous) @ (index):173
(index):1 Uncaught (in promise) TypeError: Failed to fetch
I'd need to inspect that and know how much traffic could be affected.
Hey guys,
Been using Counter for a while now and loving it!
Just a quick question, can I track the referral (utm_source) of the url? How do I do that?
Thanks a ton
Hello,
First of all, thanks a lot for your solution it save a lot of time and money and appreciate a lot your works on it.
Currently I have several Next.js (React) website. When i use counter, it tell always the same entrypoint (/).
Do you know how i can solve this ?
If needed i can make a reproductive repository.
Thanks :)
Quentin
You seems to miss 8 years of war in Donbass. Ukraine killed over 3000 civilians, including over 200 kids. Donbass become a training ground for Nazi units.
"Our kids will go to schools, their will hide in cellars. That way we'll win the war", said Poroshenko back in 2014.
Get real, man.
Since JavaScript can record the constant pageLoadTime
, I believe it would be wonderful and extremely useful if Counter could collect and store it, too.
Supporting an automatic dark interface for the dashboard
A user noted that his browser does not support URLSearchParams
and that for some browses like IE and older browsers fetch
is not supported.
Each of this features are independently from each others supported by ~95% percent of all browsers.[1] With IE not supporting these two features at all and therefore not being tracked.
Not tracking IE is of course undesirable since it could be interesting for users to know how many of it's users are using IE in order to better evaluate if supporting it is worth it. Additionally I know there are potential users where a considerable percentage of users could be IE - for example internal webpages for corporations or governments where most users have to use IE.
On the other hand, we have that one of the design decisions of SWA is to not have a separate javascript file that is included but instead the tracking javascript embedded into the source. This is done like this for security reasons and because it's cheaper and SWA is a free service that is privacy friendly.
Having the embedded inline script not use fetch
and URLSearchParams
may be possible, but would make it longer and more complex.
Weighting this, my current opinion is that having a shorter and more legible tracking code and the transparency with that is more valuable than supporting more browsers and track IE. With time this issue may become more and more irrelevant.
I am very open to other opinions, a discussion or a concrete suggestion how the tracking code could look like so more browsers are supported :-)
[1]
https://caniuse.com/#search=fetch
https://caniuse.com/#search=URLSearchParams
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.