custom/plugins/econdWebAnalytics/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_header %}
  3.     {{ parent() }}
  4.     {% block econda_header %}
  5.         <script type="text/javascript">
  6.             window.emos3 = {
  7.                 defaults : {
  8.                     siteid : "{{ app.request.server.get('SERVER_NAME') }}/",
  9.                     countryid: "DE",
  10.                     langid: "DE"
  11.                 },
  12.                 stored : [],
  13.                 send : function(p){this.stored.push(p);}
  14.             };
  15.         </script>
  16.         {% block econda_header_emospro %}
  17.             <script type="text/javascript">
  18.                 var emospro = {};
  19.                 if("{{ ANA['content'] }}" === "{{ app.request.server.get('SERVER_NAME') }}/") {
  20.                     emospro.content = "Startseite";
  21.                 }else{
  22.                     emospro.content = "{{ ANA['content'] }}";
  23.                 }
  24.                 emospro.pageId = "{{ ANA['pageId'] }}";
  25.                 {% block econda_header_content %}{% endblock %}
  26.                 window.emos3.send(emospro);
  27.                 console.log(window)
  28.             </script>
  29.         {% endblock %}
  30.     {% endblock %}
  31. {% endblock %}