{% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
{% block layout_header %}
{{ parent() }}
{% set cookieFirstData = page.footer.extensions.CookieFirst.config %}
{% if cookieFirstData and cookieFirstData.apiKey %}
<script src="//consent.cookiefirst.com/banner.js" data-cookiefirst-key="{{ cookieFirstData.apiKey }}"></script>
{% endif %}
{% endblock %}