Skip to content

Commit

Permalink
TABS: adiciona GA evento para click
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed Oct 16, 2024
1 parent ada158d commit c535ffe
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions templates/regional/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,20 @@
{% endfor %}
{% endset %}


<li class="nav-item" role="presentation">
<button class="nav-link {% if tab_param == tab_occ %}active{% endif %}" id="tab-{{tab_occ}}" data-tab="{{tab_occ}}" data-toggle="tab" type="button" role="tab" title="{{ attribute(texts.TABS, tab_desc) is defined ? attribute(texts.TABS, tab_desc) }}">
<button
id="tab-{{tab_occ}}"
class="nav-link {% if tab_param == tab_occ %}active{% endif %}"
data-tab="{{tab_occ}}"
data-toggle="tab"
data-test="tab"
type="button"
role="tab"
title="{{ attribute(texts.TABS, tab_desc) is defined ? attribute(texts.TABS, tab_desc) }}"
{% if config.google_analytics_tracking_id is defined %} onclick="gtag('event', 'Click TAB' , {'tab_id': '{{tab_name}}'});"{% endif %}
>
<b>{{ attribute(texts.TABS, tab_name) is defined ? attribute(texts.TABS, tab_name) }}</b><br>
<small>{{ tab_count }}</small>
<small data-test="tab_{{tab_occ}}_count">{{ tab_count }}</small>
</button>
{% if attribute(texts.TABS, tab_info) is defined %}
<a href="{{attribute(texts.TABS, tab_info)|trim()}}" target="_blank" class="info-link">
Expand Down Expand Up @@ -118,7 +127,7 @@
<!-- Result column -->
<div class="col-md-7 d-print-block" id="main_container">
{% for doc in docs %}
<div class="box1">
<div class="box1" data-test="result_resource_item">
<div class="inputCheck1 d-print-none">
<input type="checkbox" class="my_selection" value="{{ doc.id }}"
{% if doc.id in bookmark|keys %}checked{% endif %} id="select_{{ doc.id }}">
Expand Down

0 comments on commit c535ffe

Please sign in to comment.