aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-06-02 00:31:43 -0700
committerBryan Newbold <bnewbold@archive.org>2021-06-02 00:38:51 -0700
commit621e58c701dabecb79386fb87ac58e4f91e56045 (patch)
tree630c7197276bf767b4a536fdaffb235832b290c4 /fatcat_scholar/templates
parent45b321be1977233e04550640dbb12081b12c8aff (diff)
downloadfatcat-scholar-621e58c701dabecb79386fb87ac58e4f91e56045.tar.gz
fatcat-scholar-621e58c701dabecb79386fb87ac58e4f91e56045.zip
web: add goatcounter tracking to more download buttons
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/search_macros.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 63c988d..45a421d 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -65,7 +65,7 @@
{% if other_version %}
{% set access_alt = access_alt + " [" + other_version + "]" %}
{% endif %}
- <a target="_blank" rel="noopener" href="{{ access.access_url}}" title="{{ access_alt }}" {% if settings.ENABLE_GOATCOUNTER %}data-goatcounter-click="serp-fulltext-button"{% endif %}>
+ <a target="_blank" rel="noopener" href="{{ access.access_url}}" title="{{ access_alt }}" {% if settings.ENABLE_GOATCOUNTER %}data-goatcounter-click="serp-fulltext"{% endif %}>
<button class="ui simple right pointing dropdown compact black labeled icon button serp-button">
<i class="icon ia-icon"></i>
{% if access.access_type == "wayback" %}
@@ -240,7 +240,7 @@
<div class="ui items">
<div class="item">
<div class="image">
- <a target="_blank" rel="noopener" href="{{ paper.fulltext.access_url }}" title="{{ _('fulltext access') }}">
+ <a target="_blank" rel="noopener" href="{{ paper.fulltext.access_url }}" title="{{ _('fulltext access') }}" {% if settings.ENABLE_GOATCOUNTER %}data-goatcounter-click="serp-fulltext"{% endif %}>
{% if paper.fulltext.thumbnail_url %}
<div class="ui serp card">
<img class="ui" src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail" loading="lazy">
@@ -254,7 +254,7 @@
</div>
<div class="content">
<div class="header">
- <a rel="noopener" href="{{ paper.fulltext.access_url }}">
+ <a rel="noopener" href="{{ paper.fulltext.access_url }}" {% if settings.ENABLE_GOATCOUNTER %}data-goatcounter-click="serp-fulltext"{% endif %}>
{% if paper.fulltext.access_type == "wayback" %}
{% trans %}Web Archive Capture{% endtrans %}
{% elif paper.fulltext.access_type == "ia_file" %}
@@ -277,7 +277,7 @@
</a>
</div>
<div class="meta">
- <a rel="noopener" href="{{ paper.fulltext.access_url}}">
+ <a rel="noopener" href="{{ paper.fulltext.access_url}}" {% if settings.ENABLE_GOATCOUNTER %}data-goatcounter-click="serp-fulltext"{% endif %}>
{{ paper.fulltext.access_url }}
</a>
</div>