Ya... new thread creation was already planned (and a few other things), I just haven't fully populated that settings page yet.@digitalpoint: This looks very nice so far! Can't wait to play around with it.
2 feature requests:
- Could you also add the option to track new created threads?
- It also would be really cool, if it would be easy for other developer to extend the tracking of events for other content types. For example i'm trying for years to track comments and reviews from @Bob s AddOns (like AMS, RMS,...) in Google Analytics.
I needed to make the underlying tracking framework fairly modular already because there's some trickery it has to do when tracking when a user logs in.
For example say you wanted to log a custom event, "new review" with no secondary parameters (the empty array at the end there is an array of parameters for the event):
$session = $this->session(); $session->set('analytics', ['new_review', ]); $session->save();
You could put that wherever was most appropriate (could be in an Entity that triggered only onInsert() or something.
<xf:js>gtag('event', 'new_review', );</xf:js>