diff --git a/ckanext/googleanalytics/templates/googleanalytics/snippets/_gtag.html b/ckanext/googleanalytics/templates/googleanalytics/snippets/_gtag.html index 2ed2219..fa0ee91 100644 --- a/ckanext/googleanalytics/templates/googleanalytics/snippets/_gtag.html +++ b/ckanext/googleanalytics/templates/googleanalytics/snippets/_gtag.html @@ -1,16 +1,26 @@ - - - + + gtag('js', new Date()); + + gtag('config', '{{googleanalytics_id}}', { + anonymize_ip: true, + linker: { + domains: {{ googleanalytics_linked_domains|tojson }} + } + }); + {% endblock setup %} + + {% block extra %} + {% endblock extra %} + + + +{% endblock %}