shynet
shynet copied to clipboard
Ability to track individual events
Hi! Loving shynet so far. Really like the interface. Testing it out on my personal blog and hoping to ditch Google Analytics soon. Quick question: Is it possible to track individual events on pages? For example I want to check how many times someone clicks on a particular div. If this isn't already a feature, do you foresee this a possible feature for 1.0?
This is the sort of thing that we should support, even though it’s unclear to me what the interface would look like. I’m going to put this on the roadmap for v1.0.
This is really a very useful thing. My suggestion is to have client API like ga has https://developers.google.com/analytics/devguides/collection/analyticsjs/events But this needs really complicated interface
shynet.sendEvent(category, action, label?, value?)
/*
Also, track the page location of the event
*/
Or to simplify tracking just track an event name
shynet.sendEvent('button:clicked')
And just show all events in a table like all other numbers currently
I opt for a simple tracking with event category, name and value, like
shynet.sendEvent(category, name, value = 1)
and show it in a table, where you can filter by event name / category:
+--------------------------+
| filter input |
+--------------------------+
+--------------------------+--------------------------+
| button:clicked | registerButton (13) |
| button:clicked | moreButton (8) |
| button:clicked | lessButton (8) |
+--------------------------+--------------------------+
It'd be nice to show the sum
, sum by value
and timeline
views
-
sum
view would sum all of the values of events with same name and category (if the values are numbers, when values are strings, it'd add 1 for each such event) -
sum by value
view would add a third column to the table and show how many times particular value occured
Hi folks. I also think this is a super interesting feature.
I'd just like to put my two cents in the requirements perspective here.
We currently use category/event tracking mostly to add debug info to some important "money paths". Something like: User completes first page of wizard, second page, payment complete. vs. payment incomplete but why?
That said it is
- nice to be able to "deep dive" into a user's journey instead of counting events, only (I am not saying you should provide an UI for this in the first shot but maybe it is something to think about in terms of data architecture)
- sometimes it an event can carry some value it is good to be able to sent string (something meaningfull ;) , too)
Anyways, it is just my two cents and - of course - your decision :). Keep up the good work!
This is a great idea. Having some form of API to increment hits or send data in this regard would be great.
It would be nice to be able to track, for example, command usage in a Discord bot by sending an event to the API stating to increment a certain counter.
E.g.:
- Help command: 20 hits
- Meme command: 5 hits
- Invite command: 53 hits
And then be able to see usage graphs for them.
Just my input though. It's a great piece of software as it stands. Keep up the great work!