Skip to content

Commit

Permalink
Add instance names (when expressed in title addons) as query categori…
Browse files Browse the repository at this point in the history
…es for Piwik

Change-Id: I16a4d4a6cf035480cab2de786d64d2c4917d0721
  • Loading branch information
Akron committed Jul 18, 2024
1 parent 2478747 commit 2db881c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion lib/Kalamar/Plugin/Piwik.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand All @@ -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,
Expand Down

0 comments on commit 2db881c

Please sign in to comment.