Skip to content

Commit

Permalink
Task: Add classes for GA use.
Browse files Browse the repository at this point in the history
Add classes to popular, recent, and category links on the homepage to track use on GA.
  • Loading branch information
bianca committed Sep 2, 2020
1 parent 0c882e0 commit 19c42ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -46,7 +46,7 @@
<div class="row">
{% for iter2 in [0,1,2,3,4] %}
{% set i = (iter1+iter2) %}
<a href="/{{ request.environ.CKAN_LANG }}/dataset?keywords_{{ request.environ.CKAN_LANG }}={{ _(topics[i]['label'])|replace(' ','+')|replace(',','') }}">
<a href="/{{ request.environ.CKAN_LANG }}/dataset?keywords_{{ request.environ.CKAN_LANG }}={{ _(topics[i]['label'])|replace(' ','+')|replace(',','') }}" class="hp_category">
<div class="col-md-2-10">
<i class="fa fa-{{topics[i]['fa-icon']}}"></i> <br>
{{ _(topics[i]['label']) }}
Expand Down
Expand Up @@ -8,7 +8,7 @@
</div>
</div>
<div class="col-md-10 col-sm-10 col-xs-10 c-small-text">
<a href="{% url_for controller='package', action='read', id=dataset.name %}">{{ h.get_translated(dataset, "title") }}</a><br />
<a href="{% url_for controller='package', action='read', id=dataset.name %}" class="hp_popular">{{ h.get_translated(dataset, "title") }}</a><br />
</div>
</div>
{% endfor %}
Expand Down
Expand Up @@ -11,7 +11,7 @@
<span class="label label-default">{{ h.render_datetime(dataset.current_as_of) }}</span>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<a href="{% url_for controller='package', action='read', id=dataset.name %}">{{ h.get_translated(dataset, "title") }}</a>
<a href="{% url_for controller='package', action='read', id=dataset.name %}" class="hp_recently_updated">{{ h.get_translated(dataset, "title") }}</a>
</div>
</div>
{% endfor %}

0 comments on commit 19c42ca

Please sign in to comment.