Skip to content

Commit

Permalink
feat(forum_search): add matomo event on search results
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jun 20, 2023
1 parent 0cda3a0 commit d4b7c2c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lacommunaute/templates/forum_search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ <h3 class="h4 mb-0">{{ page.paginator.count }} {% trans "result" %}{{ page.pagin
{% if result.topic %}
<tr>
<td class="position-relative">
<a href="{% url 'forum_conversation:topic' result.forum_slug result.forum result.topic_slug result.topic %}" class="btn-link stretched-link">{{ result.topic_subject }}</a><br>
<a href="{% url 'forum_conversation:topic' result.forum_slug result.forum result.topic_slug result.topic %}"
class="btn-link stretched-link matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="topic"
>
{{ result.topic_subject }}</a><br>
<small class="text-muted">
{% spaceless %}
<i class="fas fa-clock"></i>&nbsp;
Expand All @@ -60,7 +66,13 @@ <h3 class="h4 mb-0">{{ page.paginator.count }} {% trans "result" %}{{ page.pagin
{% else %}
<tr>
<td class="position-relative">
<a href="{% url 'forum_extension:forum' result.forum_slug result.forum %}" class="btn-link stretched-link">{{ result.forum_name }}</a><br>
<a href="{% url 'forum_extension:forum' result.forum_slug result.forum %}"
class="btn-link stretched-link matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="forum"
>
{{ result.forum_name }}</a><br>
<small class="text-muted">
{% spaceless %}
<i class="fas fa-clock"></i>&nbsp;
Expand Down

0 comments on commit d4b7c2c

Please sign in to comment.