Skip to content

track_event() mechanism for analytics #2240

@simonw

Description

@simonw

For Datasette Cloud I need analytics that help me understand which features people are using.

I also want to provide a more detailed audit log for my customers, so they can keep track of what's been happening in their own instance.

I'm going to add a datasette.track_event(event_name, actor, properties) method which calls a plugin hook that can log or act on events.

Bonus: this means plugins that aren't tracking analytics can hook into the same system, e.g. a plugin that wants to run additional code any time someone creates a new table.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions