ibericode / koko-analytics

Privacy-friendly, open-source and lightweight analytics for your WordPress site.
https://www.kokoanalytics.com/
GNU General Public License v3.0
367 stars 30 forks source link

Feature suggestion: Event tracking #10

Closed dannyvankooten closed 11 months ago

dannyvankooten commented 4 years ago

Personally I feel event tracking, like keeping track of the number of people submitting a contact form, is one of the most important metrics for a lot of website where the main goal is to get people to reach out to the website owner.

Two possible ways of going about this:

We could start out with just the manual approach and when that's working well enough, slowly shift to a more automated way.


Please vote on this feature suggestion using :+1: or :-1: below.

ghost commented 4 years ago

Hi Danny, thank you for your wonderful work on Koko Analytics!

I am not sure if this is possible as I am no developer, but I would be truly grateful if you could have "internal link clicks tracking," in addition to "external link clicks tracking."

This is because I would like to see how viewers are circulating around my website & what kind of external websites they are interested in enough to click links.

Matomo Analytics tracks external link clicks as "Outlinks," but it has few roundabout ways to track internal link clicks. This is the very reason I cannot get rid of Google Tag Manager.

I created my Github account in order to post this comment. Anyway, thank you again for handy and lightweight Koko Analytics!

dannyvankooten commented 4 years ago

Hey @TyWood,

Thanks for dropping by! Sorry I'm a bit late to respond but my partner and I have been expecting a baby (due 8 days ago, still waiting) so I haven't been able to work as much.

Tracking link clinks, whether internal or external, is something that would be covered by event tracking at the very least, which will definitely end up in the plugin soon-ish so that should be good to know. For example, you could add a tiny snippet of JavaScript to your website to track all link clicks and categorise them by Outlink: <link-name> and Inlink: <link-name> so it's easy to distinguish both.

That said, if it's visitor flow you're interested in there might be simpler ways to go about this, although I would have to think a little more on what that would look like. Do you have a good example of how you would like this to work ideally?

ghost commented 4 years ago

Thank you very much for your detailed reply, @dannyvankooten ! I too am really sorry for my late response. I was not feeling well.

I am happy to hear that link clicks tracking is likely to be implemented, and differentiating external and internal link clicks will not be a problem.

My ultimate ideal would be that Koko Analytics can display

  1. Which links, as "Clicked URL," got how many clicks as "Clicks," and the "Total" row
  2. After clicking a figure in the "Clicks" column, in which URL, as "Clicked where," the links were clicked how many times, and the "Total" row

Here is what I tried plotting:

1st Displayed

[External link clicks]

Clicked URL Clicks
https://example.com/dogs 50
https://example.net/seashore 20
--- ---
Total 70

[Internal link clicks]

Clicked URL Clicks
/ 100
/about 40
/privacy-policy 30
--- ---
Total 170

Displayed after clicking a figure in the "Clicks" column, for example "30" of "/privacy-policy"

Clicked where Clicks
/ 25
/about 5
--- ---
Total 30

However, even only the 1st one will be a big plus to know how many and what kind of link clicks happened.

I run my small mainly book review website as a pure hobby, so large-scale website owners and marketers might have different wishes.

English is my second language, so please feel free to change my wording when equipping these features.

Thank you for being open to users', even laypeople's comments!

arnelap commented 3 years ago

https://wordpress.org/support/topic/event-pdf-downloads-tracking/

SteelWagstaff commented 3 years ago

Hey @dannyvankooten -- thanks for your work on privacy-respecting web analytics. Very much appreciate it. Love Koko and what it offers for WordPress site admins.

We make open-source book publishing software built on the WordPress platform that allows people to publish free copies of the book in various export formats to the book's homepage. We've added a single custom filter for Google Analytics which tracks book download events from a book's homepage (https://github.com/pressbooks/pressbooks-book/blob/77e3d130dca6cf24df8a1fb921017df5a4f38997/partials/content-cover-book-header.php#L73-L82)

We'd love to be able to use Koko for something similar -- if that was possible, then we we able to totally support our users who want to drop Google Analytics but still gather basic information about page views and file download events for the books they publish. Eager to hear about any future plans to add support for event tracking, and to potentially contribute via a PR if it was welcomed and would diminish the chances of us making our own fork of the project.

arnelap commented 2 years ago

Another request for event tracking, to track outbound links that moved people away from the site. https://wordpress.org/support/topic/could-you-please-add-those-features/

arnelap commented 2 years ago

https://wordpress.org/support/topic/tracking-downloads-13/

Rhoslyn92 commented 2 years ago

I'm very interested in this feature! I manage a website with many downloadable PDF resources. Ideally I'd like the be able to apply multiple categories/tags to files, and see download #s in various combinations. For example, being able to look at all downloads in a particular language, or all downloads for resources on a particular topic.

wpgaurav commented 1 year ago

Let's get done with events! It's been a long wait.

dannyvankooten commented 1 year ago

Hello everyone,

So at first I thought @wpgaurav was a tad rude as Koko Analytics is a free plugin and I'd rather not introduce such a complex feature and pay for it with my own time as I'm already investing quite a bit of money in Koko Analytics to provide free plugin support on the WordPress.org forums. But it did get me thinking about the future of the plugin...

So, I've decided to invest some more time into Koko Analytics and start offering event tracking and email reports as a paid add-on plugin. The OpenCollective initiative is simply not working, so hopefully this will allow some people to start contributing to the plugin in a meaningful way.

I'm currently looking for input on what you think event tracking should look like, but here's what I had in mind:

Event Tracking

You can call koko_analytics.trackEvent( "event name", { custom: "params" }) from JavaScript to record any event name you like along with custom parameters.If you then add a widget to your dashboard for this event it shows how many times it was triggered grouped by its parameters.

For example, let's say you're firing koko_analytics.trackEvent( 'click', { url: "/contact/" }) and koko_analytics.trackEvent( 'click', { url: "/download/" })..

You can then add a new dashboard widget to your Koko Analytics dashboard and specify click as the event name for that widget. It will then show you a list of click events with the url parameter as a column. Like this:

URL Visitors Events
/contact/ 1 5
/download/ 1 2

Thoughts?

wpgaurav commented 1 year ago

Hi @dannyvankooten , I wanted to show how desperately some of us want some extra features. 👍🏼 I am already paying for HTML forms, so I'll be more than happy to pay for this as well. Your format looks really nice. If events are too big a thing right now, maybe we could at least have a section like this: Jetpack Stats ‹ Compass by Rau's IAS — WordPress com 2023-09-003108 Source: Jetpack Stats

dannyvankooten commented 1 year ago

Happy to share that there has been a ton of progress on this.

image

The approach laid out above turns out to be pretty versatile. In its simple form we're currently using it to track outbound clicks.

More creatively we're also using it to power the "is this helpful?" question at the bottom of the knowledge base pages. If someone clicks "yes" we track a custom event with a positive value and we send a negative event value if someone chooses "no".

image image

dannyvankooten commented 11 months ago

Event tracking is now possible with Koko Analytics Pro :tada:

wpgaurav commented 11 months ago

Cheers @dannyvankooten :) Purchased Koko Analytics Pro. Slowly migrating to it from GA4.

Maybe there is some option to reduce the cost for us in the third-world countries. 1 License of HTML Forms already costs $81 a year, and there are no renewal discounts. So, I can use these on just one blog and not on others at the moment. Please look at this as well. 🙌🏼

dannyvankooten commented 11 months ago

Nice @wpgaurav! And I'd love to offer such an option, do you have any examples of other paid plugins doing this in a way that you think is good?

wpgaurav commented 11 months ago

None other than the Jetpack has a PPP (Purchasing Power Parity) pricing for us. Akismet, for example, costs around $9.95 a month for pro, which equals to ₹828. But they charge ₹579 a month instead. The difference is 30% exactly and the same goes for all modules, including the complete plan. Pricing – Akismet 2023-10-003376 Pricing – Akismet 2023-10-003380

Did you know that I had to wait for HTML Forms Premium version 1.0.14 to be released before I renewed my license that had expired 4 months ago with 1.0.13 so that I could saved some bucks for that time of the year.

eduwass commented 5 months ago

@dannyvankooten is event tracking not an option anymore?