Standard version check

This commit is contained in:
Sergey Motornyuk 2021-02-10 09:41:18 +07:00
parent cbee3f06d6
commit 02dc6f22a5
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}">