<div class="phase-banner">
  {% if form and config.DEBUG and request.path != '/problem' -%}
    {% include "_context-debugger.html" %}
  {%- endif -%}

  <div class="language-picker">
    {% if request.cookies.get('locale') == 'cy_GB' %}
      <a href="{{ url_for('base.set_locale', locale='en_GB') }}">English</a>
    {% else %}
      <a href="{{ url_for('base.set_locale', locale='cy_GB') }}">Cymraeg</a>
    {% endif %}
  </div>

  <p>
    <strong class="phase-tag">{{ _('BETA') }}</strong>
    <span>{% trans url=url_for('base.feedback') %}This is a new service – your <a href="{{ url }}">feedback</a>
      will help us to improve it.{% endtrans %}</span>
  </p>
</div>

<div class="phase-banner">
  {% if form and config.DEBUG and request.path != '/problem' -%}
    {% include "_context-debugger.html" %}
  {%- endif -%}

  <div class="language-picker">
    {% if request.cookies.get('locale') == 'cy_GB' %}
      <a href="{{ url_for('base.set_locale', locale='en_GB') }}" data-ga="event:locale/switch/english">English</a>
    {% else %}
      <a href="{{ url_for('base.set_locale', locale='cy_GB') }}" data-ga="event:locale/switch/welsh">Cymraeg</a>
    {% endif %}
  </div>

  <p>
    <strong class="phase-tag">{{ _('BETA') }}</strong>
    <span>
      {% trans url=url_for('base.feedback') %}
      This is a new service – your <a href="{{ url }}">feedback</a>
      will help us to improve it.{% endtrans %}</span>
  </p>
</div>

Send GA events when switching locale
FE: Send GA events when switching locale
