Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add GA events for contributor links #6092

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add GA events for contributor links
  • Loading branch information
escattone committed Jun 27, 2024
commit 91efad10a488b7f3385f4ebb2e0dafeb3ba9df67
8 changes: 6 additions & 2 deletions kitsune/sumo/jinja2/includes/common_macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,9 @@ <h4 class="mzp-c-menu-item-title">{{ _('Get help with') }}</h4>
aria-controls="mzp-c-menu-panel-example">{{ _('Close Firefox menu') }}</button>
<div class="sumo-nav--dropdown-col">
<section class="mzp-c-menu-item mzp-has-icon sumo-nav--dropdown-item">
<a class="mzp-c-menu-item-link" href="{{ url('forums.forums') }}">
<a class="mzp-c-menu-item-link" href="{{ url('forums.forums') }}"
data-event-name="link_click"
data-event-parameters='{"link_name": "main-menu.contributor-discussions"}'>
<svg class="mzp-c-menu-item-icon" width="24" height="24" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24">
<g stroke="#000" stroke-width="2" fill="none" fill-rule="evenodd" stroke-linecap="round"
Expand All @@ -567,7 +569,9 @@ <h4 class="mzp-c-menu-item-title">{{ _('Contributor discussions') }}</h4>
</div>
<div class="sumo-nav--dropdown-col">
<section class="mzp-c-menu-item mzp-has-icon sumo-nav--dropdown-item">
<a class="mzp-c-menu-item-link" href="{{ url('products.product', slug='contributor') }}">
<a class="mzp-c-menu-item-link" href="{{ url('products.product', slug='contributor') }}"
data-event-name="link_click"
data-event-parameters='{"link_name": "main-menu.contributor-tools"}'>
<svg class="mzp-c-menu-item-icon" width="24" height="24" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24">
<path
Expand Down