Skip to content

Commit

Permalink
Merge pull request #153 from bianca/homepage_ga_hooks
Browse files Browse the repository at this point in the history
Improvement: Add classes for GA use to track homepage traffic
  • Loading branch information
boykoc committed Sep 15, 2020
2 parents 0c882e0 + 19c42ca commit f5ab63b
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 f5ab63b

Please sign in to comment.