julianlam / nodebb-plugin-google-analytics

Google Analytics Plugin for NodeBB
8 stars 8 forks source link

Feature request: Events #26

Open djensen47 opened 5 years ago

djensen47 commented 5 years ago

I would like better insight as to what my users are doing and how often. Google Analytics is actually a decent place to "record" this information using Events.

It would be great to get events for a ton of things:

julianlam commented 5 years ago

Why yes, yes indeed this would be good. Nice thing about your timing is we recently added a hook called action:plugins.firehook that fires on all hooks.

I heard you like hooks, and I hooked your hook so you can listen while you listen.

I've got some neat plans involving logstash/fluentd, so I'll see what I can do with this plugin :+1:

djensen47 commented 5 years ago

Cool, let me know if I can help out. I might have some free time in about a month after April 12.

julianlam commented 5 years ago

For this plugin, or for fluentd?

For the former, it's really just adding the listener in to that hook and then figuring out how to send that data to google (and whether the data needs to be normalised in any way)

djensen47 commented 5 years ago

For the former. Okay, I'll take a look in a few weeks. 👍