shynet icon indicating copy to clipboard operation
shynet copied to clipboard

Ability to track individual events

Open yasoob opened this issue 4 years ago • 12 comments

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?

yasoob avatar Jun 07 '20 02:06 yasoob

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.

milesmcc avatar Jun 08 '20 01:06 milesmcc

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

mrspartak avatar Jul 03 '20 11:07 mrspartak

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

wvffle avatar Jul 22 '21 14:07 wvffle

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

  1. 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)
  2. 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!

tmerten avatar Sep 01 '21 10:09 tmerten

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!

ZandercraftGames avatar Apr 29 '22 00:04 ZandercraftGames