{% load ocyan_main %}{% if cookie_jar.settings.google_tag_manager and cookie_jar.tagmanager.is_allowed %}
{% if cookie_jar.script_location == "footer" %}
    {% include "cookie_jar/consent_code.html" %}
    <script nonce="{% nonce %}">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;j.nonce="{% nonce %}";f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','{{cookie_jar.settings.google_tag_manager}}');{% if public_user_id %}dataLayer.push({'user_id': '{{public_user_id}}'});{% endif %}</script>
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{cookie_jar.settings.google_tag_manager}}"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    
{% else %}
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{cookie_jar.settings.google_tag_manager}}"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
{% endif %}{% endif %}