digitalmarketplace-govuk-frontend
Version:
Digital Marketplace GOV.UK Frontend contains the code you need to start building a user interface for Digital Marketplace.
16 lines (13 loc) • 714 B
HTML
{# User-level custom dimensions #}
{% if current_user.role %}
<meta name="ga_customDimension" data-id="10" data-value="{{ current_user.role }}">
{% endif %}
{# User organisation size custom dimension #}
{% if current_user and current_user.supplier_organisation_size %}
<meta name="ga_customDimension" data-id="11" data-value="{{ current_user.supplier_organisation_size }}">
{% endif %}
{# Additional custom dimensions #}
{# Requires variable called `custom_dimensions` to be passed with data_id and data_value attributes #}
{% for custom_dimension in custom_dimensions %}
<meta name="ga_customDimension" data-id="{{ custom_dimension.data_id }}" data-value="{{ custom_dimension.data_value }}">
{% endfor %}