{% load i18n %} {% load wagtailadmin_tags %} {{ self.formset.management_form }} {% if 'wagtail_personalisation_' in self.formset.prefix or 'surveys_' in self.formset.prefix %} {% blocktrans with heading=self.heading|lower %}

{{ heading }}

{% endblocktrans %} {% if self.formset.prefix == 'wagtail_personalisation_timerule_related' %}

{% blocktrans %} This rule is based on the time of the visit of the users. If they visit in between the provided period, they will be segmented. If the "Persistent" option is not selected, the rule will be only valid between the specified times. {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'wagtail_personalisation_dayrule_related' %}

{% blocktrans %} This rule is based on the weekday of the visit of the users. If they visit on the weekday selected, they will be segmented. {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'wagtail_personalisation_referralrule_related' %}

{% blocktrans %} This rule allows you to match visitors based on the website they were referred from in form of a regex string, e.g. "example\.com|secondexample\.com|.*subdomain\.com". {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'wagtail_personalisation_visitcountrule_related' %}

{% blocktrans %} This rule allows you to segment a visitor based on the amount of visits per page. Use the operator to set a maximum, minimum or equal amount of visits. {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'wagtail_personalisation_queryrule_related' %}

{% blocktrans %} This rule allows you to set a parameter in a URL that would activate the segment. You could give that link to a particular group of people and if they accessed it, they would be segmented, e.g. "http://example.com/?some_parameter=abc" where "some_parameter" would be the parameter and "abc" would be the value. {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'wagtail_personalisation_devicerule_related' %}

{% blocktrans %} This rule allows to serve different content to users of different device types. Please remember that the detection is not always 100% accurate. {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'wagtail_personalisation_userisloggedinrule_related' %}

{% blocktrans %} This rule allows you to segment content based on whether a user is logged in {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'surveys_surveysubmissiondatarule_related' %}

{% blocktrans %} This rule allows you to segment content to users based on their previous answers to surveys. {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'surveys_groupmembershiprule_related' %}

{% blocktrans %} This rule allows you to segment content to users based on their group membership. {% endblocktrans %}

{% endif %} {% if self.formset.prefix == 'surveys_articletagrule_related' %}

{% blocktrans %} This rule allows you to segment users that visited a certain number of unique articles with a specific tag during a specified time period, e.g. you can segment users who visited more than 3 articles with the “health” tag between January and March this year. {% endblocktrans %}

{% endif %} {% endif %}

{% blocktrans with heading=self.heading|lower %}Add {{ heading }}{% endblocktrans %}

{% if 'wagtail_personalisation_' in self.formset.prefix or 'surveys_' in self.formset.prefix %}
{% endif %}