Add image fallback when user has disabled javascript
This commit is contained in:
parent
87ff32cbc9
commit
f2981d2d0f
1 changed files with 8 additions and 4 deletions
|
@ -7,8 +7,8 @@
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% compress js inline %}
|
|
||||||
{% if goatcounter_domain is not None %}
|
{% if goatcounter_domain is not None %}
|
||||||
|
{% compress js inline %}
|
||||||
<script>
|
<script>
|
||||||
window.goatcounter = {
|
window.goatcounter = {
|
||||||
endpoint: 'https://{{ goatcounter_domain }}/count',
|
endpoint: 'https://{{ goatcounter_domain }}/count',
|
||||||
|
@ -16,6 +16,10 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script async defer src="{% static "vendor/goatcounter.js" %}"></script>
|
<script async defer src="{% static "vendor/goatcounter.js" %}"></script>
|
||||||
{% endif %}
|
|
||||||
{% endcompress %}
|
{% endcompress %}
|
||||||
|
<noscript>
|
||||||
|
<img src="https://{{ goatcounter_domain }}/count?p={{ request.get_full_path }}"
|
||||||
|
alt="GoatCounter tracking pixel">
|
||||||
|
</noscript>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Reference in a new issue