Changelog
1.0.0 - 2026-10-25
- Initial release.
PrivatusAnalyticsbuilds the script tag, with settings for site id, script host, modules, excluded paths, domains, single-page app mode, manual mode, extra attributes, a Content Security Policy nonce and more.- Off outside production by default.
event_attrsandevent_datafor custom events on buttons, links and forms.click_attrandclick_datafor click map names.- Page props (
props): a hash ref, an array ref of pairs, or a code ref that gets the request. They print theprivatusPagePropsscript anddata-props. queue_stubsetting, soprivatus.trackcalls made before the tracker loads are kept.Mojolicious::Plugin::PrivatusAnalyticswith theprivatus_analytics_tag,privatus_eventandprivatus_clickhelpers and optional auto inject.Dancer2::Plugin::PrivatusAnalyticswith the same keywords, template helpers and optional auto inject.Plack::Middleware::PrivatusAnalyticsadds the tag to the head of HTML responses from any PSGI app.- Changed: with
queue_stubon, a tag that is off (outside production,enabled => 0or no site id) now prints the queue stub and nothing else, soprivatus.track(...)calls in your own JavaScript never fail. Before, it printed nothing. Withqueue_stuboff it still prints nothing. The props code ref is still not called when the tag is off. - Added
example/, a small Mojolicious app for the conformance tests. - README: a privacy policy paragraph you can paste.