diff --git a/Changes b/Changes index 0fdac7b5..66d8bda5 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,4 @@ -0.55 2024-06-26 +0.55 2024-07-03 - Removed deprecated doc_link_to helper. (diewald) - Removed deprecated doc_ext_link_to helper. (diewald) - Removed deprecated doc_uc helper. (diewald) @@ -9,6 +9,7 @@ (as per Kudstvakt #758). (diewald) - Improve test suite for slim images. (diewald) - Add pages to references in snippet view. (diewald) + - Added category to Piwik calls. (diewald) 0.54 2024-06-10 - Remove deprecated 'matchInfo' API path. (diewald, margaretha) diff --git a/lib/Kalamar/Plugin/Piwik.pm b/lib/Kalamar/Plugin/Piwik.pm index 9f0db81e..670ea783 100644 --- a/lib/Kalamar/Plugin/Piwik.pm +++ b/lib/Kalamar/Plugin/Piwik.pm @@ -74,6 +74,9 @@ APPEND inline => q!<%= piwik_tag 'as-script' %>! }); + # Add instance title as category + my $action_addon = $mojo->loc('title_addon') ? $mojo->loc('title_addon') . ' / ' : ''; + # If all requests should be pinged, # establish this hook if ($param->{ping_requests}) { @@ -87,7 +90,7 @@ APPEND # This won't forward personalized information my $hash = { action_url => $c->url_for->to_abs, - action_name => $route, + action_name => $action_addon . $route, ua => '', urlref => '', send_image => 0,