Standard version check
This commit is contained in:
parent
cbee3f06d6
commit
02dc6f22a5
|
@ -10,7 +10,7 @@
|
|||
{% block scripts %}
|
||||
{{ super() }}
|
||||
{% block googleanalytics_event_tracking %}
|
||||
{% set type = 'asset' if h.ckan_version() > '2.9' else 'resource' %}
|
||||
{% set type = 'asset' if h.ckan_version().split('.')[1] | int >= 9 else 'resource' %}
|
||||
{% include 'googleanalytics/snippets/event_tracking_' ~ type ~ '.html' %}
|
||||
<div class="js-hide" data-module="google-analytics"
|
||||
data-module-googleanalytics_resource_prefix="{{ g.googleanalytics_resource_prefix }}">
|
||||
|
|
Loading…
Reference in New Issue